当前位置: 首页>>代码示例>>PHP>>正文


PHP include_game_down函数代码示例

本文整理汇总了PHP中include_game_down函数的典型用法代码示例。如果您正苦于以下问题:PHP include_game_down函数的具体用法?PHP include_game_down怎么用?PHP include_game_down使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了include_game_down函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: call_news_text

function call_news_text()
{
	global $go, $tribeid, $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
	IF($tribeid && $go =="yes") {
		$result = mysql_query("SELECT time,text from news WHERE duser = $tribeid ORDER BY time DESC") or die(mysql_error());
		echo "<table cellspacing=0 cellpadding=0 width=80% class=\"border\">";
		echo "<tr><td colspan=2 class=\"pd bold dark black bdown\" align=center>";
		echo "The Headlines</td></tr>";
		while ($newsloop =(mysql_fetch_array($result))) {
			echo "<tr><td class=\"pd 11\">";
			echo "$newsloop[time]</td><td class=\"pd 11\">$newsloop[text]</td></tr>";
		}
		echo "</table>";
	}

	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input user id:<input type=text size=20 name=tribeid>";
    ECHO "<input type=hidden name=go value=yes>";
    ECHO "<br><input type=submit value=\"show me\"></form>";
	
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:30,代码来源:news.inc.php

示例2: call_admin_switches_text

function call_admin_switches_text()
{
    global $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    include_once 'inc/classes/clsGame.php';
    $objGame = new clsGame();
    if (isset($_POST[ON])) {
        $strTool = $_POST['tool'];
        $objGame->set_game_switch($strTool, ON);
        echo '<p>' . "Switch '{$strTool}' is now turned on." . '<br /><br />' . '<a href="main.php?cat=game&amp;page=resort_tools&amp;' . 'tool=admin_switches">' . 'Return to Tool' . '</a>' . '</p>';
    } elseif (isset($_POST[OFF])) {
        $strTool = $_POST['tool'];
        $objGame->set_game_switch($strTool, OFF);
        echo '<p>' . "Switch '{$strTool}' is now turned off." . '<br /><br />' . '<a href="main.php?cat=game&amp;page=resort_tools&amp;' . 'tool=admin_switches">' . 'Return to Tool' . '</a>' . '</p>';
    } else {
        $strDiv = '<h2>' . 'Admin Switches' . '</h2>';
        $arrGameSwitches = $objGame->get_game_switches();
        foreach ($arrGameSwitches as $strName => $strValue) {
            switch ($strValue) {
                case ON:
                    $strDiv .= '<form method="post" action="main.php?cat=game&amp;page=' . 'resort_tools&amp;tool=admin_switches"><p><b class="positive">' . $strName . ' is ON. <br />' . '<input type="hidden" name="tool" value="' . $strName . '">' . '<input type="submit" name="' . OFF . '" value="Switch OFF ' . $strName . '">' . '</b></p></form>';
                    break;
                case OFF:
                    $strDiv .= '<form method="post" action="main.php?cat=game&amp;page=' . 'resort_tools&amp;tool=admin_switches"><p><b class="negative">' . $strName . ' is OFF. <br />' . '<input type="hidden" name="tool" value="' . $strName . '">' . '<input type="submit" name="' . ON . '" value="Switch ON ' . $strName . '">' . '</b></p></form>';
                    break;
            }
        }
        echo $strDiv;
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:35,代码来源:admin_switches.inc.php

示例3: call_signups_text

function call_signups_text()
{
    global $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    echo "<h2>Signup History</h2>";
    //     $show_time = date(TIMESTAMP_FORMAT, strtotime("-7 days"));
    if (TRUE || $_POST['go'] == "yes") {
        $strSQL = 'SELECT YEAR(signup_time) as year, MONTH(signup_time) as month, DAY(signup_time) AS day, count(*) as signups FROM gamestats' . ' GROUP BY year,month,day' . ' ORDER BY year DESC,month DESC,day DESC LIMIT 0, 30';
        echo "<table class=tiny cellspacing=0 cellpadding=0>";
        echo "<tr class=header><th colspan=4>Signup History</th></tr>";
        echo "<tr class=subheader><th> Year </th><td> Month </td><td> Day </td><td> Signups </td></tr>";
        $result = mysql_query($strSQL) or die("query error");
        while ($value = mysql_fetch_array($result, MYSQL_ASSOC)) {
            echo $strTableTr = "<tr class=data>" . "<th>" . $value['year'] . '</th>' . '<td>' . $value['month'] . '</td>' . '<td>' . $value['day'] . '</td>' . '<td>' . $value['signups'] . '</td>' . '</tr>';
        }
        echo "</table> <br />";
        echo "Prediction for tomorrow: ";
    }
    echo "<form method=\"post\" action=\"main.php?cat=game&amp;page=resort_tools&amp;tool=signups\">";
    echo "<br />";
    echo "<input type=hidden name=go value=yes>";
    echo "<br><input type=submit value=\"show me\"></form>";
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:28,代码来源:signups.inc.php

示例4: call_tribe_activities_text

function call_tribe_activities_text(){
	global $go, $tribe_id,$tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
	IF($tribe_id && $go =="yes") {
		$result = mysql_query("Select * from news where ouser=$tribe_id");
		$tribe = array();
		while ($arrtribe = mysql_fetch_array ($result, MYSQL_ASSOC)) {
				$tribe[$arrtribe["id"]] = $arrtribe;
			}
		ECHO "<table border=1 width=66%>";
		ECHO "<tr><td colspan=4 align=center><b>Tribe Activity tracking on $tribe_id</b></td></tr>";
		ECHO "<tr><td><b> Time </b></td><td><b> Type </b></td><td><b> Target </b></td><td><b> Text </b></td><td><b> ip </b></td></tr>";
		foreach($tribe as $strKey => $value) {
			$stats = mysql_query("SELECT * from stats where id = $value[duser]");
			$stats = mysql_fetch_array($stats);
			ECHO "<tr><td> $value[time] </td><td> $value[type] </td><td> $stats[tribe](#".$stats[kingdom].")<br>id = $value[duser] </td><td> $value[text]</td><td> $value[ip]</td></tr>";
		}
		ECHO "</table>";
	}

	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input user id to attain activites:<input type=text size=4 name=tribe_id>";
    ECHO "<input type=hidden name=go value=yes>";
    ECHO "<br><input type=submit value=\"show me\"></form>";
	
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:34,代码来源:tribe_activities.inc.php

示例5: call_eldervotes_text

function call_eldervotes_text()
{
    global $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    $go = '';
    $reset_id = 0;
    if (isset($_POST['go']) && !empty($_POST['go'])) {
        $go = $_POST['go'];
    }
    if (isset($_POST['reset_id']) && !empty($_POST['reset_id'])) {
        $reset_id = intval($_POST['reset_id']);
    }
    if ($go != "sure" && $go != "yes") {
        echo $strResetForm = '<h2>Reset elder votes of an alliance</h2>' . '<form method="post" action="main.php?cat=game&amp;page=resort_tools&amp;tool=eldervotes">' . '<label for="alli_id">Alliance #</label>: ' . '<input type="text" size="5" name="reset_id" id="alli_id" />' . '<input type="hidden" name="go" value="sure" /> ' . '<input type="submit" value="Check alliance" />' . '</form>';
    }
    if ($reset_id > 0 && $go == 'sure') {
        $name = @mysql_query("SELECT id, name FROM " . TBL_ALLIANCE . " WHERE id = {$reset_id}");
        $name = mysql_fetch_array($name);
        echo $strResetForm2 = '<h2>Reset elder votes of an alliance</h2>' . '<h3>Confirm alliance</h3>' . '<p>' . stripslashes($name[NAME]) . ' (#' . $name[ID] . ')</p>' . '<form method="post" action="main.php?cat=game&amp;page=resort_tools&amp;tool=eldervotes">' . '<input type="hidden" name="go" value="yes" />' . '<input type="hidden" name="reset_id" value="' . $reset_id . '" /> ' . '<input type="submit" value="Reset elder votes">' . '</form>';
    }
    if ($reset_id && $go == "yes") {
        echo '<h2>Reset elder votes of an alliance</h2>';
        // Reset votes (an automatic routine will remove it from alliance #0)
        mysql_query("UPDATE " . TBL_STAT . " SET " . VOTE . " = 0 WHERE " . ALLIANCE . " = {$reset_id}") or die('There was an error with the query.');
        echo "<p><strong>Reset successful!</strong> - Alliance #{$reset_id} has had their elder vote reset.</p>";
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:32,代码来源:eldervotes.inc.php

示例6: call_view_text

function call_view_text()
{
    global  $id, $op, $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input user id: <input name=id size=5><br><br><br>";
    ECHO "<input type=submit value=Vision name=op>";
    ECHO "</form>";
    IF($op && $id)
    {
        IF($op == "Vision")
        {
            include('inc/functions/magic.php');
            include('inc/functions/power.php');
            include('inc/functions/tribe.php');
            $objTrgUser = new clsUser($id);
            echo get_tribe_table($objTrgUser);
        }
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:28,代码来源:view.inc.php

示例7: call_pausemode_text

function call_pausemode_text()
{
	global $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
$res = mysql_query("SELECT PauseModeActive FROM admin_switches");
$line = mysql_fetch_assoc($res);
echo "Pause-mode is currently: " . $line["PauseModeActive"] . "<BR>";
	
	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
	?>
<INPUT type="submit" value="Enable Pause-mode" name="enable">
</FORM>
	<? echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">"; ?>
<INPUT type="submit" value="Disable Pause-mode" name="disable">
</FORM>
<?
	if ($enable)
	{
		mysql_query("UPDATE admin_switches SET PauseModeActive = 'on'");
		echo "Pause-mode enabled!";
	}
	if ($disable)
	{
		mysql_query("UPDATE admin_switches SET PauseModeActive = 'off'");
		echo "Pause-mode disabled!";
	}
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:35,代码来源:pausemode.inc.php

示例8: call_authcode_text

function call_authcode_text()
{
    global $id,$confirm,$Aname,$tool;

    include_once('inc/functions/resort_tools.php');
    if (! user_has_access($tool))
    {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }

    ECHO "<p>Just enter verified to stop the auth request, or to require them to read their new email use something random.</p>";
    echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input ID#: <input name=id size=5><br>";
    ECHO "Change authcode to: <input type=text name=Aname maxlength=30 size=25><br>";
    ECHO "<input type=submit value=Send name=confirm>";
    ECHO "</form>";
    ECHO "<br><br>";

    IF($confirm && $id && $Aname)
    {
        $result = mysql_query("UPDATE preferences SET email_activation = '$Aname' where id = $id");
        $result = mysql_query ("SELECT * FROM preferences WHERE id = $id");
        $check  =mysql_fetch_array($result);

        ECHO "<p>Activation code changed to: $Aname  . Email sent to $check[email]</p>";
        mail("$check[email]","ORKFiA Activation","Welcome to ORKFiA =) \n\nHere is your activation code: $Aname \n\n\nIt is recommended you tend to your tribe at least once per day. If you require help or this is your first time playing ORKFiA, you may find the forums and the manual useful.\n\nWe hope you enjoy this age in ORKFiA =)\n\n- The ORKFiA Team\n\n\nThis email is php generated, you cannot successfully reply." , "From: Admins@orkfia.net");
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:30,代码来源:authcode.inc.php

示例9: call_ip2_text

function call_ip2_text()
{
    global $go, $ip2, $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    echo "<h2>User Logins from 1 IP the last 7 days</h2>";
    echo "Remember not to only rely on IP, while many logins is a safe bet don't <br />stare yourself blind at these. 1337 cheaters will have many and different IPs.<br />Remember AOL too.<br /><br />";
    $show_time = date(TIMESTAMP_FORMAT, strtotime("-7 days"));
    if ($ip2 && $go == "yes") {
        $ip2 = trim($ip2);
        $strSQL = "SELECT userid, ip, COUNT(*) AS logins, time " . "FROM logins " . "WHERE ip = '{$ip2}' AND time > {$show_time} " . "GROUP BY userid " . "ORDER BY id ASC, time DESC";
        echo "<table class=medium cellspacing=0 cellpadding=0>";
        echo "<tr class=header><th colspan=5>Login IP tracking on {$ip2}</th></tr>";
        echo "<tr class=subheader><th> Userid </th><td> IP </td><td> Logins </td><td> Last(?) Login </td><td> Check: </td></tr>";
        $result = mysql_query($strSQL) or die("query error");
        while ($value = mysql_fetch_array($result, MYSQL_ASSOC)) {
            echo $strTableTr = "<tr class=data>" . "<th>" . '<a href="main.php?cat=game&amp;page=resort_tools&amp;tool=checkinfo&id=' . $value['userid'] . '">' . $value['userid'] . "</a>" . '</th>' . '<td>' . $value['ip'] . '</td>' . '<td>' . $value['logins'] . '</td>' . '<td>' . $value['time'] . '</td>' . "<td>" . '<a href="main.php?cat=game&amp;page=resort_tools&amp;tool=tribe_ip&amp;go=yes&amp;tribe_id=' . $value['userid'] . '">' . "Tribe IP" . "</a>" . '</td>' . '</tr>';
        }
        echo "</table> <br />";
    }
    echo "<form method=\"post\" action=\"main.php?cat=game&amp;page=resort_tools&amp;tool=ip2\">";
    echo "Input user ip to attain userid details: <input type=text size=20 name=ip2>";
    echo "<br />";
    echo "<input type=hidden name=go value=yes>";
    echo "<br><input type=submit value=\"show me\"></form>";
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:30,代码来源:ip2.inc.php

示例10: call_tribename_text

function call_tribename_text(){
    global $id,$confirm,$Aname,$tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
    echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input ID#: <input name=id size=5><br>";
    ECHO "Change Name to: <input type=text name=Aname maxlength=30 size=25><br>";
    ECHO "<input type=submit value=Save name=confirm>";
    ECHO "</form>";
    ECHO "<br><br>";
    IF($confirm && $id && $Aname)
    {
    	$Aname = quote_smart(strip_tags(trim($Aname)));
        $check = mysql_query("SELECT * FROM stats WHERE tribe = $Aname AND id != $id");
        if(mysql_num_rows($check) != 0){
            echo "that name is already in use";
        } else {
            $result = mysql_query("UPDATE stats SET tribe = $Aname where id = $id");
            $result = mysql_query("UPDATE ranking_write SET tribe_name = $Aname where id = $id");
            ECHO "Done =)";
        }
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:30,代码来源:tribename.inc.php

示例11: call_namechanges_text

function call_namechanges_text()
{
    global $enable,$disable, $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
	IF (!$enable && !$disable) {
		$namechanges = mysql_query("SELECT names FROM admin_switches");
		$namechanges = mysql_fetch_array($namechanges);
		if ($namechanges['names'] == "on") {
			$value = "disable";
		} else {
			$value = "enable";
		}
    	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
		ECHO "<input type=submit value=$value name=$value></form>";
	}
	IF($enable) {
		mysql_query("UPDATE admin_switches SET names = 'on'");
		ECHO "The name changes tool has been activated.";
	}
	IF($disable) {
		mysql_query("UPDATE admin_switches SET names = 'off'");
		ECHO "The name changes tool is turned off now.";
	}
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:32,代码来源:namechanges.inc.php

示例12: call_mergehistory_text

function call_mergehistory_text(){
	global $go, $id, $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    	
	IF($id && $go =="yes")
	{
    	$fetch = mysql_query("SELECT * FROM mergers WHERE request_status = 'done' AND tribe = '$id' order by merge_time desc");
		$mergers = array();
		while ($arrmergers = mysql_fetch_array ($fetch, MYSQL_ASSOC))
		{
            $mergers[$arrmergers["id"]] = $arrmergers;
        }
		ECHO "<br><br><table border=0 cellspacing=0 cellpadding=0 width=75% class='border'>";
		ECHO "<tr><td colspan=5 align=center class='pd black bold dark bdown'><b>Done Mergers</b></td></tr>";
		ECHO "<tr><td class='pd black bold darker bdown'>Merge Time</td><td class='pd black bold darker bdown'>Tribe ID</td><td class='pd black bold darker bdown'>Old Location</td><td class='pd black bold darker bdown'>New Location</td></tr>";
		foreach($mergers as $strKey => $value) 
		{
			ECHO "<tr><td class='pd bdown'> $value[merge_time] </td><td class='pd bdown'> $value[tribe] </td><td class='pd bdown'> $value[oldname] (#$value[origin]) </td><td class='pd bdown'> $value[newname] (#$value[target]) </td></tr>";
		}
		ECHO "</table>";
	}

	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input user id to attain merge history (if there is any):<input type=text size=20 name=id>";
    ECHO "<input type=hidden name=go value=yes>";
    ECHO "<br><input type=submit value=\"Show me\"></form>";
	
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:35,代码来源:mergehistory.inc.php

示例13: call_suspension_text

function call_suspension_text()
{
    global $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    echo $strHeader = '<h2>L&O: Player Suspension (aka Forced Vacation Mode)</h2>';
    echo $strForm = '<form method="post" action="' . $_SERVER['REQUEST_URI'] . '">' . 'User-id: ' . '<input type="text" size="11" name="suspend_id">' . '<br />' . 'Updates: ' . '<select name="suspend_updates">' . '<option>12</option>' . '<option>24</option>' . '<option selected>48</option>' . '</select>' . '<br /><br />' . '<input type="submit" value="Suspend Tribe!">' . '</form>' . '<br /><br />';
    if (isset($_POST['suspend_id']) && $_POST['suspend_id'] > 1) {
        include_once 'inc/classes/clsUser.php';
        $objTmpUser = new clsUser($_POST['suspend_id']);
        // Pause Account Routines. Martel July 13, 2006
        $arrSrcUser = $objTmpUser->get_user_infos();
        if ($arrSrcUser[NEXT_ATTACK] <= 1) {
            $arrSrcUser[NEXT_ATTACK] = 1;
        }
        $arrNewSrcUser = array(NEXT_ATTACK => $arrSrcUser[NEXT_ATTACK], PAUSE_ACCOUNT => $_POST['suspend_updates']);
        $objTmpUser->set_user_infos($arrNewSrcUser);
        // Empty Magic and Thievery Points
        $objTmpUser->set_spell(POWER, 0);
        $objTmpUser->set_thievery(CREDITS, 0);
        // Forced Ranking Update
        include_once 'inc/functions/update_ranking.php';
        doUpdateRankings($objTmpUser, 'yes');
        echo stripslashes($objTmpUser->get_stat(TRIBE)) . " will be paused for " . $_POST['suspend_updates'] . " updates. Don't forget to send a notice.";
        echo '<div id="textSmall">' . '<p><b>' . 'Standard notice to copy+paste:' . '</b></p>' . '<p>' . 'Your account has been suspended by the Law & Order Resort (found in alliance #2), you will not recieve updates, or be able to interact with the game, this may be because of a Code of Conduct violation or for some other action.  Usually a staff member will contact you, if they have not, it is highly advised that you contact them, especially if you are not guilty of what you have been suspended for.' . '</p>' . '</div>';
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:31,代码来源:suspension.inc.php

示例14: call_banner_text

function call_banner_text(){
    global $local_stats, $id, $confirm, $tool;
	
	include_once('inc/functions/resort_tools.php');
	if (! user_has_access($tool))
	{
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    
	IF($confirm && $id){
		IF($id == 1) 
		{
			ECHO "ohhhh you dont want to do that, trust me $local_stats[name] =P";
		}else {
		ECHO "Alliance #$id has had its banner removed!";
        $result = mysql_query("UPDATE kingdom SET image = '' where id = $id");
	    }
    }
	echo "<form method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">";
    ECHO "Input alliance #: <input name=id size=5><br>";
    ECHO "<input type=submit value=Remove_banner name=confirm>";
    ECHO "</form>";
    ECHO "<br><br>";
    
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:27,代码来源:banner.inc.php

示例15: call_checkinfo2_text

function call_checkinfo2_text()
{
    global $tool;
    include_once 'inc/functions/resort_tools.php';
    if (!user_has_access($tool)) {
        echo "Sorry, this page is restricted to ORKFiA Staff";
        include_game_down();
        exit;
    }
    echo $strDiv = '<h2>' . 'Check User(s) Registration Info' . '</h2>' . '<p>' . 'Enter one or several user-ids, separate each by a space and ' . '<br />they will be listed if they exist in the database. Staff excluded.' . '</p>';
    echo $strForm = '<form method="post" action="main.php?cat=game&amp;page=resort_tools&amp;tool=' . $tool . '">' . '<input type="text" size="60" name="user_ids" value="' . $_POST['user_ids'] . '" />' . '<br /><br />' . '<input type="submit" value="List User(s)" />' . '<br /><br />' . '</form>';
    if (isset($_POST['user_ids']) && trim($_POST['user_ids']) != '') {
        echo $strTable = '<table class="big" cellspacing="0" cellpadding="0">' . '<tr class="header">' . '<th colspan="12">' . 'Check User Info' . '</th>' . '</tr>' . '<tr class="subheader">' . '<th>' . "ID" . '</th>' . '<th>' . "Name" . '</th>' . '<th>' . "From" . '</th>' . '<th>' . "E-mail" . '</th>' . '<th>' . "Login" . '</th>' . '<th>' . "Alias" . '</th>' . '<th>' . "Tribe" . '</th>' . '<th>' . "Alli#" . '</th>' . '<th>' . "Logins" . '</th>' . '<th>' . "TWG" . '</th>' . '<th>' . "RPs" . '</th>' . '</tr>';
        $strUserIds = trim($_POST['user_ids']);
        $arrUserIds = explode(" ", $strUserIds);
        foreach ($arrUserIds as $iUserId) {
            $iUserId = intval($iUserId);
            $strSQL = "SELECT * " . "FROM user, stats, preferences " . "WHERE user.id = {$iUserId} " . "AND user.id = stats.id " . "AND user.id = preferences.id " . "AND stats.kingdom > 10";
            $result = mysql_query($strSQL) or die("query error");
            while ($value = mysql_fetch_array($result, MYSQL_ASSOC)) {
                echo $strTableTr = '<tr class="data">' . '<th>' . $value['id'] . '</th>' . '<td class="left">' . stripslashes($value['realname']) . '</td>' . '<td class="left">' . $value['country'] . '</td>' . '<td class="left">' . $value['email'] . '</td>' . '<td class="left">' . stripslashes($value['username']) . '</td>' . '<td class="left">' . stripslashes($value['name']) . '</td>' . '<td class="left">' . stripslashes($value['tribe']) . '</td>' . '<td>' . $value['kingdom'] . '</td>' . '<td>' . $value['logins'] . '</td>' . '<td>' . $value['twg_vote'] . '</td>' . '<td>' . $value['invested'] . '</td>' . '</tr>';
            }
        }
        echo "</table>";
        echo "<p>(TWG = Last week a tribe voted, 0 by default)</p>";
    }
}
开发者ID:BrorHolm,项目名称:Orkfia-2008,代码行数:27,代码来源:checkinfo2.inc.php


注:本文中的include_game_down函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。