public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         // 			print_r($postData);
         $getData = $this->_gameObject->getGetData($get);
         $sendData = array_merge($getData, $postData);
         $data = $this->_gameObject->getResult($UrlAppend, $sendData);
         //  			echo json_encode($sendData);
         // 			print_r($data);exit;
         $pageMoneyTotal = 0;
         if ($data['status'] == 1) {
             if (is_array($data['data']['list'])) {
                 foreach ($data['data']['list'] as &$sub) {
                     // 					$sub['playerId'] = $this->_d2s($sub['playerId']);
                     $pageMoneyTotal += $sub['RMB'];
                 }
             }
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageMoneyTotal'] = $pageMoneyTotal;
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['total']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         } else {
             $this->jump($data['info'], -1);
         }
     }
     return $this->_assign;
 }
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $getGetData = $this->_gameObject->getGetData($get);
         $postData = $this->getPostData($post);
         $data = $this->_gameObject->result('RechargeRecord', $getGetData, $postData);
         if ($data['status'] == 1) {
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['total']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         } else {
             $this->_assign['ConnectErrorInfo'] = $data['info'];
         }
         $this->_assign['select'] = $postData;
     }
     $this->_assign['userType'] = array(0 => '玩家ID', 1 => '玩家账号', 2 => '玩家昵称');
     $this->_assign['exchangeTypes'] = array(0 => '所有', 1 => '失败', 2 => '成功');
     return $this->_assign;
 }
Exemple #3
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     if ($_REQUEST["sbm"] == "") {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     if ($_GET["WorldID"] != "") {
         $WorldID = $_GET["WorldID"];
     }
     $postData = array('PlayerID' => trim($_GET['PlayerID']), 'AccountName' => trim($_GET['AccountName']), 'AccountID' => trim($_GET['AccountID']), 'WorldID' => trim($WorldID), 'PlayerName' => urlencode(trim($_GET['PlayerName'])), 'Page' => max(0, intval($_GET['page'] - 1)));
     $getData = array_merge($getData, $postData);
     $account = $this->getResult($UrlAppend, $getData);
     if ($account['Result'] === 0) {
         $status = 1;
         if ($account['PlayerList']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $account['Count'], 'perpage' => PAGE_SIZE));
             $this->_assign['data'] = $account;
             $this->_assign['dataList'] = $account['PlayerList'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     $this->_assign['ajax'] = Tools::url(CONTROL, 'PlayerRoleList', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     return $this->_assign;
 }
Exemple #4
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $sendData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $sendData);
     if (is_array($data) && $data['status'] == 1) {
         if ($data['data']['list']) {
             foreach ($data['data']['list'] as &$_msg) {
                 $_msg["title"] = urldecode($_msg["title"]);
                 $_msg["content"] = urldecode($_msg["content"]);
                 $_msg['time'] = date('Y-m-d H:i:s', $_msg['time']);
             }
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['count'], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->jump('服务器返回错误:' . $data['info'], -1);
     }
     return $this->_assign;
 }
Exemple #5
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     if ($_GET["WorldID"] == "") {
         $_GET["WorldID"] = $this->_getServerID();
     }
     $this->_assign["_GET"] = $_GET;
     if ($_GET["user"]) {
         //			if($_POST["apply"]==1){
         //				$this->_apply();
         //			}
         $getData = $this->_gameObject->getGetData($get);
         $getData["Page"] = max(0, intval($_GET['page'] - 1));
         if ($_GET["userType"] == 0) {
             $getData["PlayerID"] = max(1, intval($_GET['user']));
         } else {
             $getData["PlayerName"] = urlencode(trim($_GET['user']));
         }
         $getData["WorldID"] = $_GET["WorldID"];
         $data = $this->getResult($UrlAppend, $getData);
         //0-类型,1-位置,2-数量,3-id,4-名字
         if ($data['Result'] === 0) {
             $this->_loadCore('Help_Page');
             $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
             $this->_assign['dataList'] = $data['List'];
         }
     }
     $this->_assign["GET"] = $_REQUEST;
     return $this->_assign;
 }
Exemple #6
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     $this->_assign['playerType'] = array(1 => '玩家id', 2 => '玩家账号', 3 => '玩家昵称');
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array('playerType' => $_GET['playerType'], 'playerId' => base64_encode($_GET['playerName'] ? trim($_GET['playerName']) : 0), 'registStart' => urlencode(trim($_GET['regBeginTime'])), 'registEnd' => urlencode(trim($_GET['regEndTime'])), 'loginStart' => urlencode(trim($_GET['loginBeginTime'])), 'loginEnd' => urlencode(trim($_GET['loginEndTime'])), 'pageSize' => PAGE_SIZE, 'page' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $postData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $postData, null);
     // var_dump($data);
     $status = 0;
     $info = null;
     if ($data['status'] == 1) {
         $status = 1;
         if ($data['data']['list']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['totalNum'], 'perpage' => PAGE_SIZE));
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     if ($this->_isAjax()) {
         $this->ajaxReturn(array('status' => $status, 'info' => $info, 'data' => $this->_assign));
     }
     return $this->_assign;
 }
Exemple #7
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     if ($data['status'] == '1') {
         $dataList = $data['data']['list'];
         if (count($dataList) > 0) {
             foreach ($dataList as &$v) {
                 $v['del_url'] = $this->_DelLockIP($v['IP']);
             }
         }
         $this->_assign['dataList'] = $dataList;
     } else {
         $this->jump('接口调用失败', 0, -1);
     }
     $total = intval($data['data']['total']);
     $this->_loadCore('Help_Page');
     //载入分页工具
     $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
     return $this->_assign;
 }
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['submit']) {
         return $this->_assign;
     }
     $playerLogTypes = $this->_playerLogTypes;
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     if ($data['status'] == '1' && is_array($data['data'])) {
         $this->_assign['playerName'] = $data['data']['playerName'];
         $this->_assign['playerAccount'] = $data['data']['playerAccount'];
         foreach ($data['data'] as &$sub) {
             $sub['createTime'] = date('Y-m-d H:i:s', $sub['createTime'] / 1000);
         }
         $this->_assign['dataList'] = $data['data'];
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data['total'], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     return $this->_assign;
 }
Exemple #9
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     if ($this->_isPost()) {
         $sendData["BadWord"] = explode(",", $_POST["BadWord"]);
         $PostData["data"] = json_encode($sendData);
         $post["data"] = json_encode($sendData);
         //			echo $PostData["data"];
         $getData = $this->_gameObject->getGetData();
         $data = $this->getResult("UpdateSystem/BadWord", $getData, $PostData);
         if ($data["Result"] === 0) {
             $jumpUrl = $this->_url();
             $this->jump('操作成功', 1, $jumpUrl);
         } else {
             $errorInfo = '操作失败:';
             $this->jump($errorInfo . $data['info'], -1);
         }
     }
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(0, intval($_GET['page'] - 1));
     $data = $this->getResult($UrlAppend, $getData);
     if ($data['Result'] === 0) {
         $this->_assign['dataList'] = $data['BadWord'];
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => "50"));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     return $this->_assign;
 }
Exemple #10
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $sendData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $sendData, null);
     // 		print_r($data);exit;
     $realCostSum = 0;
     if (is_array($data) && $data['status'] == 1) {
         if ($data['data']['list']) {
             foreach ($data['data']['list'] as &$list) {
                 $list["toolMallName"] = $data['data']['mallTool'][$list['toolId']]['toolMallName'];
                 $realCostSum += $list['realCost'];
             }
             $this->_assign['realCostSum'] = $realCostSum;
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['count'], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->jump('服务器返回错误:' . $data['info'], -1);
     }
     return $this->_assign;
 }
Exemple #11
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     if ($_GET["WorldID"] == "" && $_POST["WorldID"] == "") {
         $_GET["WorldID"] = $this->_getServerID();
         $_POST["WorldID"] = $this->_getServerID();
     }
     $_GET["WorldID"] = $_POST["WorldID"];
     $this->_assign["_GET"] = $_GET;
     if ($_GET["WorldID"]) {
         $getData = $this->_gameObject->getGetData($get);
         $getData["WorldID"] = $_POST["WorldID"];
         $this->_assign['GET'] = $_POST;
         $data = $this->getResult($UrlAppend, $getData);
         if ($data['Result'] == '0') {
             foreach ($data['Broadcast'] as $key => &$sub) {
                 $sub["URL_del"] = $this->_urlNoticeDel($sub["OrderID"], $sub["WorldID"]);
                 $sub["URL_edit"] = $this->_urlNoticeEdit();
             }
             $this->_assign['dataList'] = $data['Broadcast'];
             $this->_loadCore('Help_Page');
             $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     }
     return $this->_assign;
 }
Exemple #12
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     if ($_GET["WorldID"] == "" && $_POST["WorldID"] == "") {
         $_GET["WorldID"] = $this->_getServerID();
         $_POST["WorldID"] = $this->_getServerID();
     }
     $_GET["WorldID"] = $_POST["WorldID"];
     $this->_assign["_GET"] = $_GET;
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(0, intval($_GET['page']) - 1);
     $getData["WorldID"] = max(0, intval($_POST["WorldID"]));
     $data = $this->getResult($UrlAppend, $getData);
     if ($data['Result'] == '0') {
         $this->_assign['dataList'] = $data["ClassTable"];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     $this->_assign['Add_Url'] = $this->_urlAdd();
     $this->_assign['Del_Url'] = $this->_urlDel();
     return $this->_assign;
 }
Exemple #13
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array('pageSize' => PAGE_SIZE, 'pageNo' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $data = $this->getResult($UrlAppend, $getData, $postData);
     //如果游戏有自定义接口,可以使用
     //var_dump($data);exit;
     if ($data['result'] == 0 && $data['data']) {
         $noticeType = array(0 => '跑马灯', 1 => '游戏信息公告', 2 => '喇叭', 3 => '跑马灯+聊天(紧急公告)', 4 => ' 聊天公告');
         $status = array(0 => '未审核', 1 => '已审核');
         foreach ($data['data'] as &$sub) {
             $sub['noticeType'] = $noticeType[$sub['noticeType']];
             $sub['status'] = $status[$sub['status']];
             $sub['URL_del'] = $this->_urlNoticeDel($sub['id']);
             $sub['URL_edit'] = $this->_urlNoticeEdit($sub['id']);
         }
         $this->_assign['dataList'] = $data['data'];
     }
     $total = $data['totals'];
     $this->_loadCore('Help_Page');
     //载入分页工具
     $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
     return $this->_assign;
 }
Exemple #14
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(0, intval($_GET['page']) - 1);
     if ($_GET["Receiver"]) {
         $getData["PlayerID"] = intval($_GET['Receiver']);
     }
     if ($_GET["SendTime"]) {
         $getData["DateTime"] = trim($_GET['SendTime']);
     }
     if ($_GET["mailtype"] == 1) {
         $data = $this->getResult("QueryPlayer/MailDeletedList", $getData);
     } else {
         $data = $this->getResult($UrlAppend, $getData);
     }
     if ($data['Result'] == '0') {
         $this->_assign['dataList'] = $data["MailList"];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     $this->_assign['Add_Url'] = $this->_urlAdd();
     $this->_assign['Del_Url'] = $this->_urlDel();
     return $this->_assign;
 }
Exemple #15
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(1, intval($_GET['page']));
     if (!empty($_GET["regBeginTime"]) && !empty($_GET["regEndTime"])) {
         $getData["regBeginTime"] = strtotime($_GET["regBeginTime"]);
         $getData["regEndTime"] = strtotime($_GET["regEndTime"]);
     }
     if (!empty($_GET["loginBeginTime"]) && !empty($_GET["loginEndTime"])) {
         $getData["loginBeginTime"] = strtotime($_GET["loginBeginTime"]);
         $getData["loginEndTime"] = strtotime($_GET["loginEndTime"]);
     }
     if (!empty($_GET["User"])) {
         $getData["User"] = urlencode($_GET["User"]);
         $getData["userType"] = $_GET["userType"];
     }
     $data = $this->getResult($UrlAppend, $getData);
     //		print_r($data);
     if ($data['states'] == '1') {
         $Column = $data["Column"];
         $this->_assign['Column'] = $Column;
         $this->_assign['dataList'] = $data['List'];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     $this->_assign['GET'] = $_GET;
     return $this->_assign;
 }
 private function _getCardlist($UrlAppend = null, $get = null, $post = null)
 {
     $postData = $this->getPostData($post);
     $get = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $get, $postData);
     if ($data['status'] == 1) {
         $list = $data['data']['list'];
         if (is_array($list)) {
             foreach ($list as &$sub) {
                 $sub['URL_itemCardFailure'] = Tools::url(CONTROL, ACTION, array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'cardId' => $sub['cardId'], 'do' => 'failure'));
                 $sub['goods'] = $this->_getGoodsInfo($sub['goods']);
                 $sub['type'] = $this->cardType[$sub['type']];
             }
             $this->_assign['dataList'] = $list;
             $total = intval($data['data']['total']);
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Info:' . $data['info'];
         return $this->_assign;
     }
     return $this->_assign;
 }
Exemple #17
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array();
     if (isset($_POST['page'])) {
         $postData['page'] = intval($_POST['page']);
         $postData['pageSize'] = 1;
     } else {
         $postData['page'] = 1;
         $postData['pageSize'] = 1;
     }
     $postData['id'] = 0;
     //默认传全部
     $data = $this->_gameObject->result('Notice', $getData, $postData);
     if ($data['status'] == '1') {
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data['data']['total'], 'perpage' => PAGE_SIZE));
         foreach ($data['data']['list'] as &$one) {
             $one['content'] = $one['content'];
             $one['URL_edit'] = $this->_urlNoticeEdit($one['id']);
             $one['URL_del'] = $this->_urlNoticeDel($one['id']);
         }
         $this->_assign['dataList'] = $data['data']['list'];
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     $this->assing['URL_noticeAdd'] = $this->_urlNoticeAdd();
     return $this->_assign;
 }
Exemple #18
0
 /**
  * 问卷列表
  */
 private function _ls()
 {
     $this->_modelAskform = $this->_getGlobalData('Model_Askform', 'object');
     $users = $this->_getGlobalData('user');
     #------分页生成sql------#
     $helpSqlSearch = $this->_loadCore('Help_SqlSearch');
     $helpSqlSearch = new Help_SqlSearch();
     $helpSqlSearch->set_tableName($this->_modelAskform->tName());
     $helpSqlSearch->setPageLimit($_GET['page'], PAGE_SIZE);
     $sql = $helpSqlSearch->createSql();
     $this->_loadCore('Help_Page');
     #------分页生成sql------#
     $dataList = $this->_modelAskform->select($sql);
     if ($dataList) {
         $helpPage = new Help_Page(array('total' => $this->_modelAskform->findCount(), 'perpage' => PAGE_SIZE));
         $this->_view->assign('pageBox', $helpPage->show());
         foreach ($dataList as &$list) {
             $list['word_user_id'] = $users[$list['user_id']]['nick_name'];
             $list['start_time'] = date('Y-m-d H:i:s', $list['start_time']);
             $list['end_time'] = date('Y-m-d H:i:s', $list['end_time']);
             $list['word_status'] = $this->_askStatus[$list['status']];
             $list['url_del'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'del'));
             $list['url_addoption'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'addOption'));
             $list['url_show'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'show'));
         }
         $this->_view->assign("dataList", $dataList);
     }
     $this->_utilMsg->createNavBar();
     $this->_view->set_tpl(array('body' => 'Askform/Ls.html'));
     $this->_view->display();
 }
Exemple #19
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         $getData = $this->_gameObject->getGetData($get);
         // 			$getData = array_merge($getData,$postData);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         // 			print_r($getData);
         // 			print_r(array_merge($getData,$postData));
         // 			print_r($data);
         // 			exit;
         $pageMoneyTotal = 0;
         if ($data['status'] == 1) {
             //  			$PlayerLogType = $this->partner('PlayerLogType');
             foreach ($data['data']['logs'] as &$sub) {
                 $sub['playerId'] = $this->_d2s($sub['playerId']);
             }
             $this->_assign['dataList'] = $data['data']['logs'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['totals']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     }
     return $this->_assign;
 }
Exemple #20
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $postData = array('playerId' => trim($_GET['playerId']), 'playerName' => base64_encode(trim($_GET['playerName'])), 'accountName' => trim($_GET['accountName']), 'regBeginTime' => trim($_GET['regBeginTime']), 'regEndTime' => trim($_GET['regEndTime']), 'loginBeginTime' => trim($_GET['loginBeginTime']), 'loginEndTime' => trim($_GET['loginEndTime']), 'pageSize' => PAGE_SIZE, 'pageCount' => max(1, intval($_GET['page'])));
     $data = $this->_gameObject->result($this->_getUrl(), $postData, $UrlAppend);
     $data = base64_encode($data);
     $data = base64_decode($data);
     $data = json_decode($data, true);
     $status = 0;
     $info = null;
     if (!empty($data)) {
         $status = 1;
         foreach ($data as &$player) {
             $player['playerId'] = $this->_d2s($player['playerId']);
             $player['vocationId'] = $this->_vocationId($player['vocationId']);
         }
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => 2000, 'perpage' => PAGE_SIZE));
         $this->_assign['dataList'] = $data;
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     if ($this->_isAjax()) {
         $this->ajaxReturn(array('status' => $status, 'info' => $info, 'data' => $this->_assign));
     }
     return $this->_assign;
 }
Exemple #21
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $type = $this->getResult("player_action_log.php?act=getLogType", $getData);
     $this->_assign["playerLogTypes"] = json_encode($type["data"]);
     $getData["page"] = max(0, intval($_GET['page']));
     $getData["User"] = urlencode($_GET['user']);
     //max(0,intval($_GET['user']));
     $getData["userType"] = max(0, intval($_GET['userType']));
     $getData['objectId'] = max(0, intval($_GET['rootid']));
     //日志大类
     $getData['eventId'] = max(0, intval($_GET['typeid']));
     //日志分类
     $data = $this->getResult($UrlAppend, $getData);
     if ($data["status"] == 1) {
         foreach ($data["data"]["list"] as &$v) {
             $v["addTime"] = date("Y-m-d H:m:s", $v["addTime"]);
         }
         $this->_assign["dataList"] = $data["data"]["list"];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["data"]["total"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     return $this->_assign;
 }
Exemple #22
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array('playerId' => trim($_GET['playerId']), 'playerName' => trim($_GET['playerName']), 'accountName' => trim($_GET['accountName']), 'BeginTime' => strtotime(trim($_GET['loginBeginTime'])), 'EndTime' => strtotime(trim($_GET['loginEndTime'])), 'ps' => PAGE_SIZE, 'page' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $data = $this->getResult($UrlAppend, $getData, $postData);
     $status = 0;
     $info = null;
     if ($data['status'] == 1) {
         $status = 1;
         if ($data['data']['list']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['total'], 'perpage' => PAGE_SIZE));
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     if ($this->_isAjax()) {
         $this->ajaxReturn(array('status' => $status, 'info' => $info, 'data' => $this->_assign));
     }
     return $this->_assign;
 }
Exemple #23
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         $getData = $this->_gameObject->getGetData($get);
         //echo $this->_getUrl()."$UrlAppend?".http_build_query($getData).'&'.http_build_query($postData);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         //print_r($data);
         $pageMoneyTotal = 0;
         if ($data['status'] == 1 && is_array($data['data']['recharges'])) {
             foreach ($data['data']['recharges'] as &$sub) {
                 $sub['playerId'] = $this->_d2s($sub['playerId']);
                 $pageMoneyTotal += $sub['money'];
             }
             $this->_assign['dataList'] = $data['data']['recharges'];
             $this->_assign['pageMoneyTotal'] = $pageMoneyTotal;
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['totals']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     }
     return $this->_assign;
 }
Exemple #24
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $sendData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $sendData, null);
     // 		print_r($sendData);
     // 		print_r($data);
     // 		exit;
     if ($data['status'] == 1) {
         $aor = array(0 => '否', 1 => '是');
         if ($data['data'][0]['mails']) {
             foreach ($data['data'][0]['mails'] as &$_msg) {
                 $_msg['createAt'] = $_msg['createAt'] ? date('Y-m-d H:i:s', $_msg['createAt'] / 1000) : $_msg['createAt'];
                 $_msg['visited'] = $aor[$_msg['visited']];
                 $_msg['gift'] = $aor[$_msg['gift']];
             }
             $this->_assign['dataList'] = $data['data'][0]['mails'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data'][1]['totals'], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->jump('服务器返回错误:' . $data['info'], -1);
     }
     return $this->_assign;
 }
Exemple #25
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['submit']) {
         return $this->_assign;
     }
     $playerLogTypes = $this->_playerLogTypes;
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     // 		print_r($data);exit;
     if ($data['status'] == '1') {
         foreach ($data['data']['list'] as &$sub) {
             $sub['prolename'] = $data['data']['player']['prolename'];
             $sub['pname'] = $data['data']['player']['pname'];
             $sub['playerType'] = $playerLogTypes[$sub['rootId']]['rootTypeName'] . '-->' . $playerLogTypes[$sub['rootId']]['subTypeList'][$sub['typeId']]['subTypeName'];
         }
         $this->_assign['dataList'] = $data['data']['list'];
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data['data']['count'], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     return $this->_assign;
 }
Exemple #26
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $data = array('user' => trim($_GET['user']), 'userType' => trim($_GET['userType']), 'regBeginTime' => strtotime(trim($_GET['regBeginTime'])), 'regEndTime' => strtotime(trim($_GET['regEndTime'])), 'loginBeginTime' => strtotime(trim($_GET['loginBeginTime'])), 'loginEndTime' => strtotime(trim($_GET['loginEndTime'])), 'pageSize' => PAGE_SIZE, 'page' => max(1, intval($_GET['page'])));
     $postData = $this->_gameObject->getPostData($post);
     $postData = array_merge($data, $postData);
     $data = $this->getResult($UrlAppend, $get, $postData);
     if ($data['status'] == 1) {
         if ($data['data']['list']) {
             foreach ($data['data']['list'] as &$player) {
                 $player['id'] = $this->_d2s($player['id']);
                 $player['createTime'] = date('Y-m-d H:i:s', $player['createTime'] / 1000);
                 $player['loginTime'] = date('Y-m-d H:i:s', $player['loginTime'] / 1000);
                 $player['onLineTime'] = gmstrftime('%H:%M:%S', $player['onLineTime'] / 1000);
             }
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['total'], 'perpage' => PAGE_SIZE));
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     if ($this->_isAjax()) {
         $this->ajaxReturn(array('status' => $data['status'], 'info' => $data['info'], 'data' => $this->_assign));
     }
     return $this->_assign;
 }
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $postData = array();
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $postData = array_filter($postData);
     //		$postData = $this->_gameObject->getPostData($post);
     $get = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $get);
     if ($data['status'] == '1' && $data['data']['list']) {
         foreach ($data['data']['list'] as &$sub) {
             $sub['URL_del'] = $this->_urlNoticeDel($sub['id']);
             $sub['URL_edit'] = $this->_urlNoticeEdit($sub['id']);
         }
         $this->_assign['dataList'] = $data['data']['list'];
     }
     $total = $data['data']['total'];
     $this->_loadCore('Help_Page');
     //载入分页工具
     $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
     return $this->_assign;
 }
 function actionIndex()
 {
     $this->_modelLostPassword = $this->_getGlobalData('Model_LostPassword', 'object');
     $status = $this->_modelLostPassword->getStatus();
     $this->_view->assign('statusSelect', $status);
     $status[''] = Tools::getLang('ALL', 'Common');
     $gameTypes = $this->_getGlobalData('game_type');
     $gameTypes = Model::getTtwoArrConvertOneArr($gameTypes, 'Id', 'name');
     $serverList = $this->_getGlobalData('gameser_list');
     $serverList = Model::getTtwoArrConvertOneArr($serverList, 'Id', 'server_name');
     $this->_utilMsg->createNavBar();
     $where = array();
     if ($this->_isPost()) {
         $selected['status'] = $_POST['status'];
         if (intval($_POST['status']) > 0) {
             $where['status'] = $_POST['status'];
         }
     }
     $order = 'status asc,Id desc';
     $dataList = $this->_modelLostPassword->getOrder($where, 1, $order);
     $this->_loadCore('Help_Page');
     $currUrl = Tools::url(CONTROL, 'EventList', $selected);
     $helpPage = new Help_Page(array('total' => $this->_modelLostPassword->getCount($where), 'perpage' => PAGE_SIZE, 'url' => $currUrl));
     $this->_view->assign('pageBox', $helpPage->show());
     $this->_view->assign('gameTypes', $gameTypes);
     $this->_view->assign('serverList', $serverList);
     $this->_view->assign('chargeType', $this->_modelLostPassword->getChargeType());
     $this->_view->assign('status', $this->_modelLostPassword->getStatus());
     $this->_view->assign('status', $status);
     $this->_view->assign('dataList', $dataList);
     $this->_view->assign('selected', $selected);
     $this->_view->display();
 }
