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

Размер файла: 838B
<?php



Error_Reporting(E_ALL & ~E_NOTICE);

Error_Reporting (ERROR | WARNING);

extract($HTTP_GET_VARS);

extract($HTTP_POST_VARS);

extract($HTTP_COOKIE_VARS);

extract($HTTP_SERVER_VARS);

extract($HTTP_SESSION_VARS);

session_name("SESID"); 

session_start();

include "cfg.php";

if(empty($DB_HOST) && empty($DB_USER) && empty($DB_PASS)){header ("Location: install.php");}

mysql_connect ("$DB_HOST", "$DB_USER", "$DB_PASS")
or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$DB_NAME");
$q = @mysql_query("select * from `users` where id='$cid';");
$data = @mysql_fetch_array($q);
$id=$data['id'];
$data['cin'] += 1;
$data['allin'] += 1;
@mysql_query("update `users` set cin='".$data['cin']."', allin='".$data['allin']."' where id='$cid';");
header("Location: in.php?cid=".$data['id']."") ; 
?>