public function __construct()
 {
     global $CTM_General, $CTM_Template, $_Panel, $_PmSystem, $_PAGSEGURO;
     $this->Login = $_SESSION["Hash_Account"];
     $CTM_PagSeguro = new CTM_PagSeguro();
     define("PAGSEGURO_ENABLE", $CTM_PagSeguro->CheckModule() && $_Panel['Financial']['PagSeguro'][0] == 1);
     $CTMT = "templates/" . $CTM_Template->Open() . "/pages/";
     switch (strtoupper($_GET["str"])) {
         case "CHAR_DIV":
             $this->Char_Div();
             $CTM_Template->Load($CTMT . "paneluser[CHAR_DIV].pag.php");
             break;
             /*case "PM_DIV" :
             		$this->PM_Div();
             		$CTM_Template->Load($CTMT."paneluser[PM_DIV].pag.php");
             		break;*/
         /*case "PM_DIV" :
         		$this->PM_Div();
         		$CTM_Template->Load($CTMT."paneluser[PM_DIV].pag.php");
         		break;*/
         case "HOME":
             $this->Home();
             $CTM_Template->Load($CTMT . "paneluser[HOME].pag.php");
             break;
         case "ACCOUNT":
             $this->OptionEnable($_Panel["Account"]["Dates"]);
             $this->Privilegy($_Panel["Account"]["Dates"]);
             $this->ConnectStat();
             $this->Account();
             $CTM_Template->Load($CTMT . "paneluser[ACCOUNT].pag.php");
             break;
         case "CHANGE_PID":
             $this->OptionEnable($_Panel["Account"]["Change_PID"]);
             $this->ConnectStat();
             $this->Change_PID();
             $CTM_Template->Load($CTMT . "paneluser[CHANGE_PID].pag.php");
             break;
         case "CHANGE_MAIL":
             $this->OptionEnable($_Panel["Account"]["Change_Mail"]);
             $this->Privilegy($_Panel["Account"]["Change_Mail"]);
             $this->ConnectStat();
             $this->Change_Mail();
             break;
         case "SELECT_CHAR":
             $this->Manage_Char();
             $CTM_Template->Load($CTMT . "paneluser[SELECT_CHAR].pag.php");
             break;
         case "ALT_VAULT":
             $this->OptionEnable($_Panel["Account"]["Alt_Vault"]);
             $this->Privilegy($_Panel["Account"]["Alt_Vault"]);
             $this->ConnectStat();
             $this->Alt_Vault();
             $CTM_Template->Load($CTMT . "paneluser[ALT_VAULT].pag.php");
             break;
             /*case "REPAIR_VAULT" :
             		$this->OptionEnable($_Panel["Account"]["Repair_Vault"]);
             		$this->Privilegy($_Panel["Account"]["Repair_Vault"]);
             		$this->ConnectStat();
             		$this->Repair_Vault();
             		$CTM_Template->Load($CTMT."paneluser[REPAIR_VAULT].pag.php");
             		break;*/
         /*case "REPAIR_VAULT" :
         		$this->OptionEnable($_Panel["Account"]["Repair_Vault"]);
         		$this->Privilegy($_Panel["Account"]["Repair_Vault"]);
         		$this->ConnectStat();
         		$this->Repair_Vault();
         		$CTM_Template->Load($CTMT."paneluser[REPAIR_VAULT].pag.php");
         		break;*/
         case "CONNECTS":
             $this->OptionEnable($_Panel["Account"]["Connects"]);
             $this->Privilegy($_Panel["Account"]["Connects"]);
             $this->Connects();
             $CTM_Template->Load($CTMT . "paneluser[CONNECTS].pag.php");
             break;
         case "ADD_SCREEN":
             $this->OptionEnable($_Panel["Account"]["ScreenShots"]);
             $this->Privilegy($_Panel["Account"]["ScreenShots"]);
             $this->Add_ScreenShot();
             $CTM_Template->Load($CTMT . "paneluser[ADD_SCREEN].pag.php");
             break;
         case "DELETE_SCREEN":
             $this->OptionEnable($_Panel["Account"]["ScreenShots"]);
             $this->Privilegy($_Panel["Account"]["ScreenShots"]);
             $this->Delete_ScreenShot();
             $CTM_Template->Load($CTMT . "paneluser[DELETE_SCREEN].pag.php");
             break;
             /*case "PM_ENTER" :
             		$this->OptionEnable($_Panel["Account"]["PM_System"]);
             		$this->Privilegy($_Panel["Account"]["PM_System"]);
             		$this->PM_Enter();
             		$CTM_Template->Load($CTMT."paneluser[PM_ENTER].pag.php");
             		break;
             		case "PM_EXIT" :
             		$this->OptionEnable($_Panel["Account"]["PM_System"]);
             		$this->Privilegy($_Panel["Account"]["PM_System"]);
             		$this->PM_Exit();
             		$CTM_Template->Load($CTMT."paneluser[PM_EXIT].pag.php");
             		break;
             		case "READ_PM" :
             		$this->OptionEnable($_Panel["Account"]["PM_System"]);
             		$this->Privilegy($_Panel["Account"]["PM_System"]);
             		$this->ConnectStat();
             		$this->Read_PM();
             		$CTM_Template->Load($CTMT."paneluser[READ_PM].pag.php");
             		break;
             		case "SEND_PM" :
             		$this->OptionEnable($_Panel["Account"]["PM_System"]);
             		$this->Privilegy($_Panel["Account"]["PM_System"]);
             		$this->ConnectStat();
             		$this->Send_PM();
             		$CTM_Template->Load($CTMT."paneluser[SEND_PM].pag.php");
             		break;*/
         /*case "PM_ENTER" :
         		$this->OptionEnable($_Panel["Account"]["PM_System"]);
         		$this->Privilegy($_Panel["Account"]["PM_System"]);
         		$this->PM_Enter();
         		$CTM_Template->Load($CTMT."paneluser[PM_ENTER].pag.php");
         		break;
         		case "PM_EXIT" :
         		$this->OptionEnable($_Panel["Account"]["PM_System"]);
         		$this->Privilegy($_Panel["Account"]["PM_System"]);
         		$this->PM_Exit();
         		$CTM_Template->Load($CTMT."paneluser[PM_EXIT].pag.php");
         		break;
         		case "READ_PM" :
         		$this->OptionEnable($_Panel["Account"]["PM_System"]);
         		$this->Privilegy($_Panel["Account"]["PM_System"]);
         		$this->ConnectStat();
         		$this->Read_PM();
         		$CTM_Template->Load($CTMT."paneluser[READ_PM].pag.php");
         		break;
         		case "SEND_PM" :
         		$this->OptionEnable($_Panel["Account"]["PM_System"]);
         		$this->Privilegy($_Panel["Account"]["PM_System"]);
         		$this->ConnectStat();
         		$this->Send_PM();
         		$CTM_Template->Load($CTMT."paneluser[SEND_PM].pag.php");
         		break;*/
         case "REFERENCE_LINK":
             $this->OptionEnable($_Panel["Account"]["ReferenceLink"]);
             $this->Privilegy($_Panel["Account"]["ReferenceLink"]);
             $this->NewFinal_ReferenceLink();
             $CTM_Template->Load($CTMT . "paneluser[REFERENCE_LINK].pag.php");
             break;
         case "MANAGE_CHAR":
             $this->CheckCharSelected();
             $this->Show_Char();
             $CTM_Template->Load($CTMT . "paneluser[MANAGE_CHAR].pag.php");
             break;
         case "RESET_CHAR":
             $this->OptionEnable($_Panel["Char"]["Reset"]);
             $this->Privilegy($_Panel["Char"]["Reset"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->ResetSystem();
             $CTM_Template->Load($CTMT . "paneluser[RESET_CHAR].pag.php");
             break;
         case "MASTER_RESET":
             $this->OptionEnable($_Panel["Char"]["MReset"]);
             $this->Privilegy($_Panel["Char"]["MReset"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->MasterReset();
             $CTM_Template->Load($CTMT . "paneluser[MASTER_RESET].pag.php");
             break;
         case "TRANSFER_RESETS":
             $this->OptionEnable($_Panel["Char"]["Transfer_Resets"]);
             $this->Privilegy($_Panel["Char"]["Transfer_Resets"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Transfer_Resets();
             $CTM_Template->Load($CTMT . "paneluser[TRANSFER_RESETS].pag.php");
             break;
         case "TRADE_RCASH":
             $this->OptionEnable($_Panel["Char"]["Trade_RCash"]);
             $this->Privilegy($_Panel["Char"]["Trade_RCash"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Trade_ResetsCash();
             $CTM_Template->Load($CTMT . "paneluser[TRADE_RCASH].pag.php");
             break;
         case "CLEAR_PK":
             $this->OptionEnable($_Panel["Char"]["Clear_PK"]);
             $this->Privilegy($_Panel["Char"]["Clear_PK"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Clear_PK();
             $CTM_Template->Load($CTMT . "paneluser[CLEAR_PK].pag.php");
             break;
         case "CHANGE_CLASS":
             $this->OptionEnable($_Panel["Char"]["Change_Class"]);
             $this->Privilegy($_Panel["Char"]["Change_Class"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Change_Class();
             $CTM_Template->Load($CTMT . "paneluser[CHANGE_CLASS].pag.php");
             break;
         case "CHANGE_NICK":
             $this->OptionEnable($_Panel["Char"]["Change_Nick"]);
             $this->Privilegy($_Panel["Char"]["Change_Nick"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Change_Nick();
             $CTM_Template->Load($CTMT . "paneluser[CHANGE_NICK].pag.php");
             break;
         case "MOVE_CHAR":
             $this->OptionEnable($_Panel["Char"]["Move_Char"]);
             $this->Privilegy($_Panel["Char"]["Move_Char"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Move_Char();
             $CTM_Template->Load($CTMT . "paneluser[MOVE_CHAR].pag.php");
             break;
         case "PROFILE_CHAR":
             $this->OptionEnable($_Panel["Char"]["Profile_Char"]);
             $this->Privilegy($_Panel["Char"]["Profile_Char"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Profile_Char();
             $CTM_Template->Load($CTMT . "paneluser[PROFILE_CHAR].pag.php");
             break;
         case "UPLOAD_IMG":
             $this->OptionEnable($_Panel["Char"]["Upload_Img"]);
             $this->Privilegy($_Panel["Char"]["Upload_Img"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Upload_Img();
             $CTM_Template->Load($CTMT . "paneluser[UPLOAD_IMG].pag.php");
             break;
         case "CONCERT_POINTS":
             $this->OptionEnable($_Panel["Char"]["Concert_Points"]);
             $this->Privilegy($_Panel["Char"]["Concert_Points"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Concert_Points();
             $CTM_Template->Load($CTMT . "paneluser[CONCERT_POINTS].pag.php");
             break;
         case "RESET_POINTS":
             $this->OptionEnable($_Panel["Char"]["Reset_Points"]);
             $this->Privilegy($_Panel["Char"]["Reset_Points"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Reset_Points();
             $CTM_Template->Load($CTMT . "paneluser[RESET_POINTS].pag.php");
             break;
         case "DISTRIBUTE_POINTS":
             $this->OptionEnable($_Panel["Char"]["Distribute_Points"]);
             $this->Privilegy($_Panel["Char"]["Distribute_Points"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Distribute_Points();
             $CTM_Template->Load($CTMT . "paneluser[DISTRIBUTE_POINTS].pag.php");
             break;
         case "CLEAR_CHAR":
             $this->OptionEnable($_Panel["Char"]["Clear_Char"]);
             $this->Privilegy($_Panel["Char"]["Clear_Char"]);
             $this->CheckCharSelected();
             $this->ConnectStat();
             $this->Clear_Char();
             $CTM_Template->Load($CTMT . "paneluser[CLEAR_CHAR].pag.php");
             break;
             /*case "REPAIR_INVENTORY" :
             		$this->OptionEnable($_Panel["Char"]["Repair_Inventory"]);
             		$this->Privilegy($_Panel["Char"]["Repair_Inventory"]);
             		$this->CheckCharSelected();
             		$this->ConnectStat();
             		$this->Repair_Inventory();
             		$CTM_Template->Load($CTMT."paneluser[REPAIR_INVENTORY].pag.php");
             		break;*/
         /*case "REPAIR_INVENTORY" :
         		$this->OptionEnable($_Panel["Char"]["Repair_Inventory"]);
         		$this->Privilegy($_Panel["Char"]["Repair_Inventory"]);
         		$this->CheckCharSelected();
         		$this->ConnectStat();
         		$this->Repair_Inventory();
         		$CTM_Template->Load($CTMT."paneluser[REPAIR_INVENTORY].pag.php");
         		break;*/
         case "CLOSE_CHAR":
             $_SESSION["Web_ManageChar"] = NULL;
             unset($_SESSION["Web_ManageChar"]);
             exit("<script>CTM_Load('?pag=paneluser','conteudo','GET');</script>");
             break;
         case "TICKETS":
             $this->OptionEnable($_Panel["Suportt"]["Tickets"]);
             $this->Open_Ticket();
             $CTM_Template->Load($CTMT . "paneluser[TICKETS].pag.php");
             break;
         case "VIEW_TICKET":
             $this->OptionEnable($_Panel["Suportt"]["Tickets"]);
             $this->Resp_Ticket();
             $CTM_Template->Load($CTMT . "paneluser[VIEW_TICKET].pag.php");
             break;
         case "PAYMENTS":
             $this->OptionEnable($_Panel["Financial"]["Payments"]);
             $this->Confirm_Payment();
             $CTM_Template->Load($CTMT . "paneluser[PAYMENTS].pag.php");
             break;
         case "VIEW_PAYMENT":
             $this->OptionEnable($_Panel["Financial"]["Payments"]);
             $this->Resp_Payment();
             $CTM_Template->Load($CTMT . "paneluser[VIEW_PAYMENT].pag.php");
             break;
         case "TRADE_AMOUNT":
             $this->OptionEnable($_Panel["Financial"]["Trade_Amount"]);
             $this->ConnectStat();
             $this->Trade_Amount();
             $CTM_Template->Load($CTMT . "paneluser[TRADE_AMOUNT].pag.php");
             break;
         case "BUY_VIP":
             $this->OptionEnable($_Panel["Financial"]["Buy_VIP"]);
             $this->ConnectStat();
             $this->Buy_VIP();
             $CTM_Template->Load($CTMT . "paneluser[BUY_VIP].pag.php");
             break;
         case "PAGSEGURO":
             if (!PAGSEGURO_ENABLE) {
                 $_Panel["Financial"]["PagSeguro"][0] = 0;
             }
             $this->OptionEnable($_Panel["Financial"]["PagSeguro"]);
             $CTM_Template->Set("%MAIL_RECEIVER%", $_PAGSEGURO['MAIL_RECEIVER']);
             $CTM_Template->Set("%USER_LOGIN%", $this->Login);
             $CTM_Template->Load($CTMT . "paneluser[PAGSEGURO].pag.php");
             break;
         default:
             $this->General_Nav();
             $CTM_Template->Load($CTMT . "paneluser.pag.php");
             break;
     }
 }
Exemple #2
0
define("Product", "Effect Web");
# Version
$version = new Version();
$version->setVersion("v1.8.5", "v1.8.5 Finish Edition");
$version->compareVersions(constant("Update_Key"), true);
# Login
if (!empty($_SESSION['Hash_Account'])) {
    $_SESSION["Hash_Account"] = str_replace(array("'", ";", "--"), NULL, $_SESSION["Hash_Account"]);
    $Login = str_replace(array("'", ";", "--"), NULL, $_SESSION["Hash_Account"]);
}
# Class Load
$CTM_Security = new CTM_Security();
$CTM_Template = new CTM_Template();
$CTM_Pages = new CTM_Pages();
$CTM_Crypt = new CTM_Crypt();
if ($CTM_Crypt->CallSecuritySite() != "YTc2ZGJiMmZlNDY5ZThkNzkwYmU0ZjJhYWUyNDUwMDI=") {
    exit("Files corrupted.");
}
$CTM_MSSQL = new CTM_MSSQL();
# PagSeguro
if ($_GET['module'] == "pagseguro") {
    $CTM_PagSeguro = new CTM_PagSeguro();
    $CTM_PagSeguro->PagSeguroReturn();
}
# Reference
if (strlen($_GET['ref']) > 0) {
    $CTM_Reference = new CTM_Reference();
    $CTM_Reference->ReferenceLink($_GET['ref']);
}
$CTM_Ajax = new CTM_Ajax();
ob_clean();