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 Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class HomeController extends Controller {
- public function filters() {
- return array( 'accessControl' );
- }
- public function accessRules() {
- return array( array( 'allow', 'actions' => array( 'index', 'ad', 'checkVersion' ), 'users' => array( '@' ) ), array( 'deny', 'users' => array( '*' ) ) );
- }
- public function actionAd() {
- $adJson = false;
- if (isset( $_SESSION['ad'] )) {
- $adJson = Yii::app( )->session->get( 'ad' );
- } else {
- try {
- $adJson = @file_get_contents( AffTrackHelper::AFFOFFICE_AD_URL );
- Setting::setValue( Setting::SETTING_KEY_AFFOFFICE_AD, $adJson );
- Yii::app( )->session->add( 'ad', $adJson );
- } catch (Exception $e) {
- }
- if (!$adJson) {
- $adJson = Setting::getValueByKey( Setting::SETTING_KEY_AFFOFFICE_AD );
- }
- if (!$adJson) {
- $adJson = AffTrackHelper::AFFOFFICE_AD_BACKUP;
- }
- }
- echo $adJson;
- exit( );
- }
- public function actionCheckVersion() {
- $url = AffTrackHelper::ROIDOG_VERSION_URL . '?version=' . Version::SYSTEM_VERSION;
- try {
- $version = @file_get_contents( $url );
- .....................................................
- .................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment