Advertisement
Guest User

Untitled

a guest
Oct 5th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 20.09.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class Controller extends CController
  15. {
  16. public $layout = '//layouts/master';
  17. public $breadcrumbs = [];
  18. public $metaDescription;
  19. public $metaKeywords;
  20. public $pageHeader;
  21. public $license_info = ['timeEnd' => 0, 'domain' => ''];
  22. protected $ajax = ['status' => false, 'msg' => ''];
  23. public $gs;
  24. public $ls;
  25.  
  26. public function init()
  27. {
  28. try {
  29. $this->license_info = $this->licenseCheck();
  30. }
  31. catch (Exception $e) {
  32. exit($e->getMessage());
  33. }
  34.  
  35. $this->setDevHeaders();
  36. $this->migrationInstall();
  37.  
  38. if (!user()->isGuest) {
  39. if (!$this->gs) {
  40. $gsId = user()->getGsId();
  41. $gsList = Gs::getOpenServers();
  42.  
  43. if (isset($gsList[$gsId])) {
  44. $this->gs = $gsList[$gsId];
  45. }
  46. }
  47. if (!$this->ls && $this->gs) {
  48. $lsList = Ls::getOpenLoginServers();
  49. $this->ls = (isset($lsList[$this->gs->id]) ? $lsList[$this->gs->id] : NULL);
  50. }
  51. }
  52.  
  53. $this->generateOnlineFile();
  54. }
  55.  
  56. public function performAjaxValidation($model)
  57. {
  58. echo ActiveForm::validate($model);
  59. Yii::app()->end();
  60. }
  61.  
  62. public function redirectBack()
  63. {
  64. if (request()->getUrlReferrer() !== NULL) {
  65. $this->redirect(request()->getUrlReferrer());
  66. }
  67.  
  68. $this->redirect(['/index/default/index']);
  69. }
  70.  
  71. public function actionError()
  72. {
  73. if ($error = app()->errorHandler->error) {
  74. if (request()->isAjaxRequest) {
  75. ...................................................................
  76. ....................................
  77. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement