Advertisement
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
- *
- */
- session_start( );
- set_time_limit( 0 );
- define( 'ROOT', realpath( dirname( 'e:\webservers\home\direct\zend\index.php' ) ) . '/' );
- include_once( ROOT . 'config.php' );
- include_once( ROOT . 'include/time.class.php' );
- include_once( ROOT . 'include/db.class.php' );
- include_once( ROOT . 'include/user.class.php' );
- include_once( ROOT . 'include/mode.class.php' );
- include_once( ROOT . 'include/company.class.php' );
- include_once( ROOT . 'include/stats.class.php' );
- include_once( ROOT . 'include/pclzip.lib.class.php' );
- include_once( ROOT . 'include/yandexjson.class.php' );
- $time = new timecontrol( );
- $db = new db( $db_host, $db_user, $db_pass, $db_name );
- $user = new user( );
- $mode = new mode( );
- $company = new company( );
- $stats = new stats( );
- $action = $_REQUEST['action'];
- $id = (int)$_REQUEST['id'];
- $uid = (int)$_REQUEST['uid'];
- $is_active = (int)$_REQUEST['is_active'];
- $page = (int)$_REQUEST['page'];
- if (!( $action)) {
- $action = 'company';
- }
- if ($action == 'ajax_login') {
- require_once( ROOT . 'js/JsHttpRequest/JsHttpRequest.php' );
- $JsHttpRequest = &new jshttprequest( 'utf-8' );
- $pass = $_REQUEST['pass'];
- $user->admlogin( $pass );
- $_RESULT = array( 'out' => 1 );
- exit( );
- }
- if ($user->is_admin == false) {
- include( ROOT . 'templates/user_login.php' );
- exit( );
- }
- if ($action == 'logout') {
- $user->admlogout( );
- exit( );
- }
- if ($action == 'company') {
- if (0 < $id) {
- if (isset( $_GET['is_active'] )) {
- $_SESSION['url_position']['advert']->is_active = (int)$_GET['is_active'];
- header( 'Location: /company/' . $id . '/' );
- }
- $is_active = (int)$_SESSION['url_position']['advert']->is_active;
- $_SESSION['url_position']['advert']->is_active = $is_active;
- $modeList = $company->listmode( );
- $advertList = $company->listadvert( $id, $is_active );
- $crontabList = $company->listcrontab( $id );
- $title = 'Кампания: ' . $advertList[0]->company_name;
- $fincl = 'advert_list.php';
- }
- } else {
- if ($action == 'advert') {
- if (0 < $id) {
- $modeList = $company->listmode( );
- $page -= 1;
- if ($page < 0) {
- $page = 0;
- }
- $count_on_page = 50;
- $count = $company->countphrases( $id );
- $count_page = ceil( $count / $count_on_page );
- $sql_start = $count_on_page * $page;
- $advertList = $company->listphrases( $id, $sql_start, $count_on_page );
- $crontabList = $company->listcrontab( 0, $id );
- $title = 'Объявление: ' . $advertList[0]->advert_name;
- $fincl = 'phrases_list.php';
- }
- } else {
- ......................................................................
- ...................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement