part of the administration pages ############################################# ?> RandomURL <? echo $version; ?> \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

$changeusername

$enternewuser:
$reenternewuser:




$changepass

$enternewpass:
$reenternewpass:




\n"; } if ($submituser) { if ($newuser != $renewuser) { echo "

$usersdontmatch

"; } elseif (!$newuser && !$renewuser) { echo "

$noblanks

"; } else { $read = str_replace($settings[12], $newuser, $read); $fp = fopen("settings", "w"); fwrite($fp, $read); echo "

$usernamechanged

$closebrowser

"; } } if ($submitpass) { if ($newpass != $renewpass) { echo "

$passwordsdontmatch

"; } elseif (!$newpass && !$renewpass) { echo "

$noblanks

"; } else { $newpass = crypt($newpass, "sa"); $read = str_replace($settings[13], $newpass, $read); $fp = fopen("settings", "w"); fwrite($fp, $read); echo "

$passwordchanged

$closebrowser

"; } } } ############################################ # Adding/removing URLs ############################################ if ($page == "admin") { if (!$newurl && !$deletethisurl) { echo "
\n"; echo "

$addurl

\n"; echo "
\n"; echo "\n"; echo "
\n"; echo "



$delurl

\n"; echo "
\n"; echo "
"; } if ($newurl) { $fp = fopen("urls", "a"); fwrite($fp, "$newurl\n"); echo "

$newurladded

"; echo "
"; echo ""; } if ($deletethisurl) { $read = fopen("urls", "r"); $read = fread($read, filesize("settings")); $read = str_replace("$deletethisurl\n", "", $read); $fp = fopen("urls", "w"); fwrite($fp, $read); echo "

$urldeleted

"; echo ""; echo ""; } } ############################################### # Setting the language ############################################### if ($page == "language") { if (!$lang) { echo "

Please select a language file:

\n"; echo "\n"; echo "
"; } if ($lang) { $read = fopen("settings", "r"); $read = fread($read, filesize("settings")); $read = str_replace($settings[11], $lang, $read); $fp = fopen("settings", "w"); fwrite($fp, $read); echo "

Language changed.

"; } } ################################################### # The footer of the administration pages ################################################### $space = "     "; echo "
\n"; echo "$pageadmin\n"; echo $space; echo "$pagepass\n"; echo $space; echo "Change the language\n"; echo $space; echo "$help



\n"; echo "RandomURL\n"; echo "
"; ?>