Advertisement
plas71k

full decoded file ;)

Dec 2nd, 2012
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.04 KB | None | 0 0
  1. <?php
  2. class ActivateController extends ActivateAppController
  3. {
  4.     public $name = 'Activate';
  5.     public $uses = null;
  6.     public $components = null;
  7.     public function beforeFilter()
  8.     {
  9.         parent::beforeFilter();
  10.         $this->layout = "install";
  11.         App::import("Component", "Session");
  12.         $this->Session = new SessionComponent;
  13.     }
  14.     protected function _check()
  15.     {
  16.         if (file_exists(CONFIGS . "code.yml")) {
  17.             $key = file_get_contents(CONFIGS . "code.yml");
  18.             $mykey=md5(md5(CONFIGS . " - " . Router::url("/") . " - " . $_SERVER["SERVER_ADDR"]) . "-" . "kJpdRmvVMBzETXqMdNcKNFCJGDuPdQSgpBhLBLLZPpQnUZeSaHmsZjHWVWvreR");
  19.             $mykey1=md5(md5(CONFIGS . " - " . Router::url("/") . " - " . $_SERVER["SERVER_NAME"]) . "-" . "kJpdRmvVMBzETXqMdNcKNFCJGDuPdQSgpBhLBLLZPpQnUZeSaHmsZjHWVWvreR");
  20.             if ($key == $mykey || $key == $mykey1) {
  21.                 $this->Session->setFlash("Already Activated");
  22.                 $this->redirect("/");
  23.             }
  24.         }
  25.     }
  26.     public function index()
  27.     {
  28.         $this->_check();
  29.         if (isset($_GET["message"])) {
  30.             $this->Session->setFlash(base64_decode($_GET["message"]), "default", array(
  31.                 "class" => "error"
  32.             ));
  33.             $this->redirect("/activate");
  34.         }
  35.         $this->set("title_for_layout", __("Activate", true));      
  36.         $mykey1=md5(CONFIGS . " - " . Router::url("/") . " - " . $_SERVER["SERVER_NAME"]);
  37.         $this->set("validation_code", $mykey1);
  38.         $this->set("url", Router::url("/", true));
  39.     }
  40.     public function acti($code = null)
  41.     {
  42.         ${"GLOBALS"}["gzxucl"] = "code";
  43.         file_put_contents(CONFIGS . "code.yml", ${${"GLOBALS"}["gzxucl"]});
  44.         $this->Session->setFlash("Application activated");
  45.         $this->redirect("/");
  46.     }
  47.     public function del($code = null)
  48.     {
  49.         $key = file_get_contents(CONFIGS . "code.yml");
  50.         if ($key == $code) {
  51.         file_put_contents(CONFIGS . "code.yml", "ERROR");
  52.         }
  53.     }
  54. }
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement