home *** CD-ROM | disk | FTP | other *** search
- <?PHP
- print("<form method=\"POST\" action=\"../scripts/editlang.php\">");
- print("<select size=\"1\" name=\"lang_menu_selector\">");
- $directory = "./lang/";
- $handle = opendir($directory);
- while($file = readdir($handle))
- {
- if(is_dir($directory.$file) == true AND $file != "." && $file != "..")
- {
- print("<option>" . $file . "</option>");
- }
- }
- closedir($handle);
- print("</select>");
- print(" <input type=\"submit\" value=\"Go!\" name=\"lang_menu_go\">");
- print("</form>");
- ?>