$errstr (line:$errline)
"); -} -set_error_handler('catchError'); - -function MwTimeToString($MwTime) -{ - if ($MwTime == -1) { - return "???"; - } else { - $minutes = floor($MwTime/(1000*60)); - return $minutes.":".floor(($MwTime-$minutes*60*1000)/1000); - } -} - -function ParseArgument(&$ArgumentValue, $ArgumentName, $DefaultValue) -{ - if (array_key_exists($ArgumentName, $_POST)) { - $ArgumentValue = $_POST[$ArgumentName]; - } else if (array_key_exists($ArgumentName, $_GET)) { - $ArgumentValue = $_GET[$ArgumentName]; - } else { - $ArgumentValue = $DefaultValue; - } -} - -// parse the arguments. -ParseArgument( $AuthLogin, 'authLogin', "SuperAdmin" ); -ParseArgument( $AuthPassword, 'authPassword', "SuperAdmin" ); -ParseArgument( $OldAuthLogin, 'oldAuthLogin', $AuthLogin ); -ParseArgument( $OldAuthPassword, 'oldAuthPassword', $AuthPassword ); -ParseArgument( $port, 'port', 5000 ); -ParseArgument( $MSLogin, 'mslogin', "" ); -ParseArgument( $MSPassword, 'mspassword', "" ); - -if (array_key_exists('action', $_POST)) { - $Action = $_POST['action']; -/*} else if (array_key_exists('action', $_GET)) - $Action = $_GET['action'];*/ -} else { - $Action=""; -} - - -echo "Permission Level: | - - | |
Password: | - |
Set new Password: | - | for | - - | -
Master Server Login: | |
Master Server Password: |
$PlayerLogin | $PlayerName | $PlayerTeam | $PlayerIsSpectator | $PlayerIsInOfficialMode | $PlayerRanking | -- | -END; - } - echo " |
Maniacode: | |
TimeOut: | |
Login: | |
AutoHide: |
$PlayerLogin | $PlayerName | $PlayerRank | $PlayerBestTime | $PlayerScore | $PlayerNbrLaps | $PlayerLadderScore | -END; - } - echo "
$PlayerLogin | --END; - } - echo " |
$PlayerLogin | --END; - } - echo " |
$PlayerLogin | --END; - } - echo " |
Name: | ||||
Comment: | ||||
Password: | ||||
PasswordForSpectator: | ||||
RefereePassword: | ||||
MaxPlayer: |
| |||
MaxSpectator: |
| |||
P2PUpload: | ||||
P2PDownload: | ||||
LadderMode: |
| |||
VehicleNetQuality: |
| |||
CallVoteTimeOut: |
| |||
CallVoteRatio: | ||||
AllowChallengeDownload: | ||||
AutoSaveReplays: | ||||
AutoSaveValidationReplays: |
Current | Next | |
Mode: | - - | |
ChatTime: | ||
NbChallenge: | ||
RoundsPointsLimit: | ||
RoundsPointsLimitNewRules: | ||
RoundsUseNewRules: | ||
RoundsForcedLaps: | ||
FinishTimeout: | ||
TimeAttackLimit: | ||
TimeAttackSynchStartPeriod: | ||
TeamPointsLimit: | ||
TeamPointsLimitNewRules: | ||
TeamMaxPoints: | ||
TeamUseNewRules: | ||
CupPointsLimit: | ||
CupRoundsPerChallenge: | ||
CupNbWinners: | ||
CupWarmUpDuration: | ||
LapsNbLaps: | ||
LapsTimeLimit: |
$ChallengeName $ChallengeUId | $FileName | $Environnement $ChallengeAuthor | $GoldTime | $CopperPrice | -- | - -END; - } - echo " |