Exemple #29
0
 private function _dataInLocalLog()
 {
     $modelGameOperateLog = $this->_getGlobalData('Model_GameOperateLog', 'object');
     $this->_loadCore('Help_SqlSearch');
     //载入sql工具
     $helpSqlSearch = new Help_SqlSearch();
     $helpSqlSearch->set_tableName($modelGameOperateLog->tName());
     $helpSqlSearch->set_conditions("game_server_id=" . intval($_REQUEST['server_id']));
     $helpSqlSearch->set_conditions("operate_type=" . self::LOGTYPE);
     $helpSqlSearch->setPageLimit($_GET['page'], PAGE_SIZE);
     $helpSqlSearch->set_orderBy('Id desc');
     $sql = $helpSqlSearch->createSql();
     $data = $modelGameOperateLog->select($sql);
     $users = $this->_getGlobalData('user_index_id');
     //获得所有用户的数组
     foreach ($data as &$sub) {
         $sub['user_id'] = $users[$sub['user_id']];
         $sub['create_time'] = date('Y-m-d H:i:s', $sub['create_time']);
         $sub['URL_del'] = $this->_urlLockAccountDel($sub['game_user_id'], $sub['game_user_account'], $sub['game_user_nickname']);
         $sub['info'] = unserialize($sub['info']);
         $sub['endTime'] = $sub['info']['FromGame']['endTime'];
     }
     $this->_assign['dataList'] = $data;
     $this->_loadCore('Help_Page');
     //载入分页工具
     $conditions = $helpSqlSearch->get_conditions();
     $helpPage = new Help_Page(array('total' => $modelGameOperateLog->findCount($conditions), 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
 }
Exemple #30
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     if ($_GET["WorldID"] == "") {
         $_GET["WorldID"] = $this->_getServerID();
     }
     $this->_assign["_GET"] = $_GET;
     $get['Page'] = max(0, intval($_GET['page'] - 1));
     $getData = $this->_gameObject->getGetData($get);
     $getData["WorldID"] = max(0, intval($_GET["WorldID"]));
     if ($_GET["otype"] == 1) {
         $UrlAppend = "QueryGame/FactionRegist";
     }
     $data = $this->getResult($UrlAppend, $getData);
     if ($data['Result'] === 0) {
         if ($data['FactionList']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['Count'], 'perpage' => PAGE_SIZE));
             foreach ($data['FactionList'] as &$item) {
                 $item["memberUrl"] = $this->_urlMember($item["FactionID"]);
             }
             $this->_assign['dataList'] = $data['FactionList'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     }
     $this->_assign['OrganizeUrl'] = Tools::url(CONTROL, 'Organize', $query = array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'otype' => 0));
     $this->_assign['OrganizeUrl2'] = Tools::url(CONTROL, 'Organize', $query = array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'otype' => 1));
     return $this->_assign;
 }