Exemple #1
0
$EscapedUserID = (int) $_GET['UserID'];
$therow = dbquery(DBQUERY_READ_SINGLEROW, 'SELECT * FROM "User" WHERE "UserID" = :user:'******'user', $EscapedUserID);
if ($therow === 'NONE' or !$therow['UserValidated'] and !$Administrator) {
    $mypage = page::standard();
    $mypage->title_body('No such user');
    $mypage->leaf('p', 'There is no user with that user ID number. Please click <a href="index.php">here</a> to return to the Main Page.');
    $mypage->finish();
}
$scores_link_number = -1;
function get_scores_link_number()
{
    global $scores_link_number;
    $scores_link_number++;
    return $scores_link_number;
}
get_translation_module(18);
require HIDDEN_FILES_PATH . 'gamelistdisplayu.php';
require_once HIDDEN_FILES_PATH . 'gamelistdisplayuf.php';
switch ($therow['Pronoun']) {
    case 'He':
        $lowercasepronoun = 'he';
        $possessiveadjective = 'his';
        $lowercaseotherpronoun = 'him';
        break;
    case 'She':
        $lowercasepronoun = 'she';
        $possessiveadjective = 'her';
        $lowercaseotherpronoun = 'her';
        break;
    default:
        $lowercasepronoun = 'it';
Exemple #2
0
<?php

require '_std-include.php';
get_translation_module(5);
if (!$_SESSION['LoggedIn']) {
    $mypage = page::standard();
    $mypage->title_body('Not logged in');
    $mypage->leaf('p', 'You are not logged in. Please log in and then try again. Click <a href="board.php?GameID=' . $GAME['GameID'] . '">here</a> to return to the board page, or <a href="index.php">here</a> to return to the Main Page.');
    $mypage->finish();
}
$SystemActing = true;
$PersonActing = -50;
if (!isset($_POST['GameID']) or !isset($_POST['FormSubmit'])) {
    die($unexpectederrormessage);
}
$EscapedGameID = sanitise_int($_POST['GameID']);
require HIDDEN_FILES_PATH . 'gamegetdata_board_do.php';
switch ($_POST['FormSubmit']) {
    case 'Admin Retitle':
        require HIDDEN_FILES_PATH . 'gaa.php';
        break;
    case 'Extend Clock':
        require HIDDEN_FILES_PATH . 'gab.php';
        break;
    case 'Admin Abort':
        require HIDDEN_FILES_PATH . 'kraftwerk.php';
        require HIDDEN_FILES_PATH . 'gac.php';
        break;
    case 'Admin Kick':
        require HIDDEN_FILES_PATH . 'kraftwerk.php';
        require HIDDEN_FILES_PATH . 'gad.php';
Exemple #3
0
    if (LOGIN_DISABLED and !$Administrator) {
        if (@$_SESSION['LoggedIn']) {
            dbquery(DBQUERY_WRITE, 'UPDATE "User" SET "HasBeenEmailed" = 0 WHERE "UserID" = :user:'******'user', $_SESSION['MyUserID']);
        }
        $_SESSION['LoggedIn'] = 0;
        $Translator = 0;
        $Administrator = 0;
        $Banned = 0;
        $AlwaysShowCanals = 1;
        $AlwaysShowRails = 1;
        $ShowInaccessiblePlaces = 1;
        $ShowVirtualConnection = 1;
        $ProjIncludeMoney = 0;
        $CanalProj = 0;
        $BSIncomeTrack = 1;
        $ReverseTicker = 0;
        $CheckForMoves = 1;
        $MessagesPosted = 0;
        $AlwaysHideMsgs = 0;
        $ReverseMessages = 0;
        $CompactBoard = 1;
        $Language = 0;
        $Rating = 0;
        $PreferredCurrencySymbol = 0;
        $CurrencySymbolLocation = 0;
    }
}
if (!isset($TrivialPage)) {
    get_translation_module(1);
    get_translation_module(2);
}
Exemple #4
0
if (!$therow['UserValidated']) {
    $mypage->title_body('User not validated');
    $mypage->leaf('p', 'The user with that user ID number is not validated. Click <a href="userdetails.php?UserID=' . $EscapedUserID . '">here</a> to visit this user\'s User Details page, or <a href="index.php">here</a> to return to the Main Page.');
}
switch ($therow['Pronoun']) {
    case 'He':
        $lowercasepronoun = 'he';
        break;
    case 'She':
        $lowercasepronoun = 'she';
        break;
    default:
        $lowercasepronoun = 'it';
        break;
}
get_translation_module(19);
require HIDDEN_FILES_PATH . 'gamelistdisplayu.php';
require HIDDEN_FILES_PATH . 'gamelistdisplayuf.php';
$pagetitle = str_replace('\\username', $therow['Name'], transtext('ugPageTitle'));
$mypage->title_body($pagetitle);
$mypage->loginbox(false);
$mypage->leaf('h1', $pagetitle);
$mypage->leaf('p', '<a href="userdetails.php?UserID=' . $EscapedUserID . '">' . transtext('ugLkUserDetails') . '</a>');
$mypage->leaf('h3', transtext('_ugInProgress'));
gamelistdisplayup($mypage, $EscapedUserID, $therow['Name']);
if ($therow['PublicWatch'] or $Administrator or $_SESSION['MyUserID'] == $EscapedUserID) {
    $WatchedGamesHeader = transtext('_ugWatching');
    if (!$therow['PublicWatch']) {
        $WatchedGamesHeader .= $_SESSION['MyUserID'] == $EscapedUserID ? ' <span style="font-weight: normal;">' . transtext('_ugPrivWatchlist') . '</span>' : ' <span style="font-weight: normal;">(This list has been made invisible to non-admins)</span>';
    }
    $mypage->leaf('h3', $WatchedGamesHeader);