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


PHP ReturnOrg函数代码示例

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


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

示例1: AuthUser

//
//	This Plugin must be used in collaboration with cfu.php and sfo.class.php
//
include '../../cfu.php';
include '../../includes/sfo.class.php';
include 'mining.class.php';
include 'mining.config.php';
AuthUser("{$Pl_Value['USERNAME']}", "{$Pl_Value['PASSWORD']}");
$Pl = new player_stats();
$Pl->SetUser($Pl_Value['USERNAME']);
$Pl->FetchPlayer();
$Area = ReturnMap($Pl->Player['coordinates']);
$AreaLandForm = ReturnMType($Area['Sys']['type']);
$Area_Org = ReturnOrg($Area['User']['occupied']);
$Pl_Org = $Area['User']['occupied'] != $Pl->Player['organization'] ? ReturnOrg($Pl->Player['organization']) : $Area_Org;
global $Pl_LocalOrgFlag;
$Pl_LocalOrgFlag = 0;
if ($Area['User']['occupied'] == 0) {
    $Pl_LocalOrgFlag = 2;
} elseif ($Area['User']['occupied'] == $Pl->Player['organization']) {
    $Pl_LocalOrgFlag = 1;
}
$mode = isset($_POST['action']) ? $_POST['action'] : '';
postHead('', '../../phpeb_session_dir', $additionalHeader);
$Mining = new mining($DBPrefix, $CFU_Time, $Work_Length, $Base_Unit_Cost);
$Mining->getDetails($Pl->User, $Pl->Player['coordinates'], $Pl->Player['level'], $Pl->Player['organization']);
echo "<font style='font-size: 12pt;'>原料採集</font><hr>";
//
// Make Payment Process
//
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:30,代码来源:mining.php

示例2: mysql_query

        $Defend_War['a_org'] = $Otp_A_ITar['a_org'];
        $Defend_War['ticket_b'] = $Otp_A_ITar['ticket_b'];
    } else {
        $sql = "SELECT `t_start`,`t_end`,`a_org`,`mission`,`ticket_b` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_war` WHERE `b_org` = '{$Pl_Org['id']}' AND `t_end` > '{$CFU_Time}' ORDER BY `t_start` ASC LIMIT 1";
        $query = mysql_query($sql);
        $Defend_War = mysql_fetch_array($query);
        $tmp = array();
        if (preg_match('/Atk<([0-9a-zA-Z]+)>/', $Defend_War['mission'], $tmp)) {
            $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));
}
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_left_menu.php

