Вход Регистрация
Файл: system/inc/system.php
Строк: 64
<?php
/**
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
 * @link          http://perf-engine.net
 * @package       PerfEngine
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
require_once(SYS .'/inc/db.php');
if (
get_magic_quotes_gpc())
{
    
$input_data_array = array(& $_GET, & $_POST, & $_COOKIE);
    while (list(
$k$v) = each($input_data_array))
    {
        foreach (
$v as $key => $val)
        {
            if (!
is_array($val))
            {
                
$input_data_array[$k][$key] = stripslashes($val);
                continue;
            }
            
$input_data_array[] = & $input_data_array[$k][$key];
        }
    }
    unset (
$input_data_array);
    if (!empty (
$_FILES))
    {
        foreach (
$_FILES as $k => $v)
        {
            
$_FILES[$k]['name'] = stripslashes((string)$v['name']);
        }
    }
}

require_once(
SYS .'/inc/functions.php');
# <class autoloading> #
function classAutoloader($className)
{
    require_once(
SYS.'/classes/'.$className.'.php');
}
spl_autoload_register('classAutoloader');
# </class autoloading> #
require_once(SYS .'/inc/const.php');
$tpl = new Template();
$stat = new Stat();

require_once(
SYS .'/inc/core.php');

function 
_t($word$file 'lang')
{
    
$lang = new Lang($file);
    return 
$lang->word($word);
}

// автоочистка гостей
$getGuestsNum $db->query("SELECT * FROM `guests`")->rowCount();
if(
$getGuestsNum >=50)
{
    
$db->query("TRUNCATE TABLE `guests`");
}
Онлайн: 1
Реклама