freeForum Translation Interface

"; exit; } if(!mysql_select_db($database,$db)) { print "Error ".mysql_error()."
"; mysql_close($db); exit;} // Processing request $mode = $_GET['mode']; if ($mode == "") $mode = $_POST['mode']; if (($mode=="login") && ($logguedin==0)) { $test = tryLogin($_POST['username'], $_POST['password']); if ($test) { mysql_close($db); print $mainpage; } else { $extrastring = "Login failed."; } } else if ($mode == "logout") { dologout(); } else if (($mode == "updatepwd") && ($logguedin)) { $extrastringUsername = updatePwd($username, $_POST['oldpassword'], $_POST['newpassword1'], $_POST['newpassword2']); $mode = "settings"; } else if (($mode == "updatefullname") && ($logguedin)) { $extrastringOptions = updateNameAndOptions($_POST['fullname'],$_POST['URL'],$_POST['homepagename'],$_POST['signature'], $_POST['copyright']); $mode = "settings"; } else if ( ($_SESSION["admin-$sessionextra"] == 1) && ($mode == "removeuser") ) { removeuser($_GET['id']); } else if ( ($_SESSION["admin-$sessionextra"] == 1) && ($mode == "newuser") ) { $extrastringAddUser = adduser(); } else if ( ($_SESSION["admin-$sessionextra"] == 1) && ($mode == "newlang") ) { loadlanguage(); } // Display procedures if ($logguedin == 0) { echologin($username,$extrastring); } else { echoMenuTop($username); if ($mode == "settings") { echosettings($languages,$extrastringUsername,$extrastringOptions); } else if ($mode == "showall") { echoAllTranslations($_GET['dbid']); } else if ($mode == "showmissing") { echoMissingTranslations($_GET['dbid']); } else if ($mode == "showtoupdate") { echoToUpdateTranslations($_GET['dbid']); } else if ($mode == "doupdatetranslation") { doUpdateTranslation($_POST['id']); if ($_POST['from'] == "showall") { echoAllTranslations($_POST['dbid']); } else if ($_POST['from'] == "showtoupdate") { echoToUpdateTranslations($_POST['dbid']); } else { echoMissingTranslations($_POST['dbid']); } } else if ($mode == "updatetranslation") { updateTranslation($_POST['from'], $_POST['dbid'], $_POST['id']); } else if (($mode == "exportweb") && (($_SESSION["admin-$sessionextra"] == 1) || in_array($_POST['lang'], $langedit))) { exportWebPage($_POST['lang']); exportForum($_POST['lang']); } else if (($mode == "exportbeta") && (($admin == 1) || in_array($_POST['lang'], $langedit))) { exportBeta($_POST['lang']); } else { mainform(); exportformforum(); exportformall(); languageStats(); if ($_SESSION["admin-$sessionextra"] == 1) { listusers($extrastringAddUser); echo "

Load a new language

Load a new language (make sure you're ready!)
"; } } } // Closing connection to the database mysql_close($db); ?>