<?php
header("Cache-Control: no-store, no-cache, must-revalidate");
if ($v == "2") {
header("Content-Type:text/html; charset=UTF-8");
}else {
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
}
require("inc.php");
$link = $fnc->connect_db();
list($row, $id, $ps, $fsize1, $fsize2,$p_arr) = $fnc->check_login($link);
$bal=$row["bal"];
$us=$row["user"];
$time=time()+86400;
$fnc->head("Ulduz Nik", "left");
echo $fsize1;
if ($v != "2") {
echo "<b><u>Ulduz Nik</u></b><br/>\n";
echo $divide;
}
if(!isset($_POST['action']))
{
echo "<form action=\"ulduz_nik.php?id=$id&ps=$ps&".$ver."ref=$ref\" method=\"post\">\n";
echo "Hesabınızda <b>$bal</b>. bal var<br/>\n";
echo "Ulduz Nick xidmetinden istifade etdikde, sizin nickiniz Tanişliqin yuxari hissesinde <b>24 saatliq</b> aktiv olur.<br/>\n";
echo "-------<br/>\n";
echo "<input value=\"Ulduz Nik Ol\" class=\"head\" style=\"margin:6px 0 5px 0;\" type=\"submit\"></form>\n";
echo $divide;
$son=file("ulduz_nik.dat");
$taym = trim($son[0]);
$uid = trim($son[1]);
$tm=time();
if (($taym>$tm)&&($id==$uid)){
echo "Sizin nickiniz Tanişliqda artiq Ulduz Nick di.<br/>****<br/>";
echo "<a href=\"enter.php?id=$id&ps=$ps&r=$ref\">Dehliz</a><br/>\n";
}
if ($bal<10){
echo "<i>Ulduz Nick olmaq ucun <b>10</b>, baliniz olmalıdır...</i><br/>****<br/>";
echo "<a href=\"hesab.php?id=$id&ps=$ps&r=$ref\">Bal Xidmetleri</a><br/>\n";
}else{
$fpb=fopen('ulduz_nik.dat','w');
$line = "$time\n$id\n$us\n";
fputs($fpb,$line);
fclose($fpb);
$newbal = $bal - 10;
$sql = mysql_query("UPDATE `users` SET `bal` = '".$newbal."' WHERE `id` = '".$id."';");
echo "Tebrikler Siz Ulduz Nick oldunuz<br/>Hesabinizda <b>$newbal</b> bal qaldi<br/>-------<br/>";
}
}
$adm = @mysql_query ("Select user from users where id='1' LIMIT 1;");
$z = @mysql_fetch_array ($adm);
$administration = $z["user"];
$bnik = $inf["user"];
@fflush($open);
@flock ($open,LOCK_UN);
@fclose($open);
for ($i=$rm=9; $i<=$rm=9; $i++){
$st = time()+$onvaxt;
$today=date ("H:i");
$tleft = $row["whykik"] - time();
$txt = "<b>Diqqet! <u>$us</u> </b> Nickli istifadeçi <b>Ulduz Nick</b> oldu.\n";
$rnd = rand(0,99999999);
mysql_query ("Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='Sistem', message='".$txt."', id='".$st."', towhom='', hid='0', usid='7'");
}
echo "<a href=\"enter.php?id=$id&ps=$ps&".$ver."ref=$ref\">Dehliz</a>\n";
echo $fsize2;
$fnc->foot();
mysql_close ($link);
ob_end_flush();
?>
buda php