1+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2+ "http://www.w3.org/TR/html4/loose.dtd">
3+ <html>
4+ <head>
5+ <title>View existing tags</title>
6+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7+ <meta property="og:url" content="https://smolka.lima-city.de/">
8+ <meta name="author" content="Jürgen Smolka">
9+ <script type="text/javascript" src="dhtml.js"></script>
10+ </head>
11+
12+ <body onload="ladenaus();">
13+ <a name="top"></a>
14+ <noscript style="text-align:center;"><h1>Please activate JavaScript</h1></noscript>
15+ <?php
16+ ini_set ('display_errors ' , 1 );
17+ error_reporting (E_ALL );
18+
19+ $ relpfad = "" ; //"./"; //"./test/";
20+ $ viewonly = null ;
21+ $ execute = null ;
22+
23+ $ artist = "" ;
24+ $ album = "" ;
25+ $ titel = "" ;
26+ $ track = "" ;
27+ $ genre = "" ;
28+ $ comment = "" ;
29+
30+ $ fileTyp = array ("mp3 " );
31+ $ dateien = array ();
32+ $ onlyDir = "" ;
33+ $ batch = "" ;
34+
35+ include_once ("mid3TagMp3.inc.php " );
36+
37+ if (isset ($ _POST ["relpfad " ]))
38+ $ relpfad = $ _POST ["relpfad " ];
39+
40+ if (!empty ($ _POST ["artist " ]))
41+ $ artist = $ _POST ["artist " ];
42+ if (!empty ($ _POST ["album " ]))
43+ $ album = $ _POST ["album " ];
44+ if (!empty ($ _POST ["titel " ]))
45+ $ titel = $ _POST ["titel " ];
46+ if (!empty ($ _POST ["track " ]))
47+ $ track = $ _POST ["track " ];
48+ if (!empty ($ _POST ["genre " ]))
49+ $ genre = $ _POST ["genre " ];
50+
51+ ?>
52+
53+ <form method="post" action="<?php echo $ _SERVER ["PHP_SELF " ] ?> " style="margin-left:11%;" onsubmit="ladenein();">
54+ <fieldset style="width:900px;">
55+ <legend><span style="font-weight:700;">List Tags</legend>
56+ <p>
57+ (rel)path: <input type="text" name="relpfad" style="width:777px;" value="<?php echo $ relpfad ?> " placeholder="./folder/" required />
58+ </p>
59+ <p style="display:none">
60+ viewonly: <input type="checkbox" name="viewonly" checked />
61+ </p>
62+ <!--
63+ <p>
64+ executeit: <input type="checkbox" name="execute" />
65+ </p>
66+ -->
67+ </fieldset>
68+ <p>
69+ <input type="submit" name="submit" value="submit" style="width:930px;" />
70+ </p>
71+ </form>
72+ <p style="margin-left:11%;"><img name="load" src="loading.gif" width="44" height="44" alt="loading"></p>
73+ <script type="text/javascript">
74+ function ladenaus() { document.load.style.display = "none"; }
75+ function ladenein() { document.load.style.display = "block"; }
76+ </script>
77+
78+ <?php
79+ // App-Steuerung
80+ if (isset ($ _POST ["submit " ])) {
81+ if (isset ($ _POST ["relpfad " ]))
82+ $ relpfad = $ _POST ["relpfad " ];
83+ if (isset ($ _POST ["viewonly " ]))
84+ $ viewonly = $ _POST ["viewonly " ];
85+ if (isset ($ _POST ["execute " ]))
86+ $ execute = $ _POST ["execute " ];
87+
88+ $ batch = scan_dir ($ relpfad , $ fileTyp , TRUE , FALSE , TRUE , $ onlyDir , $ dateien );
89+
90+ if ($ batch == false ) {
91+ echo '<dir style="margin-left:8%; font-weight:bold;"> ' ;
92+ echo '<p style="color:red;">No mp3 files or <u> folder </u> not existent!</p> ' ;
93+ echo "\n <p> $ relpfad</p> " ;
94+ echo '</dir> ' ;
95+ exit ();
96+ }
97+
98+ if ($ viewonly )
99+ $ ausgabe = buildSites1 ($ batch );
100+ echo '<dir style="text-align:center;"><p><a href="#top">top</a><br><br></p></dir> ' ;
101+ }
102+ ?>
103+
104+ </body>
105+ </html>
0 commit comments