Просмотр файла ini.php

Размер файла: 2.59Kb
<?php
$DB_HOST = "localhost";
$DB_USER = "test";
$DB_PASS = "test";
$DB_NAME = "test";

$offline = 300;
////////////
@mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die ('Временно недоступен, сообщите администратору...');
@mysql_select_db($DB_NAME);
$currHour=date("H",time());
$currDate=date("F", time());
$currDate = str_replace("January","01",$currDate);
$currDate = str_replace("February","02",$currDate);
$currDate = str_replace("March","03",$currDate);
$currDate = str_replace("April","04",$currDate);
$currDate = str_replace("May","05",$currDate);
$currDate = str_replace("June","06",$currDate);
$currDate = str_replace("July","07",$currDate);
$currDate = str_replace("August","08",$currDate);
$currDate = str_replace("September","09",$currDate);
$currDate = str_replace("October","10",$currDate);
$currDate = str_replace("November","11",$currDate);
$currDate = str_replace("December","12",$currDate);
$curr=date("i:s", time());
$currTime1=date("$currHour", time());
$currTime2=date("i", time());
$currTime3=date("s", time());
$currDen=date("d", time());
$currGod=date("Y", time());
$daten="$currDen.$currDate.$currGod";

include("temp/functions.php");

$nast_chata = @mysql_query("SELECT * FROM `c_nast_chat` order by id desc;");
$kto_chata=@mysql_fetch_assoc($nast_chata);
$foto_rap1=$kto_chata['foto_raz_d'];
$foto_rap2=$kto_chata['foto_raz_w'];
$foto_razm=$kto_chata['foto_welich'];
$helou=$kto_chata['piveztvie'];
$topiki_razm=$kto_chata['topiki'];
$logotip=$kto_chata['logot'];
$ssilka_saita=$kto_chata['satik'];
$ssilka_nazwan=$kto_chata['naz_satik'];
$wormttt=$kto_chata['wormt'];



$f="h";



$ref=intval($_GET['ref']);
if(empty($ref))$ref = rand(1000, 9999);

$salt='dead';

        $pss=md5(md5($ps).md5($salt));


function autorize() {
global $salt,$id,$ps;
        $pss=md5(md5($ps).md5($salt));
        $q = @mysql_query("select * from `c_users` where id='".bug($id)."' and pass='$pss' limit 1;");
        $duser = @mysql_fetch_array($q);
         return $duser;
}
if(isset($_POST['us']))$us=bug($_POST['us']);
if($translit=="toall") $us=latrus($us);
#if(!empty($us))
if($_POST['enterby']=='us' || $_GET['enterby']=='us'){
$q=mysql_query("SELECT * FROM `c_users` WHERE `nik`='".bug($us)."' AND `pass`='".bug($pss)."'");
}else{
$q=@mysql_query("SELECT * FROM `c_users` WHERE `id`='".bug($us)."' AND pass='".bug($pss)."';");
}

if(empty($id)) {
$data = mysql_fetch_array($q);
$id = $data['id'];
}
$id=mysql_real_escape_string($id);
include("temp/user.php");

include("temp/danie.php");



#echo"$div0";
?>