Exemple #1
0
        }
        $mypage->closenode();
    } else {
        $mypage->leaf('h3', $PStatementHeader);
        $mypage->leaf('div', '(Personal statement is in an unexpected format!)', 'class="modularbox font_sans_serif" style="background-color: #FFCF9F; text-align: center;"');
    }
}
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
$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);
    gamelistdisplayuw($mypage, $EscapedUserID, 1);
}
$mypage->leaf('h3', transtext('_ugRR'));
gamelistdisplayux($mypage, $EscapedUserID, $therow['Name']);
$mypage->leaf('h3', transtext('_ugRecruiting'));
gamelistdisplayur($mypage, $EscapedUserID, $therow['Name']);
$mypage->leaf('h3', transtext('_ugFinished'));
gamelistdisplayuf($mypage, $EscapedUserID, $therow['Name'], $lowercasepronoun, true, 0, 20, null);
if ($_SESSION['MyUserID'] == $EscapedUserID) {
    require HIDDEN_FILES_PATH . 'udform.php';
}
$mypage->leaf('p', 'Click <a href="index.php">here</a> to return to the Main Page.');
$mypage->finish();
Exemple #2
0
        $Page = 1;
    }
} else {
    $Page = 1;
}
$mypage = page::standard();
if ($EscapedUserID) {
    $row = dbquery(DBQUERY_READ_SINGLEROW, 'SELECT "Name", "UserValidated", "Pronoun" FROM "User" WHERE "UserID" = :user:'******'user', $EscapedUserID);
    if ($row === 'NONE' or !$row['UserValidated']) {
        $mypage->title_body('User Does Not Exist');
        $mypage->leaf('p', 'The specified user does not exist. You can click <a href="oldgames.php">here</a> to view all users\' Finished Games, or <a href="index.php">here</a> to visit the Main Page.');
        $mypage->finish();
    }
    $mypage->title_body('List of games that ' . $row['Name'] . ' has finished playing in');
    $mypage->loginbox();
    $mypage->leaf('h2', 'List of games that <a href="userdetails.php?UserID=' . $EscapedUserID . '">' . $row['Name'] . '</a> has finished playing in');
    require_once HIDDEN_FILES_PATH . 'gamelistdisplayuf.php';
    if (gamelistdisplayuf($mypage, $EscapedUserID, $row['Name'], $row['Pronoun'], false, 100 * ($Page - 1), 100, $Page) === false) {
        $mypage->leaf('p', 'There aren\'t any finished games to display that were played in by ' . $row['Name'] . '.');
    }
    $mypage->leaf('p', 'You can click <a href="oldgames.php">here</a> to view all users\' Finished Games, or <a href="index.php">here</a> to return to the Main Page.');
} else {
    $mypage->title_body('List of games that have finished');
    $mypage->loginbox(array('Location' => 5, 'UserID' => $RequestedUserID, 'Page' => $Page));
    $mypage->leaf('h1', 'List of games that have finished');
    if (gamelistdisplayf($mypage, 100 * ($Page - 1), $Page) === false) {
        $mypage->leaf('p', 'There aren\'t any finished games to display.');
    }
    $mypage->leaf('p', 'Click <a href="index.php">here</a> to return to the Main Page.');
}
$mypage->finish();