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 Loader)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class Promotion extends MX_Controller {
- public function __construct() {
- parent::__construct();
- $this->user->userArea();
- $this->load->model("mpromo");
- $this->load->config("promo");
- }
- public function index() {
- $this->oops();
- if (!$this->cache->get("promotionDB")) {
- $this->database();
- }
- $this->cache->save("promotionDB", "promotionDB");
- $CompitableRealms = array();
- foreach ($this->realms->getRealms() as $realmData) {
- $CompitableRealms[] = array("id" => $realmData->getId(), "name" => $realmData->getName(), "characters" => $this->GetMyCharacters($realmData->getId()));
- }
- unset($realmData);
- if (empty($CompitableRealms)) {
- $this->ErrorPage();
- return null;
- }
- $FirstRealm = $CompitableRealms[0];
- $data = array("first_realm" => $FirstRealm, "realms" => $CompitableRealms, "t1" => $this->config->item("descriptionA"), "t2" => $this->config->item("descriptionB"), "t3" => $this->config->item("lang_1"), "t4" => $this->config->item("lang_2"));
- $content = $this->template->loadPage("new.tpl", $data);
- $box = $this->template->box($this->config->item("title"), $content);
- $this->template->view($box, "modules/promotion/css/promotion.css", "modules/promotion/js/promotion.js");
- }
- public function send() {
- if (!($Character = $this->input->post("character"))) {
- exit("?????");
- }
- if (!($RealmId = $this->input->post("realmId"))) {
- exit("?????");
- }
- $Build = $this->mpromo->getBuild($RealmId)->gamebuild;
- $titulo = $this->config->item("message_title");
- $mensaje = $this->config->item("message_content");
- if (!$this->mpromo->_ServerOn($this->mpromo->getBuild($RealmId)->address, $this->mpromo->getBuild($RealmId)->port)) {
- exit($this->config->item("error_realmoff"));
- }
- if (!$this->mpromo->getTotal()) {
- exit($this->config->item("error_maxPerDay"));
- }
- if ($this->mpromo->validar() != true) {
- exit($this->mpromo->validar());
- }
- if (!($realmObj = $this->realms->getRealm($RealmId))) {
- exit($this->config->item("error_unknowrealm"));
- }
- if (!($GUID = $realmObj->getCharacters()->getGuidByName($Character))) {
- exit($this->config->item("error_unknowc"));
- }
- if ($realmObj->getCharacters()->isOnline($GUID)) {
- exit($this->config->item("error_makeoffc"));
- }
- ....................................................
- ....................
- ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement