Вход Регистрация
Файл: adultscript-2.0.3-pro/files/modules/video/player/config_common.php
Строк: 50
<?php
defined
('_VALID') or die('Restricted Access!');

define('MINIFY_OUTPUT'FALSE);
define('GZIP_OUTPUT'FALSE);
define('QUERY_STRING''?start=${start}');

$base_dir realpath(dirname(__FILE__).'/../../../');
require 
$base_dir.'/libraries/defines.php';
require 
$base_dir.'/libraries/framework.php';

if (
get_magic_quotes_runtime()) {
    
set_magic_quotes_runtime(0);
}

$cfg   VF::cfg('core.config');

error_reporting(($cfg['debug'] == '1') ? E_ALL E_STRICT 0);
ini_set('display_errors'$cfg['debug']);

if (
ini_get('date.timezone') == '') {
    
date_default_timezone_set($cfg['timezone']);
}

spl_autoload_register(array('VF''auto_load'));

// use our own custom error/exception handler
if ($cfg['error'] == '1') {
    
set_error_handler(array('VError''error_handler'));
    
set_exception_handler(array('VError''exception_handler'));
}

register_shutdown_function(array('VError''shutdown_handler'));

VF::load('framework.functions');
VF::load('framework.multibyte');

$uri VUri::getURI('/player');
define('BASE_URL'$uri['base_url']);
define('CURRENT_URL'$uri['current_url']);
define('RELATIVE_URL'$uri['relative_url']);
define('ADMIN_URL'$uri['admin_url']);
define('MEDIA_URL'BASE_URL.'/media');
define('THUMB_URL'MEDIA_URL.'/videos/tmb');
define('TMP_URL'BASE_URL.'/tmp');

$session VF::factory('session');
$session->start();

if (
$cfg['offline'] == '1' &&
    !
VAuth::group('Administrator')) {
    die(
$cfg['offline_message']);
}

unset(
$cfg);

VLanguage::initialize();
Онлайн: 1
Реклама