Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set('Europe/Warsaw');
- error_reporting(E_ALL);
- if (isset($_SERVER['SERVER_ADDR']))
- {
- if (!in_array($_SERVER['SERVER_ADDR'], ['127.0.0.1', '::1', 'localhost']))
- {
- die('Access deny');
- }
- }
- define('BASEDIR', dirname(__FILE__) . '/');
- define('LIBDIR', BASEDIR . 'libraries/');
- define('OUTPUT', BASEDIR . 'output/');
- define('background', BASEDIR . 'main/image/background/')
- define('font', BASEDIR . 'main/fonts/');
- set_include_path(get_include_path() . PATH_SEPARATOR . LIBDIR);
- include_once 'scheme.php';
- include_once 'cache.php';
- include_once 'boostrap.php';
- include_once 'teamspeak3.php';
- include_once 'fate.php';
- $reg = Registry::instance();
- $reg->config = new Table(include_once 'config.php');
- $reg->cache = new Cache(BASEDIR . 'main/cache/');
- if(!$reg->cache->get($reg->config['banner']['data']['name']) || filemtime($reg->cache->file($reg->config['banner']['data']['name'])) + $reg->config['banner']['data']['interval'] < time())
- {
Advertisement
Add Comment
Please, Sign In to add comment