Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.3
  8. * @ Author : DeZender
  9. * @ Release on : 06.05.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class Promotion extends MX_Controller {
  15.  
  16. public function __construct() {
  17. parent::__construct();
  18. $this->user->userArea();
  19. $this->load->model("mpromo");
  20. $this->load->config("promo");
  21. }
  22.  
  23.  
  24. public function index() {
  25. $this->oops();
  26. if (!$this->cache->get("promotionDB")) {
  27. $this->database();
  28. }
  29. $this->cache->save("promotionDB", "promotionDB");
  30. $CompitableRealms = array();
  31. foreach ($this->realms->getRealms() as $realmData) {
  32. $CompitableRealms[] = array("id" => $realmData->getId(), "name" => $realmData->getName(), "characters" => $this->GetMyCharacters($realmData->getId()));
  33. }
  34. unset($realmData);
  35. if (empty($CompitableRealms)) {
  36. $this->ErrorPage();
  37. return null;
  38. }
  39. $FirstRealm = $CompitableRealms[0];
  40. $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"));
  41. $content = $this->template->loadPage("new.tpl", $data);
  42. $box = $this->template->box($this->config->item("title"), $content);
  43. $this->template->view($box, "modules/promotion/css/promotion.css", "modules/promotion/js/promotion.js");
  44. }
  45.  
  46.  
  47. public function send() {
  48. if (!($Character = $this->input->post("character"))) {
  49. exit("?????");
  50. }
  51. if (!($RealmId = $this->input->post("realmId"))) {
  52. exit("?????");
  53. }
  54. $Build = $this->mpromo->getBuild($RealmId)->gamebuild;
  55. $titulo = $this->config->item("message_title");
  56. $mensaje = $this->config->item("message_content");
  57. if (!$this->mpromo->_ServerOn($this->mpromo->getBuild($RealmId)->address, $this->mpromo->getBuild($RealmId)->port)) {
  58. exit($this->config->item("error_realmoff"));
  59. }
  60. if (!$this->mpromo->getTotal()) {
  61. exit($this->config->item("error_maxPerDay"));
  62. }
  63. if ($this->mpromo->validar() != true) {
  64. exit($this->mpromo->validar());
  65. }
  66. if (!($realmObj = $this->realms->getRealm($RealmId))) {
  67. exit($this->config->item("error_unknowrealm"));
  68. }
  69. if (!($GUID = $realmObj->getCharacters()->getGuidByName($Character))) {
  70. exit($this->config->item("error_unknowc"));
  71. }
  72. if ($realmObj->getCharacters()->isOnline($GUID)) {
  73. exit($this->config->item("error_makeoffc"));
  74. }
  75. ....................................................
  76. ....................
  77. ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement