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
- *
- */
- require( '.' . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'boot.php' );
- require_once( MODEL_PATH . 'profile.php' );
- class GPage extends SecureGamePage {
- var $fullView = null;
- var $profileData = null;
- var $selectedTabIndex = null;
- var $villagesCount = null;
- var $villages = null;
- var $birthDate = null;
- var $agentForPlayers = array( );
- var $myAgentPlayers = array( );
- var $errorText = null;
- var $bbCodeReplacedArray = array( );
- var $isAdmin = null;
- function GPage() {
- parent::securegamepage( );
- $this->viewFile = 'profile.phtml';
- $this->contentCssClass = 'player';
- }
- function load() {
- parent::load( );
- $this->isAdmin = $this->data['player_type'] == PLAYERTYPE_ADMIN;
- $uid = (( isset( $_GET['uid'] ) && 0 < intval( $_GET['uid'] ) ) ? intval( $_GET['uid'] ) : $this->player->playerId);
- if (( ( ( $this->isAdmin && isset( $_GET['spy'] ) ) && 0 < $uid ) && $uid != $this->player->playerId )) {
- $gameStatus = $this->player->gameStatus;
- $previd = $this->player->playerId;
- $this->player = new Player( );
- $this->player->playerId = $uid;
- $this->player->prevPlayerId = $previd;
- $this->player->isAgent = FALSE;
- $this->player->isSpy = TRUE;
- $this->player->gameStatus = $gameStatus;
- $this->player->save( );
- $this->redirect( 'village1.php' );
- return null;
- }
- $this->selectedTabIndex = 0;
- $this->fullView = FALSE;
- $m = new ProfileModel( );
- if ($uid != $this->player->playerId) {
- $this->profileData = $m->getPlayerDataById( $uid );
- if ($this->profileData == NULL) {
- $m->dispose( );
- $this->redirect( 'village1.php' );
- return null;
- }
- } else {
- $this->profileData = $this->data;
- $this->profileData['id'] = $uid;
- $this->fullView = !$this->player->isAgent;
- $this->selectedTabIndex = (( ( ( ( !$this->player->isAgent && isset( $_GET['t'] ) ) && is_numeric( $_GET['t'] ) ) && 0 <= intval( $_GET['t'] ) ) && intval( $_GET['t'] ) <= 4 ) ? intval( $_GET['t'] ) : 0);
- if (( $this->selectedTabIndex == 4 && $this->data['player_type'] == PLAYERTYPE_TATAR )) {
- $this->selectedTabIndex = 0;
- }
- $agentForPlayers = (trim( $this->profileData['agent_for_players'] ) == '' ? array( ) : explode( ',', $this->profileData['agent_for_players'] ));
- foreach ($agentForPlayers as $agent) {
- list( $agentId, $agentName ) = explode( ' ', $agent );
- $this->agentForPlayers[$agentId] = $agentName;
- }
- $myAgentPlayers = (trim( $this->profileData['my_agent_players'] ) == '' ? array( ) : explode( ',', $this->profileData['my_agent_players'] ));
- foreach ($myAgentPlayers as $agent) {
- list( $agentId, $agentName ) = explode( ' ', $agent );
- $this->myAgentPlayers[$agentId] = $agentName;
- }
- }
- $this->profileData['rank'] = $m->getPlayerRank( $uid, $this->profileData['total_people_count'] * 10 + $this->profileData['villages_count'] );
- .......................................................
- ...........................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement