#!/usr/local/bin/php Add('action', FormNatureHidden); $FormLogin->AddVar('Data', 'login-referee'); $FormLogin->Add('login', FormNatureLine, '', true, '31', '128'); $FormLogin->Add('password', FormNaturePW, '', true, '31', '128'); $FormLogin->Add('Next', FormNatureSubmitImg, '', '', '../../images/bt_envoyer.gif'); $hackForPostForm = ''; $ERRORS = array(); if (isset($_POST['FDO']['LoginReferee']['On']) == true) { $FormLogin->TestAll(); if ( ($FormLogin->Post == true) && ($FormLogin->TestOk == true) ) { // formulaire ok // test sur l'utilisateur $userLogin = trim($FormLogin->Var['login']); $userPassword = trim($FormLogin->Var['password']); $userId = UserIsCorrect($userLogin, $userPassword); if ($userId < 1) { if ($userId == -2) { $ERRORS[] = 'inactive user.'; } else { $ERRORS[] = 'unknown user.'; } } else { // on logue l'utilisateur UserLogin($userId); } } else { // erreur dans le formulaire $userLogin = trim($FormLogin->Var['login']); $userPassword = trim($FormLogin->Var['password']); if (strlen($userLogin) < 1) { $ERRORS[] = '« login » required.'; } if (strlen($userPassword) < 1) { $ERRORS[] = '« password » required.'; } } } if ( ($FormLogin->Post == true) && ($FormLogin->TestOk == true) && (count($ERRORS) < 1) && (RefereeOk() == false) ) { // form posté, utilisateur ok, mais pas arbitre $ERRORS[] = 'Non-referee user.'; } else if (RefereeOk() == false) { $ERRORS[] = 'Non-referee user.'; } ?> Dungeon Twister - Tournaments overview
Dungeon Twister
Home The Game What's news FAQ Competitions Forum Downloads Links Contact us
Les tournois
Login
Tournois
Duel
Résultat


'; } ?> 0) { echo ''; } ?>
'; echo htmlentities( 'You are currently logged ' . 'as referee « ' . $CURRENT_PLAYER->get('FORUM_LOGIN') . ' »'); echo '

You\'re now able to :

    > Record tournaments results

    > Validate challenges results



'; echo '
» Log in
'; reset($ERRORS); while (list($index, $err) = each($ERRORS)) { echo '', $err, '', '
'; } /* echo '
';
                        print_r($FormLogin);
                        echo '
'; */ echo '
Login : show(1); ?>
Password : show(2); ?>
show(0); echo $FormLogin->show(3); ?>

home . the game . what's new . faq . competitions . forum . downloads . links

contact us . press room . legal information
Asmod�e Editions