<?php //編寫: fra //繁體化: 風之翎 include 'cfu.php'; postHead(''); $_POST['action'] = isset($_POST['action']) ? $_POST['action'] : 0; $mode = isset($_GET['action']) ? $_GET['action'] : $_POST['action']; $_POST["operation"] = isset($_POST["operation"]) ? $_POST["operation"] : false; if ($CFU_Time >= $TIMEAUTH + $TIME_OUT_TIME || $TIMEAUTH <= $CFU_Time - $TIME_OUT_TIME) { echo "連線超時!<br>請重新登入!"; exit; } $db = mysql_connect($DBHost, $DBUser, $DBPass); mysql_select_db($DBName, $db); $SQL = "SELECT `password`,`acc_status` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` where `username` = '" . $Pl_Value['USERNAME'] . "'"; $Query = mysql_query($SQL); $Ac = mysql_fetch_array($Query); if ($Ac['acc_status'] >= 0 && "fra" != $Pl_Value['USERNAME'] || $Ac['password'] != md5($Pl_Value['PASSWORD']) && $Ac['password'] != $Pl_Value['PASSWORD']) { echo "不是管理員或密碼錯誤!"; $mcfu_time = explode(' ', microtime()); $cfu_ptime = number_format($mcfu_time[1] + $mcfu_time[0] - $GLOBALS['cfu_stime'], 6); echo "<p align=center style=\"font-size: 10pt\">php-eb © 2005-2008 v2Alliance. All Rights Reserved. 版權所有 不得轉載<br>"; echo "<p align=center style=\"font-size: 10pt\">Manager Script © fra. All Rights Reserved. 版權所有 不得轉載<br>"; if ($GLOBALS['Show_ptime']) { echo "<font style=\"font-size: 7pt\">Processed in " . $cfu_ptime . " second(s).</font></p>"; } exit; } //請把fra改成你的名字 //或到 phpeb_user_general_info 資料表中, 把目標 GM 的帳戶資料中, acc_status 一項設為負數
$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 // if ($mode == 'makePayment') { $Mining->makePayment($Pl->Player['cash'], $Pl->Player['organization'], $tax); } // // Mining Process // $Mining->doMining(); // // Main Form
<?php //Settings $HTTP_REFERER = ''; //請 Set 作可正常連線位置, cfu.php 內的 「$Allow_AUC」參數 //End of Settings $NoConnect = 1; $NoCheckRef = 1; include 'cfu.php'; postHead('1'); $mode = isset($_GET['action']) ? $_GET['action'] : ''; $VERSION = "<span onmouseover=\"this.style.cursor='pointer';window.status='php-eb 官方網站';\" onmouseout=\"window.status=''\" onClick=\"window.open('http://v2alliance.no-ip.org')\">php-eb Version " . $cSpec . "</span>"; if ($vBdNum) { $VERSION .= " <br><font style='font-size: 10px'>Build " . $vBdNum . "</font>"; } if ($sSpec) { $VERSION .= " <br><span style='font-size: 10px' onmouseout=\"window.status=''\" onmouseover=\"this.style.cursor='pointer';window.status='網主 \\'" . $WebMasterName . "\\' 的網站'\" onClick=\"window.open('" . $WebMasterSite . "')\">" . $sSpec . "</span>"; } if (!$mode) { echo "<script type=\"text/JavaScript\">"; echo "if (screen.availWidth == 1024){"; echo "moveTo( screen.availWidth/8 , screen.availHeight/8);}"; echo "else {moveTo(0,0);}"; echo "resizeTo(800,600);"; echo "window.status='';"; echo "</script>"; echo "<link href='{$General_Image_Dir}/style.css' type=text/css rel=stylesheet>"; echo "<body oncontextmenu=\"return false;\" style=\"background-image: url('{$General_Image_Dir}/background/atmosphere/atmosphere.jpg')\">"; echo "<base target=\"slfrm\">"; echo "<table width='750' height='520'><tr><td height='220'>"; //Name
<?php // Tact Adder: // For v0.50 Version // Activate Program // Turn this on (set to true) or delete this file when not using!! // 不使用時, 記得設定為「True」 或 刪除這個檔案!! $UseAuth = false; $Script_Name = 'npcAdder.php'; include '../../cfu.php'; postHead('', '../../phpeb_session_dir'); mt_srand((double) microtime() * 1000000); $mode = isset($_POST['action']) ? $_POST['action'] : ''; // // Login and authentications // if ($UseAuth) { exit; } // // Start Program // ?> </head> <body> <?php if ($mode == 'process') { $sql = "SELECT COUNT(*) FROM " . $GLOBALS['DBPrefix'] . "phpeb_user_general_info WHERE regkey = 'npc'; "; $query = mysql_query($sql);
<?php if ($mode != 'proc') { echo 'Invalid Action'; exit; } //php-eb Game Screen Base Unit postHead(1); //Assign Variables $User = $Pl_Value['USERNAME']; $Password = $Pl_Value['PASSWORD']; //Fetch Player Information include_once 'includes/sfo.class.php'; $Pl = new player_stats(); $Pl->SetUser($User); $Pl->FetchPlayer(true, false, ', `request`'); $Player =& $Pl->Player; //Adjust to user's setting if ($Player['gen_img_dir']) { $General_Image_Dir = $Player['gen_img_dir']; } 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"]);