Guest User

Untitled

a guest
Jul 8th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class HomeController extends Controller {
  15. public function filters() {
  16. return array( 'accessControl' );
  17. }
  18.  
  19. public function accessRules() {
  20. return array( array( 'allow', 'actions' => array( 'index', 'ad', 'checkVersion' ), 'users' => array( '@' ) ), array( 'deny', 'users' => array( '*' ) ) );
  21. }
  22.  
  23. public function actionAd() {
  24. $adJson = false;
  25.  
  26. if (isset( $_SESSION['ad'] )) {
  27. $adJson = Yii::app( )->session->get( 'ad' );
  28. } else {
  29. try {
  30. $adJson = @file_get_contents( AffTrackHelper::AFFOFFICE_AD_URL );
  31. Setting::setValue( Setting::SETTING_KEY_AFFOFFICE_AD, $adJson );
  32. Yii::app( )->session->add( 'ad', $adJson );
  33. } catch (Exception $e) {
  34. }
  35. if (!$adJson) {
  36. $adJson = Setting::getValueByKey( Setting::SETTING_KEY_AFFOFFICE_AD );
  37. }
  38.  
  39.  
  40. if (!$adJson) {
  41. $adJson = AffTrackHelper::AFFOFFICE_AD_BACKUP;
  42. }
  43. }
  44.  
  45. echo $adJson;
  46. exit( );
  47. }
  48.  
  49. public function actionCheckVersion() {
  50. $url = AffTrackHelper::ROIDOG_VERSION_URL . '?version=' . Version::SYSTEM_VERSION;
  51. try {
  52. $version = @file_get_contents( $url );
  53. .....................................................
  54. .................................
  55. ..............
Advertisement
Add Comment
Please, Sign In to add comment