File size: 1.45Kb
<?php
/*(с) Im !eee*/
error_reporting(0);
header('Cache-Control:no-cache,no-store,must-revalidate');
header('Expires:Wed, 26 Feb 1997 8:21:57 GMT');
header('Pragma:no-cache');
set_include_path('');
/*use admin panel to edit them*/
/*mysql|files*/
define('STORE',/*[store]*/'files'/*[/store]*/);
define('MESS_TOT',/*[mess_tot]*/'5'/*[/mess_tot]*/);
define('USE_BB',/*[use_bb]*/'1'/*[/use_bb]*/);
define('ML_AUT',/*[ml_aut]*/'11'/*[/ml_aut]*/);
define('ML_MSG',/*[ml_msg]*/'100'/*[/ml_msg]*/);
define('TM_WR',/*[tm_wr]*/'10'/*[/tm_wr]*/);
define('ADM_PASS',/*[adm_pass]*/md5('12345')/*[/adm_pass]*/);
define('PG_PREF',/*[pg_pref]*/'pages'/*[/pg_pref]*/.DIRECTORY_SEPARATOR);
define('MY_HOST', /*[my_host]*/'localhost'/*[/my_host]*/);
define('MY_USER',/*[my_user]*/'root'/*[/my_user]*/);
define('MY_PASS',/*[my_pass]*/'12345'/*[/my_pass]*/);
define('MY_DB',/*[my_db]*/'jsgb'/*[/my_db]*/);
define('MY_TBL',/*[my_tbl]*/'jsgb_posts'/*[/my_tbl]*/);
//Gzip
$enc=false;
if(isset($_SERVER['HTTP_ACCEPT_ENCODING'])){
$enc=$_SERVER['HTTP_ACCEPT_ENCODING'];
} else if(isset($_SERVER['HTTP_TE'])){
$enc=$_SERVER['HTTP_TE'];
}
if($enc){
if(strpos($enc,'gzip')!==false){
header('Content-Encoding:gzip');
ob_start('ob_gzhandler');
} else if(strpos($enc,'deflate')!==false){
header('Content-Encoding:deflate');
ob_start('ob_deflatehandler');
} else {
ob_start();
}
} else {
ob_start();
}
//it is called last
register_shutdown_function('register_shutdown_function','ob_end_flush');
?>