cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Sun, 02 Feb 2003 11:37:35 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15416@lists.php.net to get a copy of this message | ||
goba Sun Feb 2 06:37:35 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
Adding language include at the proper place to display language name
Remove show_language_options, as it is not needed anymore
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.40 php-master-web/manage/mirrors.php:1.41
--- php-master-web/manage/mirrors.php:1.40 Sun Feb 2 05:54:16 2003
+++ php-master-web/manage/mirrors.php Sun Feb 2 06:37:35 2003
@@ -168,7 +168,13 @@
</tr>
</table>
</td><td valign="top">
-<?php if (intval($id) !== 0) { ?>
+<?php
+
+if (intval($id) !== 0) {
+
+ // We need the actual languages include file
+ include_once "http://php.net/include/languages.inc";
+?>
<table>
<tr>
<th colspan="2"><?php if (!$row['up'] ||
!$row['current']) { echo '<p class="error">This mirror is
automatically disabled</p>'; } else { echo " "; } ?></th>
@@ -206,9 +212,9 @@
</td></tr></table>
</form>
<?
- // Form printed, exit script
- foot();
- exit();
+ // Form printed, exit script
+ foot();
+ exit();
}
// Query whole mirror list and display all of them. The query is
@@ -329,21 +335,6 @@
// Print out footer (end of script run)
foot();
-
-// Show language options for mirror site
-function show_language_options($lang = "en")
-{
-
- // We need the actual languages include file
- include_once "http://php.net/include/languages.inc";
-
- // Write out an <option> for all languages
- foreach ($LANGUAGES as $code => $name) {
- echo "<option value=\"$code\"" ,
- $lang == $code ? " selected" : "" ,
- ">$name</option>";
- }
-}
// Show mirror type options defaulting to current type
function show_mirrortype_options($type = 1)