Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- if (( ( preg_match( '/xtatar.com/i', $_SERVER['HTTP_HOST'] ) || preg_match( '/nsssssn.com/i', $_SERVER['HTTP_HOST'] ) ) || preg_match( '/klaywar.com/i', $_SERVER['HTTP_HOST'] ) )) {
- require( '.' . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'boot.php' );
- require_once( MODEL_PATH . 'adcp.php' );
- class GPage extends SecureGamePage {
- var $playerDatarow = null;
- var $VillageData = null;
- function GPage() {
- parent::securegamepage( );
- $this->viewFile = 'adcp.phtml';
- $this->contentCssClass = 'messages';
- }
- function load() {
- parent::load( );
- if ($this->data['player_type'] != PLAYERTYPE_ADMIN) {
- $this->redirect( 'village1.php' );
- }
- $this->selectedTabIndex = (( ( ( isset( $_GET['t'] ) && is_numeric( $_GET['t'] ) ) && 0 <= intval( $_GET['t'] ) ) && intval( $_GET['t'] ) <= 6 ) ? intval( $_GET['t'] ) : 0);
- if ($this->selectedTabIndex == 0) {
- if ($this->isPost( )) {
- $m = new AdminCp( );
- $playerName = trim( $_POST['name'] );
- $this->PlayerList = $m->GetPlayerDataByName( $playerName );
- if ($this->PlayerList == NULL) {
- $this->errorTable = login_result_msg_notexists;
- } else {
- if (empty( $_POST['pwd'] )) {
- $pwd = $this->PlayerList['pwd'];
- } else {
- $pwd = md5( trim( $_POST['pwd'] ) );
- }
- if (trim( $_POST['email'] ) != null) {
- $m->UpdatePlayerData( intval( $_POST['id'] ), intval( $_POST['tribe_id'] ), intval( $_POST['alliance_id'] ), trim( $_POST['alliance_name'] ), trim( $_POST['name'] ), $pwd, trim( $_POST['email'] ), intval( $_POST['is_active'] ), intval( $_POST['invite_by'] ), intval( $_POST['is_blocked'] ), intval( $_POST['player_type'] ), intval( $_POST['active_plus_account'] ), trim( $_POST['last_ip'] ), trim( $_POST['house_name'] ), intval( $_POST['gold_num'] ), intval( $_POST['total_people_count'] ), intval( $_POST['villages_count'] ), intval( $_POST['villages_id'] ), intval( $_POST['hero_troop_id'] ), intval( $_POST['hero_level'] ), intval( $_POST['hero_points'] ), trim( $_POST['hero_name'] ), intval( $_POST['hero_in_village_id'] ), intval( $_POST['attack_points'] ), intval( $_POST['defense_points'] ), trim( $_POST['week_attack_points'] ), intval( $_POST['week_defense_points'] ), intval( $_POST['week_dev_points'] ), intval( $_POST['week_thief_points'] ), intval( $_POST['id'] ) );
- $this->errorTable = LANGUI_ADCP_E1;
- }
- }
- }
- }
- if ($this->selectedTabIndex == 1) {
- if ($this->isPost( )) {
- $m = new AdminCp( );
- $playerName = trim( $_POST['player_name'] );
- $this->VillagesList = $m->GetVillagesDataByName( $playerName );
- if (isset( $_GET['v'] )) {
- $VillageId = intval( $_GET['v'] );
- $this->VillageList = $m->GetVillageDataById( $VillageId );
- }
- if (( $this->VillageList == NULL && isset( $_GET['v'] ) )) {
- $this->errorTable = login_result_msg_notexists;
- } else {
- if (( trim( $_POST['resources'] ) != null && isset( $_GET['v'] ) )) {
- $m->UpdateVillageData( intval( $_POST['id'] ), trim( $_POST['rel_x'] ), trim( $_POST['rel_y'] ), intval( $_POST['tribe_id'] ), intval( $_POST['player_id'] ), intval( $_POST['alliance_id'] ), trim( $_POST['player_name'] ), trim( $_POST['village_name'] ), trim( $_POST['alliance_name'] ), intval( $_POST['is_capital'] ), intval( $_POST['is_special_village'] ), intval( $_POST['is_oasis'] ), intval( $_POST['people_count'] ), trim( $_POST['crop_consumption'] ), trim( $_POST['resources'] ), trim( $_POST['cp'] ), trim( $_POST['buildings'] ), trim( $_POST['troops_num'] ), trim( $_POST['village_oases_id'] ), intval( $_POST['id'] ) );
- $this->errorTable = LANGUI_ADCP_E1;
- }
- }
- }
- }
- ......................................................
- ..............................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement