Advertisement
Guest User

Untitled

a guest
Aug 5th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. 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'] ) )) {
  15. require( '.' . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'boot.php' );
  16. require_once( MODEL_PATH . 'adcp.php' );
  17. class GPage extends SecureGamePage {
  18. var $playerDatarow = null;
  19. var $VillageData = null;
  20.  
  21. function GPage() {
  22. parent::securegamepage( );
  23. $this->viewFile = 'adcp.phtml';
  24. $this->contentCssClass = 'messages';
  25. }
  26.  
  27. function load() {
  28. parent::load( );
  29.  
  30. if ($this->data['player_type'] != PLAYERTYPE_ADMIN) {
  31. $this->redirect( 'village1.php' );
  32. }
  33.  
  34. $this->selectedTabIndex = (( ( ( isset( $_GET['t'] ) && is_numeric( $_GET['t'] ) ) && 0 <= intval( $_GET['t'] ) ) && intval( $_GET['t'] ) <= 6 ) ? intval( $_GET['t'] ) : 0);
  35.  
  36. if ($this->selectedTabIndex == 0) {
  37. if ($this->isPost( )) {
  38. $m = new AdminCp( );
  39. $playerName = trim( $_POST['name'] );
  40. $this->PlayerList = $m->GetPlayerDataByName( $playerName );
  41.  
  42. if ($this->PlayerList == NULL) {
  43. $this->errorTable = login_result_msg_notexists;
  44. } else {
  45. if (empty( $_POST['pwd'] )) {
  46. $pwd = $this->PlayerList['pwd'];
  47. } else {
  48. $pwd = md5( trim( $_POST['pwd'] ) );
  49. }
  50.  
  51.  
  52. if (trim( $_POST['email'] ) != null) {
  53. $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'] ) );
  54. $this->errorTable = LANGUI_ADCP_E1;
  55. }
  56. }
  57. }
  58. }
  59.  
  60.  
  61. if ($this->selectedTabIndex == 1) {
  62. if ($this->isPost( )) {
  63. $m = new AdminCp( );
  64. $playerName = trim( $_POST['player_name'] );
  65. $this->VillagesList = $m->GetVillagesDataByName( $playerName );
  66.  
  67. if (isset( $_GET['v'] )) {
  68. $VillageId = intval( $_GET['v'] );
  69. $this->VillageList = $m->GetVillageDataById( $VillageId );
  70. }
  71.  
  72.  
  73. if (( $this->VillageList == NULL && isset( $_GET['v'] ) )) {
  74. $this->errorTable = login_result_msg_notexists;
  75. } else {
  76. if (( trim( $_POST['resources'] ) != null && isset( $_GET['v'] ) )) {
  77. $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'] ) );
  78. $this->errorTable = LANGUI_ADCP_E1;
  79. }
  80. }
  81. }
  82. }
  83. ......................................................
  84. ..............................
  85. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement