Exemple #1
0
    }
    closedir($handle);
    for ($c = 1; $c <= count($gamemapslist) - 1; $c++) {
        $MapImage = $gamemapslist[$c];
        $MapName = preg_replace("/{$game_shortname}-/", "", $MapImage);
        $MapName = preg_replace("/\\..*\$/", "", $MapName);
        $text .= '<a href="javascript:changeTextGameMap(\'' . $MapImage . '\', \'' . $MapName . '\')"><img ' . getMapImageResize($MapImage) . ' title="' . $MapImage . '"/></a> ';
    }
    $text .= '
	</div>
	';
    $text .= '</div>';
    // Games Maps tab-page
    $text .= '</div>';
    // Games tab-pane
    displayGames();
    // The usual, tell e107 what to include on the page
    $ns->tablerender(EB_ADMIN_L10, $text);
}
// ========================================================
//				RECENT ACTIVITY OPTIONS MENU
// ========================================================
if (isset($qs[0]) && $qs[0] == "eb_activity") {
    $text .= "<div style='text-align:center'>\r\n\t<form id='adminform' method='post' action='" . e_SELF . "?eb_activity'>\r\n\t<table style='" . ADMIN_WIDTH . "' class='fborder'>\r\n\t<tbody>\r\n\t";
    $text .= "<tr>\r\n\t<td class='forumheader3' style='width:40%'>" . EB_ADMIN_L27 . ":</td>\r\n\t<td class='forumheader3' style='width:60%'>\r\n\t<input class='tbox' type='text' name='eb_activity_menuheading' size='20' value='" . $pref['eb_activity_menuheading'] . "'/>\r\n\t</td>\r\n\t</tr>\r\n\t";
    $items = '';
    $ipp_array = array(5, 10, 25, 50, 100);
    foreach ($ipp_array as $ipp_opt) {
        $items .= $ipp_opt == $pref['eb_activity_number_of_items'] ? "<option selected=\"selected\" value=\"{$ipp_opt}\">{$ipp_opt}</option>\n" : "<option value=\"{$ipp_opt}\">{$ipp_opt}</option>\n";
    }
    $text .= "<tr>\r\n\t<td class='forumheader3' style='width:40%'>" . EB_ADMIN_L30 . ":</td>\r\n\t<td class='forumheader3' style='width:60%'>\r\n\t<select class='tbox' name='eb_activity_number_of_items'>" . $items . "</select>\r\n\t</td>\r\n\t</tr>\r\n\t";
Exemple #2
0
function displayOldGames($user_id)
{
    displayGames($user_id, 1);
    displayGames($user_id, 2);
}