示例3: AutoRepair

 if ($Op_Gen['msuit']) {
     $Op_Repaired = AutoRepair("{$Op_Gen['username']}");
     $Op_Game['hp'] = $Op_Repaired['hp'];
     $Op_Game['en'] = $Op_Repaired['en'];
     $Op_Game['sp'] = $Op_Repaired['sp'];
     $Op_Game['status'] = $Op_Repaired['status'];
 }
 $Op_WepA = explode('<!>', $Op_Game['wepa']);
 $CeaseAtkTar = '';
 if ($Op_Game['organization'] == $Pl_Game['organization'] && $Pl_Game['organization'] != '0') {
     $CeaseAtkTar = '1';
 }
 if ($Op_WepA[0] && !$Op_Game['status'] && !$CeaseAtkTar) {
     GetWeaponDetails("{$Op_WepA['0']}", 'Op_SyWepA');
     GetMsDetails("{$Op_Gen['msuit']}", 'Op_Ms');
     $Op_Org = ReturnOrg($Op_Game['organization']);
     if ($Op_Game['organization']) {
         $Op_Rank = ' ' . rankConvert($Op_Game['rank']);
     }
     if ($Op_Game['rights'] == '1') {
         $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Major'] . "</font>";
     } elseif ($Op_Game['rights']) {
         $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Leader'] . "</font>";
     }
     $mini_c++;
     echo "<tr align=center style=\"color: {$Op_Gen['color']}\">";
     echo "<td width=\"20\">{$mini_c}</td>";
     echo "<td width=\"250\">";
     echo "{$Op_Game['gamename']}";
     echo " <font style=\"color: {$Op_Org['color']}\">({$Op_Org['name']}){$Op_RightsTitle}{$Op_Rank}";
     if ($Area_Org['id'] == $Op_Org['id'] && $AttackFort && $Op_Org['id']) {
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:battle-dfilter.php

示例4: unset

         unset($AvailPersons);
     } while ($AvailPersons = mysql_fetch_array($query));
     if ($GiveTarOpt) {
         echo "<tr><td align=left>可加入的組織:<select name=GiveTar>{$GiveTarOpt}</select><br><input type=submit value=\"加入\" onClick=\"return cfmJoinOrg();\"></td></tr>";
     } else {
         echo "<tr><td align=left>沒有可以被加入的組織。</td></tr>";
     }
     echo "</form></table>";
 } elseif ($actionb == 'B') {
     if (!$GiveTar) {
         echo "請先指定要加入的組織。";
         postFooter();
         exit;
     }
     $Og_Org = ReturnOrg($Game['organization']);
     $Pl_Org = ReturnOrg($GiveTar);
     if ($Pl_Org['license'] >= 2) {
         echo "目標組織不接受新會員。";
         postFooter();
         exit;
     }
     if (abs($Gen['fame']) >= 100) {
         $HistoryWrite = "<font color=\"{$Og_Org['color']}\">{$Og_Org['name']}</font> 的 <font color=\"{$Gen['color']}\">{$Game['gamename']}</font> 加入 <font color=\"{$Pl_Org['color']}\">{$Pl_Org['name']}</font>。";
         WriteHistory($HistoryWrite);
     }
     $Game['rank'] += 2000;
     if ($Game['rank'] > 100000) {
         $Game['rank'] = 100000;
     }
     //更新 Game Info
     $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` SET `rank` = '" . $Game['rank'] . "', `rights` = '0', `organization` = '" . $GiveTar . "' WHERE `username` = '" . $Pl_Value['USERNAME'] . "' LIMIT 1";
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:organization.php

示例5: postHead

postHead('');
AuthUser("{$Pl_Value['USERNAME']}", "{$Pl_Value['PASSWORD']}");
if ($CFU_Time >= $TIMEAUTH + $TIME_OUT_TIME || $TIMEAUTH <= $CFU_Time - $TIME_OUT_TIME) {
    echo "連線逾時!<br>請重新登入!";
    exit;
}
GetUsrDetails("{$Pl_Value['USERNAME']}", 'Gen', 'Game');
$t_now = time();
if ($Gen['btltime'] == $t_now) {
    echo "動作過快。";
    postFooter();
    mysql_query("UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` SET `btltime` = " . intval($t_now + 10) . " WHERE `username` = '{$Gen['username']}' LIMIT 1;");
    exit;
}
if ($Game['organization']) {
    $Pl_Org = ReturnOrg("{$Game['organization']}");
}
//Set DataTable
$sql = "SELECT * FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_bank` WHERE username='" . $Pl_Value['USERNAME'] . "'";
$query_bnk = mysql_query($sql);
$defineuserc = 0;
$defineuserc = mysql_num_rows($query_bnk);
if ($defineuserc == 0) {
    $sqldfbk = "INSERT INTO `" . $GLOBALS['DBPrefix'] . "phpeb_user_bank` (username) VALUES('{$Pl_Value['USERNAME']}')";
    mysql_query($sqldfbk) or die('<br><center>未能建立銀行資料<br>原因:' . mysql_error() . '<br>');
    $sql = "SELECT * FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_bank` WHERE username='" . $Pl_Value['USERNAME'] . "'";
    $query_bnk = mysql_query($sql) or die('<br><center>未能建立銀行資料<br>原因:' . mysql_error() . '<br>');
}
$Bank = mysql_fetch_array($query_bnk);
include 'includes/bank.inc.php';
//Bank GUI
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:bank.php

示例6: postHead

