File size: 4.91Kb
<?php
//error_reporting(0);
//$PREFER_DEFLATE=true;
//$FORCE_COMPRESSION=false;
//make for clikus.ru
//Admin icq 91531
class generic_time
{
public $gen_time;
private $start;
private $stop;
function __construct()
{
$this->start=explode(' ',microtime());
$this->start=$this->start[1]+$this->start[0];
}
function get_time()
{
$this->stop = explode(' ',microtime());
return $this->gen_time = $this->stop[1] + $this->stop[0] - $this->start;
}
}
$f_get_generic_time = new generic_time;
/*include "$_SERVER[DOCUMENT_ROOT]/ks_antiddos.php";
$ksa = new ks_antiddos();
$ksa->doit(20,10);
function head_return_replaced_str($o){
$o=ereg_replace("<:([^\:>]*):>","",$o);
$o=str_replace('href=""','href="'.$_SERVER['SCRIPT_NAME'].'"',$o);
$o=str_replace('action=""','action="'.$_SERVER['SCRIPT_NAME'].'"',$o);
$o=str_replace('href="?','href="'.$_SERVER['SCRIPT_NAME'].'?',$o);
$o=str_replace('action="?','action="'.$_SERVER['SCRIPT_NAME'].'?',$o);
$o=str_replace('URL=?','URL='.$_SERVER['SCRIPT_NAME'].'?',$o);
return $o;
}*/
/*
function compress_output_gzip($output) {
global $_CONF;
If (isset($_CONF)){
foreach($_CONF as $key=>$value){
$output=formating($key,$value);
}
}
$o=utf_encode($output);
$o=head_return_replaced_str($o);
return gzencode($o);
}
function compress_output_deflate($output) {
global $_CONF;
If (isset($_CONF)){
foreach($_CONF as $key=>$value){
$output=formating($key,$value,$output);
}
}
$o=utf_encode($output);
$o=head_return_replaced_str($o);
return gzdeflate($o);}
function compress_output_x_gzip($output) {
global $_CONF;
If (isset($_CONF)){
foreach($_CONF as $key=>$value){
$output=formating($key,$value,$output);
}
}
$o=utf_encode($output);
$o=head_return_replaced_str($o);
return gzcompress($o);}
*/
function standart($output) {
global $_CONF;
If (isset($_CONF)){
foreach($_CONF as $key=>$value){
$output=formating($key,$value,$output);
}
}
$output=utf_encode($output);
$output=head_return_replaced_str($output);
return $output;
}
/*
if (isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {$AE=$_SERVER['HTTP_ACCEPT_ENCODING'];}
elseif (isset($_SERVER['HTTP_TE'])) {$AE=$_SERVER['HTTP_TE'];}
else {$AE="";}
*/
//$support_gzip=(strpos($AE, 'gzip')!== FALSE)||$FORCE_COMPRESSION;
//$support_deflate=(strpos($AE, 'deflate')!== FALSE)||$FORCE_COMPRESSION;
//$support_x_gzip=(strpos($AE, 'x-gzip')!== FALSE)||$FORCE_COMPRESSION;
//if($support_gzip && $support_deflate) {$support_deflate=$PREFER_DEFLATE;}
//if ($support_deflate) {header("Content-Encoding: deflate"); ob_start("compress_output_deflate");}
//elseif($support_gzip) {header("Content-Encoding: gzip"); ob_start("compress_output_gzip");}
//elseif($support_x_gzip) {header("Content-Encoding: x_gzip"); ob_start("compress_output_x_gzip");}
//else {
ob_start();
//}
$_CONF['index_align']="left";
$_CONF['index_page']="index.php";
$themes=$_COOKIE['winter'];
if (@file ("./style.css"))
{$themes=$themes;}
else {
if (!empty($setall['par1']))
{
$themes=$setall['par1'];
}
else
{
$themes='green';
}
}
ini_set('display_errors', 'off');
header ("Content-type: text/html; charset=windows-1251");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
print '<?xml version="1.0" encoding="windows-1251"?>';
print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">";
print "<title>CLIKUS.RU::".$title."</title><link rel=\"stylesheet\" href=\"../style.css\" type=\"text/css\" /><body>";
echo "<div class='contur'>
<div class='header_rek'>
<p align='center'><div class='header_top'>";
echo '<img src="/images/logo.gif" alt="clikus.ru" /></a></div></p>';
echo "<div class='header'><div style='color:#000000; text-align:left;'>";
include "link.php";
echo "</div><div style='color:#4b4646; text-align:left;'>";
echo '<div class="header_rek">Панель управления:</div>';
//
$num=@count($_GET); $num+=@count($_POST);
If ($num>maxnumrequest){
echo '<wml><card id="card0" title="<:title:>">
<p align="center"><u>HTTP ! (Too much parametres)</u></p>';
include "config/end.php";
}else{
If (isset($_GET))
foreach ($_GET as $value)
if (strlen($value)>maxlengthrequest){
echo '<wml><card id="card0" title="<:title:>">
<p align="center"><u>HTTP ! (Very much lenght of GET parametres)</u></p>';
include "config/end.php";
}
If (isset($_POST))
foreach ($_POST as $value)
if (strlen($value)>maxlengthrequest){
echo '<wml><card id="card0" title="<:title:>">
<p align="center"><u>HTTP ! (Very much lenght of POST parametres)</u></p>';
include "config/end.php";
}
//
If (isset($_GET))
foreach ($_GET as $key=>$value) $_GET[$key]=txt($_GET[$key]);
If (isset($_POST))
foreach ($_POST as $key=>$value) $_POST[$key]=txt($_POST[$key]);
}
//make for clikus.ru
//Admin icq 91531
?>