echo "<tr><td>{$counter}</td><td><a href=# style=\"text-decoration: none\" onClick=\"getInfo('Player','Single','{$R_Inf['gamename']}')\">{$R_Inf['gamename']}</a></td><td> {$R_Inf['org']} </td><td>{$R_Inf['defending']}</td><td>{$R_Inf['msname']}</td><td><img src=\"" . $Unit_Image_Dir . "/{$R_Inf['image']}\"></td></tr>";
        }
        echo "</table>";
        echo "</tr></td>";
    }
    echo "</table>";
}
if ($mode == 'history') {
    echo "<table align=center border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"70%\" >";
    echo "<tr><td align=center style=\"font-size:16px;\"><b>歷史<b></tr></td>";
    $sql = "SELECT * FROM `" . $GLOBALS['DBPrefix'] . "phpeb_game_history` ORDER BY `time` DESC LIMIT 0 , 30";
    $query = mysql_query($sql);
    $HistoryEntries = mysql_num_rows($query);
    for ($CountHist = 1; $CountHist <= $HistoryEntries; $CountHist++) {
        $History = mysql_fetch_array($query);
        $History['DateTime'] = cfu_time_convert($History['time']);
        echo "<tr><td align=left style=\"font-size:10px;\"><b style=\"font-size:12px;\">{$History['DateTime']}</b><br>";
        echo "{$History['history']}";
        echo "</tr></td>";
    }
    echo "</tr></td>";
    echo "</table>";
    exit;
}
if (!$mode) {
    echo "<br><br><br>";
    echo "<center><iframe name='history' src='gen_info.php?action=history' width=75% height='200' marginheight=0 marginwidth=0 frameborder=0>";
    echo '</iframe>';
}
postFooter();
?>
            $Def_Area_Id = $tmp[1];
        } else {
            $Def_Area_Id = '';
        }
        unset($tmp);
    }
    if ($Defend_War) {
        $A_Org = ReturnOrg($Defend_War['a_org']);
        $Operation_Details .= "<font style=\"font-size: 10pt;color: white\">[內容] 區域防禦戰</font><br>殲滅 <font color={$Pl_Org['color']}>" . $Def_Area_Id . "區域</font> 中的<font color={$A_Org['color']}>{$A_Org['name']}</font>軍力";
        $Operation_Details .= "<br>或<br>防止 <font color={$Pl_Org['color']}>" . $Def_Area_Id . "區域要塞</font>,<br>於戰爭結束前被攻陷";
        if ($Def_Area_Id == $Player['coordinates'] && $Player['rights'] == '1' && $Defend_War['t_start'] > $CFU_Time && $Defend_War['ticket_b'] == 1) {
            $Operation_Details .= "<br><b style=\"cursor: pointer\" onmouseover=\"this.style.color='yellow'\" onmouseout=\"this.style.color='white'\" onClick=\"SetiFT('\\'調動兵力迎擊\\'');act.action='city.php?action=Reinforcement';act.actionb.value='C';act.target='{$SecTarget}';act.submit();\"><u>調動兵力迎擊</u></b>";
        }
        $Operation_Details .= "</td></tr><tr height=109 style=\"padding-left: 10px;padding-top: 3px\" valign=top><td style=\"background-image: url('{$General_Image_Dir}/neo/rt_tab_bg.jpg');\" colspan=3 width=200>";
        $StartAtk = preg_replace('/星期(.*), /', '星期\\1<br>', cfu_time_convert($Defend_War['t_start']));
        $TimeEnd = preg_replace('/星期(.*), /', '星期\\1<br>', cfu_time_convert($Defend_War['t_end']));
        $Operation_Details .= "<font style=\"font-size: 10pt;color: white\">[開始時間]</font><br> {$StartAtk} <br><font style=\"font-size: 10pt;color: white\">[完結時間]</font><br> {$TimeEnd} ";
        $Tickets = $Defend_War['ticket_b'];
    }
}
if ($Tickets) {
    printLeftMenuItem($Player[color], "<b color=FEFEFE>現軍力: &nbsp;</b><span id=pl_active_tickets>" . number_format($Tickets));
}
if ($Operation_Details) {
    printLeftMenuItem($Pl_Org[color], "<b color=FEFEFE>出擊通知書</b></br>{$Operation_Details}");
}
if ($Otp_TellTime) {
    echo "<div style=\"position: absolute; left: 0; top: 0; width: 100%; text-align: center\">";
    echo "<table class=\"base center-align\">";
    echo "<tr><td colspan=2 style=\"background-image: url('{$General_Image_Dir}/neo/btn_s_neo.gif');\" width=200 height=30 align=center>";
    echo "<font style=\"color: FF7575;font-size: 8pt;\" id=opt_time_display>{$Otp_TellTime}</font>";
Exemple #3
0
         $MsgShow["Priv"][$MSC] = cfu_time_convert($ChatData_Priv['c_time']) . " 你對 <font color=#00E196>{$A['0']}</font> 俏俏話:<font color=coral><b>" . $MsgShow["gen"] . "</b>";
     } else {
         $MsgShow["Priv"][$MSC] = cfu_time_convert($ChatData_Priv['c_time']) . " <font color=#00E196>{$A['0']}</font> 對你俏俏話:<font color=#00E196>" . $MsgShow["gen"];
     }
     unset($Apre, $Aq, $A);
 }
 while ($ChatData_Orgz = mysql_fetch_array($ChatData_Orgz_Query)) {
     $Apre = "SELECT `name`,`o`.`color`,`gamename`,`g`.`color` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_organization` o,`" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` n,`" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` g WHERE `id` = '{$ChatData_Orgz['c_tar']}' AND `g`.`username`=`n`.`username` AND `g`.`username`='{$ChatData_Orgz['c_user']}'";
     $Aq = mysql_query($Apre) or die(mysql_error());
     $A = mysql_fetch_row($Aq);
     $MSC++;
     $MsgShow["gen"] = "<br><div style=\"font-size: 10pt;margin-left: 10px;width: 100%\">{$ChatData_Orgz['c_msg']}</div></font><hr width=50% align=left style=\"filter: alpha(opacity=100,finishopacity=10,style=1);\">";
     if ($ChatData_Orgz['c_user'] == $_SESSION['username']) {
         $MsgShow["Orgz"][$MSC] = cfu_time_convert($ChatData_Orgz['c_time']) . " 你對 <font color=#00E196>{$A['0']}</font> 說:<font color=coral><b>" . $MsgShow["gen"] . "</b>";
     } else {
         $MsgShow["Orgz"][$MSC] = cfu_time_convert($ChatData_Orgz['c_time']) . " <font color=#00E196>{$A['2']}</font> 對 <font color=#00E196>{$A['0']}</font> 說:<font color=#00E196>" . $MsgShow["gen"];
     }
     unset($Apre, $Aq, $A);
 }
 echo "<table width=100% border=2 bordercolor=\"#D4D4D4\">";
 echo "<tr width=100% valign=top><td width=33%><center><font size=3 color=khaki>———組織頻道———</center></font><hr>";
 foreach ($MsgShow["Orgz"] as $M_Show_Orgz) {
     echo $M_Show_Orgz;
 }
 echo "</td><td width=34%><center><font size=3 color=khaki>———公開頻道———</center></font><hr>";
 foreach ($MsgShow["All"] as $M_Show_All) {
     echo $M_Show_All;
 }
 echo "</td><td width=33%><center><font size=3 color=khaki>———私人頻道———</center></font><hr>";
 foreach ($MsgShow["Priv"] as $M_Show_Priv) {
     echo $M_Show_Priv;
Exemple #4
0
             $ActionL = '取消交易';
             break;
         case 8:
             $ActionL = '拒絕交易';
             break;
         case 9:
             $ActionL = '提出交易';
             break;
         default:
             $ActionL = '未指定';
             break;
     }
     return $ActionL;
 }
 while ($Logs = mysql_fetch_array($SQL_Query)) {
     echo "<tr align=center><td>" . cfu_time_convert($Logs['time']) . "</td>";
     if ($Gen['acc_status'] < 0) {
         echo "<td>{$Logs['g_name']}<br>({$Logs['user']})</td>";
     } else {
         echo "<td>{$Logs['g_name']}</td>";
     }
     if ($Logs['type'] == 6) {
         echo "<td style=\"cursor: pointer\" onClick=\"frmcl.action='bank.php?action=CheckSHLog';frmcl.log_id.value={$Logs['id']};frmcl.submit();\">" . TypeBanking($Logs['type']) . "</td>";
     } else {
         echo "<td>" . TypeBanking($Logs['type']) . "</td>";
     }
     if ($Logs['type'] >= 7 && $Logs['type'] <= 9) {
         echo "<td>N/A</td>";
     } else {
         echo "<td>" . number_format($Logs['amount']) . "</td>";
     }
     if ($Pl_Settings['show_log_num'] > $LogEntries) {
         $Pl_LEnt = $LogEntries;
     } else {
         $Pl_LEnt = $Pl_Settings['show_log_num'];
     }
     echo "<script language=\"JavaScript\">";
     echo "function showlog(){logspc.style.visibility='visible';logspc.style.position='relative';logbtn.innerText='[X]';logbtn.href=\"Javascript:hidelog();\"}";
     echo "function hidelog(){logspc.style.visibility='hidden';logspc.style.position='absolute';logbtn.innerText='[+]';logbtn.href=\"Javascript:showlog();\"}";
     echo "</script>";
     echo "<p><span style=\"font-weight: 700; font-size: 10pt; background-color:  " . $UsrGenrl['color'] . "\">&nbsp;<b>歷程紀錄</b>&nbsp;<a href=\"Javascript:showlog();\" id=logbtn style=\"text-decoration: none\">[+]</a></span><br><div id=logspc style=\"font-size: 8pt;position: absolute;visibility: hidden\">";
     $User_Log = GetUsrLog("{$UsrGenrl['username']}") or die('無法取得紀錄資訊!!<br>請聯絡管理員!');
     for ($LogShowNum = 1; $LogShowNum <= $Pl_LEnt; $LogShowNum++) {
         $i = 'time' . $LogShowNum;
         $j = 'log' . $LogShowNum;
         if ($User_Log[$i]) {
             echo cfu_time_convert($User_Log[$i]) . "<br>{$User_Log[$j]}<br>";
         }
         unset($i, $j);
     }
 }
 echo "</div></td></tr>";
 echo "</table>";
 echo "</td>";
 echo "</tr>";
 echo "<script language=\"JavaScript\">", "setTimeout(\"enablerf();\",2000);", "function movebattle(){", "act.action='battle.php?action=battle_sel';", "act.actionb.value='battle_sel';", "act.target='Beta';", "act.submit();}", "function enablerf(){", "act.ig_refresh.disabled=false;", "}", "</script>";
 echo "<form action=nil method=post name=act target=Beta>";
 echo "<tr>";
 echo "<td width=\"100%\" height=\"19\">";
 echo "<input type=hidden value='none' name=actionb>";
 echo "<input type=hidden value='{$Pl_Value['USERNAME']}' name=Pl_Value[USERNAME]>";
 echo "<input type=hidden value='{$Pl_Value['PASSWORD']}' name=Pl_Value[PASSWORD]>";
Exemple #6
0
    }
    if ($DateTime['hours'] > 12) {
        $DateTime['period'] = '下午';
        $DateTime['hours'] -= 12;
    } else {
        $DateTime['period'] = '上午';
    }
    if ($DateTime['hours'] == 0) {
        $DateTime['hours'] = 12;
    }
    $FormatDate = "{$DateTime['year']}年{$DateTime['mon']}月{$DateTime['mday']}日, 星期{$DateTime['wday']}, {$DateTime['period']} {$DateTime['hours']}:{$DateTime['minutes']}:{$DateTime['seconds']}";
    return $FormatDate;
}
//End Time Convert Function
global $CFU_Date;
$CFU_Date = cfu_time_convert($CFU_Time);
//convert the present time
//Anti-Unauthorized Connection
if (!$disabled_AUC) {
    if (!ereg($Allow_AUC, $HTTP_REFERER)) {
        //Anti-Direct Connection
        echo "Unauthorized Connection Detected<br>Referer: {$HTTP_REFERER}<br>";
        echo "IP: {$REMOTE_ADDR} Logged<br>";
        postFooter();
        $contents = '/*' . "Date: `{$CFU_Date}' \n Logged Username: `{$_SESSION['username']}' \t\t Logged Password: `{$_SESSION['password']}'\n";
        $contents .= "IP: `{$REMOTE_ADDR}' \t\t Referer: `{$HTTP_REFERER}'\n";
        $contents .= "REQUEST_METHOD: `{$REQUEST_METHOD}' \t\t SCRIPT_FILENAME: `{$SCRIPT_FILENAME}' \nQUERY_STRING: `{$QUERY_STRING} '\n";
        $contents .= '_______________________________________________________';
        $contents .= '_______________________________________________________*/' . "\n";
        $fp = fopen($AUC_Log, "r+");
        fwrite($fp, $contents) or die('123');
         echo "if (getPElmHTMLInt('reacting_stat_req')  <= getPElmHTMLInt('pl_growth'))";
         echo "{getPElm('reacting_addlink').style.cursor = 'pointer';getPElm('reacting_addlink').src = '{$enableImg}';}";
         echo "if (getPElmHTMLInt('targeting_stat_req') <= getPElmHTMLInt('pl_growth'))";
         echo "{getPElm('targeting_addlink').style.cursor = 'pointer';getPElm('targeting_addlink').src = '{$enableImg}';}";
         echo "if (getPElmHTMLInt('sp_stat_req') <= getPElmHTMLInt('pl_growth'))";
         echo "{getPElm('spmax_addlink').style.cursor = 'pointer';getPElm('spmax_addlink').src = '{$enableImg}';}";
     }
 }
 if ($Pl_LEnt > 0) {
     for ($LogShowNum = $Pl_LEnt; $LogShowNum > 1; $LogShowNum--) {
         $i = 'time' . $LogShowNum;
         $j = 'log' . $LogShowNum;
         echo "parent.document.getElementById('log{$i}').innerHTML = parent.document.getElementById('logtime" . ($LogShowNum - 1) . "').innerHTML;";
         echo "parent.document.getElementById('log{$j}').innerHTML = parent.document.getElementById('loglog" . ($LogShowNum - 1) . "').innerHTML;";
     }
     echo "parent.document.getElementById('logtime1').innerHTML = '" . cfu_time_convert($t_now) . "';";
     echo "parent.document.getElementById('loglog1').innerHTML = '你與" . $Op->Player['gamename'] . "交戰!{$Pl_Log_Tag}';";
 }
 if ($Pl_MS_JSUpdate) {
     echo $Pl_MS_JSUpdate;
 }
 echo "function numberFormat(num){";
 echo "\tvar numF = '';";
 echo "\tvar pNum = num;";
 echo "\tvar l = num.length;";
 echo "\tvar tx = Math.floor(l/3);";
 echo "\tvar rx = (l%3);";
 echo "\tif (rx == 1){numF = num.substr(0,1);pNum = num.substr(1);}";
 echo "\telse if (rx == 2){numF = num.substr(0,2);pNum = num.substr(2);}";
 echo "\telse {numF = num.substr(0,3);pNum = num.substr(3);}";
 echo "\twhile(pNum.length >= 3){";