if (empty($SecTarget)) {
    $SecTarget = 'Beta';
}
postHead('');
AuthUser("{$Pl_Value['USERNAME']}", "{$Pl_Value['PASSWORD']}");
if ($CFU_Time >= $TIMEAUTH + $TIME_OUT_TIME || $TIMEAUTH <= $CFU_Time - $TIME_OUT_TIME) {
    echo "連線逾時!<br>請重新登入!";
    exit;
}
GetUsrDetails("{$Pl_Value['USERNAME']}", 'Gen', 'Game');
if ($Game['organization']) {
    $Pl_Org = ReturnOrg("{$Game['organization']}");
}
$Area = ReturnMap("{$Gen['coordinates']}");
//$AreaLandForm = ReturnMType($Area["Sys"]["type"]);
$Ar_Org = ReturnOrg($Area["User"]["occupied"]);
//Special Commands GUI
if ($mode == 'ModFort') {
    if ($Area["User"]["occupied"] != $Game['organization'] || !$Game['rights']) {
        echo "出錯。";
        postFooter();
        exit;
    }
    function getModFortPrice($cur, $max)
    {
        $C = 56;
        // Threshold = 55
        $Multi = 120000;
        $Const = 1000000;
        $Num = $C - ($max - $cur);
        if ($Num < 0) {
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:city.php

示例7: ereg_replace

     echo "<input type=hidden value='{$Pl_Value['PASSWORD']}' name=Pl_Value[PASSWORD]>";
     echo "<input type=hidden name=\"TIMEAUTH\" value=\"{$CFU_Time}\">";
     echo "<p><span style=\"font-weight: 700; font-size: 10pt; background-color:  " . $UsrGenrl['color'] . "\">&nbsp;<b>邀請信</b>&nbsp;</span><br>";
     echo "{$UsrGenrl['request']}";
     echo "<input type=submit onClick=\"actionc.value='Accept'\" value='答應'>";
     echo "<input type=submit onClick=\"actionc.value='Refuse'\" value='拒絕'>";
     echo "</form>";
 }
 if ($Pl_Org['opttime'] > $CFU_Time && $Pl_Org['optmissioni']) {
     echo "<p><span style=\"font-weight: 700; font-size: 10pt; background-color:  " . $Pl_Org['color'] . "\">&nbsp;<b>出擊通知書</b>&nbsp;</span><br>";
     echo "<font style=\"font-size: 10pt;color: white\">[任務]</font><font style=\"font-size: 8pt;\">行動代號: {$Pl_Org['operation']}<br>";
     if (ereg('(Atk=\\(.*\\))+', $Pl_Org['optmissioni'])) {
         $Pl_Show_Mission = ereg_replace('(Atk=\\()|\\)', '', $Pl_Org['optmissioni']);
         //$Pl_Show_Mission = trim($Pl_Show_Mission);
         $Opt_Area = ReturnMap("{$Pl_Show_Mission}");
         $Opt_Org = ReturnOrg($Opt_Area["User"]["occupied"]);
         echo "<font style=\"font-size: 10pt;color: white\">[內容]</font>攻擊屬於 <font color={$Opt_Org['color']}>{$Opt_Org['name']}</font> 統治下的", $Opt_Area["Sys"]["map_id"], "區域";
         $StartAtk = cfu_time_convert($Pl_Org['optstart']);
         $TimeEnd = cfu_time_convert($Pl_Org['opttime']);
         echo "<br><font style=\"font-size: 10pt;color: white\">[開始時間]</font> {$StartAtk} <br><font style=\"font-size: 10pt;color: white\">[完結時間]</font> {$TimeEnd} ";
     }
     echo "</font>";
 }
 if ($LogEntries && $Pl_Settings['show_log_num']) {
     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();\"}";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_main.php

示例8: ereg_replace

     echo "<input type=hidden value='C' name=actionb>";
     echo "<input type=hidden name=actionc value=''>";
     echo "<input type=hidden name=\"TIMEAUTH\" value=\"{$CFU_Time}\">";
     echo '<p><span style="font-weight: 700; font-size: 10pt; background-color:  ' . $UsrGenrl['color'] . '"> <b>邀請信</b> </span><br>';
     echo "{$UsrGenrl['request']}";
     echo "<input type=submit onClick=\"actionc.value='Accept'\" value='答應'>";
     echo "<input type=submit onClick=\"actionc.value='Refuse'\" value='拒絕'>";
     echo '</form>';
 }
 if ($Pl_Org['opttime'] > $CFU_Time && $Pl_Org['optmissioni']) {
     echo '<p><span style="font-weight: 700; font-size: 10pt; background-color:  ' . $Pl_Org['color'] . '"> <b>出擊通知書</b> 國家有任務交給您了! </span><br>';
     echo "<font style=\"font-size: 10pt;color: white\">[任務]</font><font style=\"font-size: 8pt;\">行動代號: {$Pl_Org['operation']}<br>";
     if (ereg('(Atk=\\(.*\\))+', $Pl_Org['optmissioni'])) {
         $Pl_Show_Mission = ereg_replace('(Atk=\\()|\\)', '', $Pl_Org['optmissioni']);
         $Opt_Area = ReturnMap("{$Pl_Show_Mission}");
         $Opt_Org = ReturnOrg($Opt_Area['User']['occupied']);
         echo "<font style=\"font-size: 10pt;color: white\">[內容]</font>攻擊屬於 <font color={$Opt_Org['color']}>{$Opt_Org['name']}</font> 統治下的", $Opt_Area['Sys']['map_id'], '區域';
         $StartAtk = cfu_time_convert($Pl_Org['optstart']);
         $TimeEnd = cfu_time_convert($Pl_Org['opttime']);
         echo "<br><font style=\"font-size: 10pt;color: white\">[開始時間]</font> {$StartAtk} <br><font style=\"font-size: 10pt;color: white\">[完結時間]</font> {$TimeEnd} ";
     }
     echo '</font>';
 }
 if ($LogEntries && $Pl_Settings['show_log_num']) {
     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();\"}";
开发者ID:j4ckcyw,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_main.php

示例9: explode

$Pl_WepD = explode('<!>', $Pl_Game['eqwep']);
$Pl_WepE = explode('<!>', $Pl_Game['p_equip']);
//Adjust to user's setting
if ($Pl_Settings['gen_img_dir']) {
    $General_Image_Dir = $Pl_Settings['gen_img_dir'];
}
if ($Pl_Settings['unit_img_dir']) {
    $Unit_Image_Dir = $Pl_Settings['unit_img_dir'];
}
if ($Pl_Settings['base_img_dir']) {
    $Base_Image_Dir = $Pl_Settings['base_img_dir'];
}
$Area = ReturnMap("{$Pl_Gen['coordinates']}");
//$AreaLandForm = ReturnMType($Area["Sys"]["type"]);
$Area_Org = ReturnOrg($Area['User']['occupied']);
$Pl_Org = ReturnOrg($Pl_Game['organization']);
$Pl_LocalOrgFlag = 0;
if ($Pl_Org == $Area_Org) {
    $Pl_LocalOrgFlag = 1;
}
$Area_At = $Area['User']['at'] + 20;
$Area_De = $Area['User']['de'] + 25;
$Area_Ta = $Area['User']['ta'] + 100;
unset($WarMessage, $AttackFort);
if (ereg_replace('(Atk=\\()|\\)', '', $Pl_Org['optmissioni']) == $Pl_Gen['coordinates'] && $CFU_Time < $Pl_Org['opttime']) {
    $WarMessage = '<font color=red>[攻略目標]</font> ';
    if ($CFU_Time > $Pl_Org['optstart']) {
        $AttackFort = 'True';
    }
}
if ($Area['User']['hp'] <= 0) {
开发者ID:j4ckcyw,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:battle.php

示例10: mysql_real_escape_string

 $join = mysql_real_escape_string($join);
 if ($join == '') {
     echo "請先指定要加入的國家。";
     postFooter;
     exit;
 }
 $ppl = "SELECT count(*) FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` WHERE `organization` = '" . $join . "'";
 $qppl = mysql_query($ppl);
 $lastp = mysql_fetch_row($qppl);
 if ($lastp[0] >= 10) {
     echo "該國家人數過多,暫時無法加入<br>請加入其他國家或自行成立國家。";
     postFooter;
     exit;
 }
 $Og_Org = ReturnOrg($Game['organization']);
 $Pl_Org = ReturnOrg($join);
 if (abs($Gen['fame']) >= 100) {
     $HistoryWrite = "<font color=\"{$Og_Org['color']}\">{$Og_Org['name']}</font> 的 <font color=\"{$Gen['color']}\">{$Game['gamename']}</font> 加入 <font color=\"{$Pl_Org['color']}\">{$Pl_Org['name']}</font>。";
     WriteHistory($HistoryWrite);
 }
 //更新 Game Info
 $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` SET `rank` = '0', `rights` = '0', `organization` = '" . $join . "', `lastorg` = '{$now}' WHERE `username` = '" . $_SESSION['username'] . "' LIMIT 1";
 $query = mysql_query($sql) or die('無法取得基本資訊, 原因:' . mysql_error() . '<br>');
 $sql2 = "SELECT count(*) FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` WHERE `organization` = '" . $join . "'";
 $query2 = mysql_query($sql2);
 $cquery = mysql_result($query2, 0);
 $sql3 = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_organization` SET `cnum` = '{$cquery}' WHERE `id` = '" . $join . "'";
 $query2 = mysql_query($sql3);
 echo "<form action=gmscrn_main.php?action=proc method=post name=frmreturn target=Alpha>";
 echo "<p align=center style=\"font-size: 16pt\">加入國家完成了!<input type=submit value=\"返回\" onClick=\"parent.Beta.location.replace('gen_info.php')\"></p>";
 echo "<input type=hidden name=\"TIMEAUTH\" value=\"{$CFU_Time}\">";
开发者ID:j4ckcyw,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:organization.php

示例11: ReturnMap

 $A2_Inf = ReturnMap("A2");
 $A2_Org = ReturnOrg($A2_Inf["User"]["occupied"]);
 $A3_Inf = ReturnMap("A3");
 $A3_Org = ReturnOrg($A3_Inf["User"]["occupied"]);
 $B1_Inf = ReturnMap("B1");
 $B1_Org = ReturnOrg($B1_Inf["User"]["occupied"]);
 $B2_Inf = ReturnMap("B2");
 $B2_Org = ReturnOrg($B2_Inf["User"]["occupied"]);
 $B3_Inf = ReturnMap("B3");
 $B3_Org = ReturnOrg($B3_Inf["User"]["occupied"]);
 $C1_Inf = ReturnMap("C1");
 $C1_Org = ReturnOrg($C1_Inf["User"]["occupied"]);
 $C2_Inf = ReturnMap("C2");
 $C2_Org = ReturnOrg($C2_Inf["User"]["occupied"]);
 $C3_Inf = ReturnMap("C3");
 $C3_Org = ReturnOrg($C3_Inf["User"]["occupied"]);
 //$Movements = explode("\n",$Area["Sys"]["movement"]);
 echo "<td width=33% style=\"background: " . $C1_Org['color'] . "\"><input type=radio name=destination";
 if (!ereg('(C1)+', $Area["Sys"]["movement"])) {
     echo " disabled";
 }
 echo " value='C1'><br>C1</td>";
 echo "<td width=33% style=\"background: " . $C2_Org['color'] . "\"><input type=radio name=destination";
 if (!ereg('(C2)+', $Area["Sys"]["movement"])) {
     echo " disabled";
 }
 echo " value='C2'><br>C2</td>";
 echo "<td width=34% style=\"background: " . $C3_Org['color'] . "\"><input type=radio name=destination";
 if (!ereg('(C3)+', $Area["Sys"]["movement"])) {
     echo " disabled";
 }
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:map.php

示例12: url

 echo "<tr><td align=left width=250><b style=\"font-size: 10pt;\">從 {$Pl->Player[coordinates]} 移動的可能性: </b></td></tr>";
 echo "<tr><td align=center>";
 echo "<div align=left><b>世界地圖:</b></div>";
 echo "<table align=center border=0 cellpadding=0 cellspacing=0 style=\"color: white; border-collapse: collapse; border-color: #111111\" width=90% height=90%>";
 echo "<tr align=center valign=center><td style=\"background:black url({$General_Image_Dir}/background/map_bg_s.png)\">";
 $Pl->Area = ReturnMap($Pl->Player['coordinates']);
 $Areas = array('A1N', 'A1E', 'A1S', 'A1W', 'A2N', 'A2E', 'A2S', 'A2W', 'A3N', 'A3E', 'A3S', 'A3W', 'B1N', 'B1E', 'B1S', 'B1W', 'B2N', 'B2E', 'B2S', 'B2W', 'B3N', 'B3E', 'B3S', 'B3W', 'C1N', 'C1E', 'C1S', 'C1W', 'C2N', 'C2E', 'C2S', 'C2W', 'C3N', 'C3E', 'C3S', 'C3W');
 $A_Inf = $O_Inf = array();
 $LastOrg = 'none';
 $b = 0;
 $PlayerCount = array();
 foreach ($Areas as $a) {
     $A_Inf[$a] = ReturnMap($a);
     $PlayerCount[$a] = 0;
     if ($A_Inf[$a]['User']['occupied'] != $LastOrg) {
         $O_Inf[$a] = ReturnOrg($A_Inf[$a]['User']['occupied']);
         $LastOrg = $A_Inf[$a]['User']['occupied'];
     } else {
         $O_Inf[$a] = $O_Inf[$b];
     }
     $b = $a;
 }
 $sql = "SELECT `coordinates`, COUNT( `coordinates` ) AS `count` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` GROUP BY `coordinates`;";
 $query = mysql_query($sql);
 while ($results = mysql_fetch_array($query)) {
     $PlayerCount[$results['coordinates']] = $results['count'];
 }
 $Tbl_i = array(array('C1W', 'C1N', 'C2W', 'C2N', 'C3W', 'C3N'), array('C1S', 'C1E', 'C2S', 'C2E', 'C3S', 'C3E'), array('B1W', 'B1N', 'B2W', 'B2N', 'B3W', 'B3N'), array('B1S', 'B1E', 'B2S', 'B2E', 'B3S', 'B3E'), array('A1W', 'A1N', 'A2W', 'A2N', 'A3W', 'A3N'), array('A1S', 'A1E', 'A2S', 'A2E', 'A3S', 'A3E'));
 echo "<table align=center border=0 cellpadding=0 cellspacing=0 class='AlphaChan' width=420 height=312 id='mapTable'>";
 foreach ($Tbl_i as $i_r) {
     echo "<tr>";
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:map.php

示例13: ReturnMap

}
if ($Player['unit_img_dir']) {
    $Unit_Image_Dir = $Player['unit_img_dir'];
}
if ($Player['base_img_dir']) {
    $Base_Image_Dir = $Player['base_img_dir'];
}
//Area and Organization
$Area = ReturnMap($Player['coordinates']);
$AreaLandForm = ReturnMType($Area["Sys"]["type"]);
$LandFormBg = ReturnMBg($Area["Sys"]["type"]);
$AreaOrg = ReturnOrg($Area["User"]["occupied"]);
if ($Player['organization'] == $Area["User"]["occupied"]) {
    $Pl_Org =& $AreaOrg;
} else {
    $Pl_Org = ReturnOrg($Player['organization']);
}
//Ranks
$RightsTitle = $Pl_Rank = '';
if ($Player['rights'] == '1') {
    $RightsTitle = $RightsClass['Major'];
} elseif ($Player['rights']) {
    $RightsTitle = $RightsClass['Leader'];
}
$Pl_Rank = rankConvert($Player['rank']);
//Process Character Status
$AtClr = colorConvert($Player['attacking']);
$DeClr = colorConvert($Player['defending']);
$ReClr = colorConvert($Player['reacting']);
$TaClr = colorConvert($Player['targeting']);
$NextStatPt_At = $Player['attacking'] + 1;
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_base.php

示例14: isset

$Op_Rank = '';
for ($counter = 1; $counter <= $numofoppos; $counter++) {
    $LastOrg_ID = isset($Op_Info['organization']) ? $Op_Info['organization'] : false;
    unset($Op_RightsTitle);
    $isEnemyFlag = 0;
    $Op_Info = mysql_fetch_array($Query);
    $opr = array("name" => $Op_Info['name'], "hp" => $Op_Info['hp'], "hpmax" => $Op_Info['hpmax'], "hprec" => $Op_Info['hprec'], "en" => $Op_Info['en'], "enmax" => $Op_Info['enmax'], "enrec" => $Op_Info['enrec'], "sp" => $Op_Info['sp'], "spmax" => $Op_Info['spmax'], "status" => $Op_Info['status'], "time1" => $Op_Info['time1'], "hypermode" => $Op_Info['hypermode'], "eqwep" => $Op_Info['eqwep'], "p_equip" => $Op_Info['p_equip']);
    $opr_ms = array("enrec" => $Op_Info['enrec'], "hprec" => $Op_Info['hprec']);
    $Op_Repaired = RepairPlayer($opr, 0, 0, 1, $opr_ms, 1);
    $Op_Info['hp'] = $Op_Repaired['hp'];
    $Op_Info['status'] = $Op_Repaired['status'];
    if ($Op_Info['status']) {
        unset($Op_Info);
    } else {
        if ($Op_Info['organization'] != $LastOrg_ID || $LastOrg_ID === false || empty($Op_Org)) {
            $Op_Org = ReturnOrg($Op_Info['organization']);
        }
        $Op_RightsTitle = '';
        $Op_Rank = ' ' . rankConvert($Op_Info['rank']);
        if ($Op_Info['rights'] == '1') {
            $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Major'] . "</font>";
        } elseif ($Op_Info['rights']) {
            $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Leader'] . "</font>";
        }
        $cOpponent++;
        echo "<tr align=center style=\"color: {$Op_Info['color']}\">";
        echo "<td width=\"20\">{$cOpponent}</td>";
        echo "<td width=\"250\">";
        echo $Op_Info['gamename'];
        echo " <font style=\"color: {$Op_Org['color']}\">({$Op_Org['name']}){$Op_RightsTitle}{$Op_Rank}";
        echo "</font></td>";
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:battle-filter.php


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