Exemple #8
0
         $MsgShow["Priv"][$MSC] = cfu_time_convert($ChatData_Priv['c_time']) . " 你对 <font color={$A['1']}>{$A['0']}</font> 俏俏话:<font color=coral><b>" . $MsgShow["gen"] . "</b>";
     } else {
         $MsgShow["Priv"][$MSC] = cfu_time_convert($ChatData_Priv['c_time']) . " <font color={$A['1']}>{$A['0']}</font> 对你俏俏话:<font color={$A['1']}>" . $MsgShow["gen"];
     }
     unset($Apre, $Aq, $A);
 }
 while ($ChatData_Orgz = mysql_fetch_array($ChatData_Orgz_Query)) {
     $Apre = "SELECT `name`,`o`.`color`,`gamename`,`g`.`color` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_organization` o,`" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` n,`" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` g WHERE `id` = '{$ChatData_Orgz['c_tar']}' AND `g`.`username`=`n`.`username` AND `g`.`username`='{$ChatData_Orgz['c_user']}'";
     $Aq = mysql_query($Apre) or die(mysql_error());
     $A = mysql_fetch_row($Aq);
     $MSC++;
     $MsgShow["gen"] = "<br><div style=\"font-size: 10pt;margin-left: 10px;width: 100%\">{$ChatData_Orgz['c_msg']}</div></font><hr width=50% align=left style=\"filter: alpha(opacity=100,finishopacity=10,style=1);\">";
     if ($ChatData_Orgz['c_user'] == $Pl_Value['USERNAME']) {
         $MsgShow["Orgz"][$MSC] = cfu_time_convert($ChatData_Orgz['c_time']) . " 你对 <font color={$A['1']}>{$A['0']}</font> 说:<font color=coral><b>" . $MsgShow["gen"] . "</b>";
     } else {
         $MsgShow["Orgz"][$MSC] = cfu_time_convert($ChatData_Orgz['c_time']) . " <font color={$A['3']}>{$A['2']}</font> 对 <font color={$A['1']}>{$A['0']}</font> 说:<font color={$A['3']}>" . $MsgShow["gen"];
     }
     unset($Apre, $Aq, $A);
 }
 echo "<table width=100% border=2 bordercolor=\"#D4D4D4\">";
 echo "<tr width=100% valign=top><td width=33%><center><font size=3 color=khaki>———组织频道———</center></font><hr>";
 foreach ($MsgShow["Orgz"] as $M_Show_Orgz) {
     echo $M_Show_Orgz;
 }
 echo "</td><td width=34%><center><font size=3 color=khaki>———公开频道———</center></font><hr>";
 foreach ($MsgShow["All"] as $M_Show_All) {
     echo $M_Show_All;
 }
 echo "</td><td width=33%><center><font size=3 color=khaki>———私人频道———</center></font><hr>";
 foreach ($MsgShow["Priv"] as $M_Show_Priv) {
     echo $M_Show_Priv;
             echo "</form></table><br>";*/
     echo "<table align=center border=\"1\" cellpadding=\"0\" cellspacing=\"0\"  style=\"border-collapse: collapse;font-size: 10pt;\" bordercolor=\"#FFFFFF\" width=\"600px\">";
     echo "<tr align=center><td colspan=16><b>國民列表: </b></td></tr>";
     echo "<tr align=center>";
     echo "<td width=\"100\">名稱</td>";
     echo "<td width=\"40\">等級</td>";
     echo "<td width=\"140\">最後上線時間</td>";
     echo "<td width=\"40\">操作</td>";
     echo "</tr>";
     $list = "SELECT a.gamename AS gamename, a.level AS level, b.time2 AS time FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` a INNER JOIN `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` b ON a.username = b.username WHERE a.organization = '{$Game['organization']}' AND a.rights!=1 ORDER BY a.level DESC";
     $qlist = mysql_query($list);
     while ($userlist = mysql_fetch_array($qlist)) {
         echo "<tr align=center>";
         echo "<td width=\"100\">{$userlist['gamename']}</td>";
         echo "<td width=\"40\">{$userlist['level']}</td>";
         $realtime = cfu_time_convert($userlist['time']);
         echo "<td width=\"140\">{$realtime}</td>";
         echo "<td width=\"40\"><input type=\"submit\" value=\"解僱\" onclick=\"kickuser('{$userlist['gamename']}');\"></td>";
         echo "</tr>";
     }
     echo "</form></table>";
 } elseif ($actionb == 'B') {
     if ($kick == '') {
         echo "請先指定目標!";
         postFooter;
         exit;
     }
     $sqlgame = "SELECT `gamename`,`organization`,`rights` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` WHERE gamename='{$kick}'";
     $qgame = mysql_query($sqlgame) or die('無法取得遊戲資訊, 原因:' . mysql_error() . '<br>');
     $TarQ = mysql_fetch_array($qgame);
     if ($TarQ['rights'] == 1) {
     echo "<td width=\"140\">最後上線時間</td>";
     echo "<td width=\"40\">操作</td>";
     echo "</tr>";
     $list = "SELECT a.gamename AS gamename, a.level AS level,a.rights AS rights, b.lastlogin AS time FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` a INNER JOIN `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` b ON a.username = b.username WHERE a.organization = '{$Game['organization']}' AND a.rights!=1 ORDER BY a.level DESC";
     $qlist = mysql_query($list);
     while ($userlevel = mysql_fetch_array($qlist)) {
         echo "<tr align=center>";
         echo "<td width=\"100\">{$userlevel['gamename']}</td>";
         echo "<td width=\"40\">{$userlevel['level']}</td>";
         if ($userlevel['rights'] == 0) {
             echo "<td width=\"40\">普通國民</td>";
         }
         if ($userlevel['rights'] == 2) {
             echo "<td width=\"40\">大元帥</td>";
         }
         $realtime = cfu_time_convert($userlevel['time']);
         echo "<td width=\"140\">{$realtime}</td>";
         if ($userlevel['rights'] == 0) {
             echo "<td width=\"40\"><input type=\"submit\" value=\"晉升\" onclick=\"upuser('{$userlevel['gamename']}');\"></td>";
         }
         if ($userlevel['rights'] == 2) {
             echo "<td width=\"40\"><input type=\"submit\" value=\"無法晉升\" disabled></td>";
         }
         echo "</tr>";
     }
     echo "</form></table>";
 } elseif ($actionb == 'B') {
     $class = mysql_real_escape_string($class);
     if ($class == '') {
         echo "請先指定目標!";
         postFooter;
    $Pl_LEnt = $Player['show_log_num'];
}
echo "<div id=LogDis style=\"position:absolute; right: -945px; top: 100px; width: 320px;z-index: 1;\" onMouseOver=focusZ(this.id) onMouseOut=blurZ(this.id)> ";
echo "<table class=\"base full-width\"><tr height=114>";
echo "<td width=26 style=\"background-Image: url('{$General_Image_Dir}/neo/table_log_l.png');\">&nbsp;</td>";
echo "<td width=294 style=\"background-color: {$Player['color']};\"><img src='{$General_Image_Dir}/neo/table_log_r.png'></td>";
echo "</tr><tr><td colspan=2 style=\"background-Image: url('{$General_Image_Dir}/neo/table_bg.gif'); border:solid #707070 1px; border-top: 0px;\" valign=top>";
echo "<table class=\"base long center-align\">";
$Pl_Log = GetUsrLog($User) or die('無法取得紀錄資訊!!<br>請聯絡管理員!<br>錯誤代號: GB-001');
for ($LogShowNum = 1; $LogShowNum <= $Pl_LEnt; $LogShowNum++) {
    $i = 'time' . $LogShowNum;
    $j = 'log' . $LogShowNum;
    $Pl_Log[$i] = isset($Pl_Log[$i]) ? $Pl_Log[$i] : 0;
    $Pl_Log[$j] = isset($Pl_Log[$j]) ? $Pl_Log[$j] : '';
    if ($Pl_Log[$i]) {
        echo "<tr><td id=log{$i} style=\"font-weight: Bold\">" . cfu_time_convert($Pl_Log[$i]) . "</td></tr>";
        echo "<tr><td id=log{$j} style=\"padding-left: 4px;font-size: 8pt\">{$Pl_Log[$j]}</td></tr>";
    }
}
echo "</table>";
echo "</td></tr>";
echo "</table>";
echo "</div>";
//Equipment Status Screen
echo "<div id=EqStat style=\"position:absolute; right: -960px; top: 85px; width: 320px;z-index: 1;\" onMouseOver=focusZ(this.id) onMouseOut=blurZ(this.id)> ";
echo "<table class=\"base full-width\"><tr height=114>";
echo "<td width=26 style=\"background-Image: url('{$General_Image_Dir}/neo/table_eq_l.png');\">&nbsp;</td>";
echo "<td width=294 style=\"background-color: {$Player['color']};\"><img src='{$General_Image_Dir}/neo/table_eq_r.png'></td>";
echo "</tr><tr><td colspan=2 style=\"background-Image: url('{$General_Image_Dir}/neo/table_bg.gif'); border:solid #707070 1px; border-top: 0px;\" valign=top>";
//
// Quick Equip Control - Start
            echo "{$aa}    ==    {$bb} (" . ($bbc + 40) . ")    == {$cc} ({$ccc})<br>";
        } else {
            echo "{$aa}    ==    0(40)    == 0<br>";
        }
        if ($aa % 5 == 0) {
            $bb++;
        }
        if (($aa - 1) % 10 == 0 && $aa > 1) {
            $cc++;
        }
    }
    exit;
}
if ($mode == 'time') {
    $timenow1 = time();
    $TT = cfu_time_convert($timenow1);
    $timenow2 = getdate();
    $hihihihi = strlen("{$CFU_Date}");
    echo "{$timenow1}<br>{$timenow2['year']}年{$timenow2['mon']}月{$timenow2['mday']}日<br>{$CFU_Date}<br>{$hihihihi}<hr>{$TT}";
    exit;
}
//Weapon List
if ($mode == 'weplist') {
    $sql_wep_listQ = "SELECT * FROM `" . $GLOBALS['DBPrefix'] . "phpeb_sys_wep` WHERE `kind` REGEXP '.*I.*' AND noshow=0 ORDER BY `familyid`,`grade`,`name` ";
    $query_wep_list = mysql_query($sql_wep_listQ);
    $selected_wep = mysql_fetch_array($query_wep_list);
    if ($SearchField['Name']) {
        $number_of_weps = mysql_num_rows($query_wep_list);
        $search_wep_inf_listQ = "SELECT * FROM `" . $GLOBALS['DBPrefix'] . "phpeb_sys_wep` WHERE `name` = '{$SearchField['Name']}'";
        $search_wep_inf_list = mysql_query($search_wep_inf_listQ);
        $search_wep_inf = mysql_fetch_array($search_wep_inf_list);
Exemple #13
0
 echo "<td width=\"140\">最後上線時間</td>";
 echo "<td width=\"40\">操作</td>";
 echo "</tr>";
 $requser = "******";
 $reqsql = mysql_query($requser);
 while ($userdata = mysql_fetch_array($reqsql)) {
     echo "<tr align=center>";
     echo "<td width=\"100\">{$userdata['username']}</td>";
     echo "<td width=\"40\">{$userdata['cash']}</td>";
     echo "<td width=\"40\">{$userdata['bounty']}</td>";
     echo "<td width=\"40\">{$userdata['msuit']}</td>";
     echo "<td width=\"40\">{$userdata['coordinates']}</td>";
     echo "<td width=\"40\">{$userdata['fame']}</td>";
     echo "<td width=\"60\">{$userdata['acc_status']}</td>";
     echo "<td width=\"40\">{$userdata['lastip']}</td>";
     $realtime = cfu_time_convert($userdata['lastlogin']);
     echo "<td width=\"140\">{$realtime}</td>";
     if ($userdata['acc_status'] == '9') {
         echo "<td width=\"40\"><input type=\"submit\" value=\"管理員\" disabled></td>";
     } else {
         if ($userdata['acc_status'] != '2') {
             echo "<td width=\"40\"><input type=\"submit\" value=\"封禁\" onclick=\"banuser('{$userdata['username']}');\"></td>";
         } else {
             if ($userdata['acc_status'] == '2') {
                 echo "<td width=\"40\"><input type=\"submit\" value=\"已封禁\" disabled></td>";
             }
         }
     }
     echo "</tr>";
 }
 echo "</form></table>";