bu user.php sehifesidi baxin gorun burde neyi duzeltmey lazimdi melumaz ucun deyim xeberiniz olsun billingmaxneoskripti di belke kimse vaxinda istifade edib
<?php
if($_GET['type']=='statatistic'){
if($info['id']==0){
header("location: ".url."");
}
define('title','Hesab statistikas─▒');
@require_once("incfiles/header.php");
$myhosts=$db->query("select count(*) from `bought` where `uid`='".$info['id']."' and `type`='1'")->fetchColumn();
$myresel=$db->query("select count(*) from `bought` where `uid`='".$info['id']."' and `type`='2'")->fetchColumn();
$mydomains=$db->query("select count(*) from `bought` where `uid`='".$info['id']."' and `type`='3'")->fetchColumn();
$imsend=$db->query("select count(*) from `messages` where `send`='".$info['id']."'")->fetchColumn();
$mymail=$db->query("select count(*) from `messages` where `user`='".$info['id']."'")->fetchColumn();
$bloklist=$db->query("select count(*) from `blok` where `kim`='".$info['id']."'")->fetchColumn();
p4m3r4ik('<div class="title">'.title.'</div>
<div class="menu">
<li>Domainlerim: <b>'.$mydomains.'</b></li>
<li>Hostinglerim: <b>'.$myhosts.'</b></li>
<li>Resellerlerim: <b>'.$myresel.'</b></li>
</div>
<div class="title" style="padding:2px;"></div>
<div class="menu">
<li>Gelen mesaj: <b>'.$mymail.'</b></li>
<li>G├╢nderilen mesaj: <b>'.$imsend.'</b></li>
<li>Blok list: <b>'.$bloklist.'</b></li>
<li>Qeydiyyat tarxi: <b>'.data($info['regtime']).'</b></li>
</div>
<div class="menu2"><a href="'.url.'/user=cabinet">« Kabinet`e geri qayit</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if($_GET['type']=='transfer-money'){
define('title','Pul k├╢c├╝r');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">'.title.'</div>');
if(!empty($_POST['user']) and !empty($_POST['money'])){
$testlog=$db->query("select count(*) from `users` where `login`='".filter($_POST['user'])."'")->fetchColumn();
if($testlog==0){
$error.='* Istifade├зini bazada tap─▒lmad─▒!<br/>';
}
$money=filter($_POST['money']);
if($money<1){
$error.='* Minimum 1 azn k├╢c├╝re bilersiniz!<br/>';
}
if($money>$info['balans']){
$error.='* Balans─▒n─▒zda bu qeder pul yoxdur!<br/>';
}
if(empty($error)){
$minusbalans=$db->exec("update `users` set `balans`=`balans`-".$money." where `id`='".$info['id']."'");
$plusbalans=$db->exec("update `users` set `balans`=`balans`+".$money." where `login`='".$_POST['user']."'");
$infolog=$db->query("select `id` from `users` where `login`='".$_POST['user']."'")->fetch(PDO::FETCH_ASSOC);
$text='Balans─▒n─▒zdan '.$money.' azn ├з─▒x─▒ld─▒ ve '.$_POST['user'].' adl─▒ istifade├зinin hesab─▒na k├╢c├╝r├╝ld├╝!';
$text2='Balans─▒n─▒za '.$money.' azn elave olundu . Balans g├╢nderen: '.$info['login'].' adl─▒ istifade├зi';
$insertop=$db->exec("insert into `operations` set `uid`='".$info['id']."',`time`='".time()."',`text`='".$text."'");
$insertop2=$db->exec("insert into `operations` set `uid`='".$infolog['id']."',`time`='".time()."',`text`='".$text2."'");
p4m3r4ik('<div class="menu">» '.$text.'</div>');
}else{
p4m3r4ik('<div class="error">'.$error.'</div>');
}
}
p4m3r4ik('<div class="menu"><form method="POST">
Istifade├зi adi:<br/>
<input type="text" name="user" value="'.$_GET['login'].'"/><br/>
Megleb:<br/>
<input type="text" name="money" value="'.$info['balans'].'"/> Azn<br/>
<input type="submit" value="K├╢c├╝r"/></form></div>
');
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=cabinet">« Kabinet`e geri qayit</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if($_GET['type']=='balans'){
if(isset($_GET['portmanat_account'])){
define('title','Birbank ile balans art─▒r');
@require_once("incfiles/header.php");
echo '<div class="title">'.title.'</div>';
echo "<div class=\"menu\"><form action='
https://www.az-hosting.ru' method='text'>
<input type='hidden' name='s_id' value='11773'>
<input type='hidden' name='o_id' value='".$info['id']."'>
<input type='hidden' name='uid' value='".$info['id']."'>
<input type='hidden' name='method' value='account'>
<br>BirBank ile hezabinizi artirmaq ucun (birbank hesabiniza daxil olun)</br> - Kocurmeler - istenilen bank kartina -<br> <b>KART:4169-7385-4420-1548</b></br>
<text>kommentariya bolnune <b> '". $info['login']."' </b> yazmagi unutmayin</text></br>
<big><b><text>DIQQETLI OLUN !!!</text></b></big></br>
<text>Kommentaria yazmadiginiz teqdirde pul balansiniza yuklenmir ve geri qaytarilmir</text>
</form></div>";
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=balans">« Balans art─▒r</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if(isset($_GET['portmanat_code'])){
define('title','Portmanat kodla balans art─▒r');
@require_once("incfiles/header.php");
echo '<div class="title">'.title.'</div>';
p4m3r4ik('<div class="menu"><form action="
https://www.portmanat.az/checkout" method="post">
<input type="hidden" name="s_id" value="11773">
<input type="hidden" name="o_id" value="'.$info['id'].'">
<input type="hidden" name="uid" value="'.$info['id'].'">
<input type="hidden" name="method" value="code">
<input type="submit" value="Portmanat Kodla ├╢d╔Щ">
</form></div>');
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=balans">« Balans art─▒r</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if(isset($_GET['azercell'])){
$xidmetid=75; // Buraya wapmanatda yaratdiginiz xidmetin idini yazin. mes
27)
define('title','Azercell ile balans art─▒r');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">Azercell ile balans art─▒r</div>');
echo "<div class=\"menu\"><form action=\"
http://wapmanat.com/wap/index.php?step=kontur\" method=\"post\">
<input type=\"hidden\" name=\"info\" value=\"".$info['id']."\">
<input type=\"hidden\" name=\"xidmetid\" value=\"$xidmetid\">
<input type=\"submit\" value=\"Azercell konturla ├╢deni┼Я et\"/></div>";
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=balans">« Balans art─▒r</a></div>');
@require_once("incfiles/footer.php");
exit();
}
define('title','Balans art─▒r');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">'.title.'</div>');
# p4m3r4ik('<div class="menu"><a href="'.url.'/user=balans&add_funt=azercell">» Azercell balans art─▒r (Online)</a></div>');
# p4m3r4ik('<div class="menu"><a href="'.url.'/user=balans&add_funt=portmanat_code">» Portmanat kodla balans art─▒r (Online)</a></div>');
p4m3r4ik('<div class="menu"><a href="'.url.'/user=balans&add_funt=portmanat_account">» BirBank (Online)</a></div>');
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=cabinet">« Kabinet`e geri qayit</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if($_GET['type']=='operations'){
if($info['id']==0){
header("location: ".url."");
}
define('title','Balans emeliyyatlar─▒');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">'.title.'</div>');
$page=(int)$_GET['page'];
if(empty($page)) $page=1;
$limit=5;
$all=$db->query("select count(*) from `operations` where `uid`='".$info['id']."'")->fetchColumn();
$sehife_s=ceil($all/$limit);
if($page > $sehife_s) $page=1;
$goster=$page*$limit-$limit;
if($all!=0){
$view=$db->query("select * from `operations` where `uid`='".$info['id']."' order by `id` desc limit $goster,$limit")->fetchAll(PDO::FETCH_ASSOC);
foreach($view as $v){
$i++;
$pamertext=mysql_escape_string($v['text']);
$pamertext=str_replace('\r\n','<br/>',$pamertext);
p4m3r4ik('<div class="'.style($i).'">Emeliyyat: '.$pamertext.'<br/>Tarix: '.data($v['time']).'</div>');
}
nav($all,$limit,$page,''.url.'/user=operations&page=',$sehife_s);
}else{
p4m3r4ik('<div class="menu">He├з balans emeliyyat─▒ aparmam─▒s─▒n─▒z!</div>');
}
p4m3r4ik('<div class="menu2"><a href="'.url.'/user=cabinet">« Kabinet`e geri qayit</a></div>');
@require_once("incfiles/footer.php");
exit();
}
if($_GET['type']=='profile'){
if($info['id']==0){
header("location: ".url."");
}
if(empty($_GET['id'])){
$id=$info['id'];
}else{
$id=(int)$_GET['id'];
}
$test=$db->query("select count(*) from `users` where `id`='".filter($id)."'")->fetchColumn();
if($test==0){
define('title','Istifade├зi tap─▒lmad─▒');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">Sehv!</div>
<div class="error">* Istifade├зi tap─▒lmad─▒!</div>');
}else{
$infou=$db->query("select * from `users` where `id`='".filter($id)."'")->fetch(PDO::FETCH_ASSOC);
define('title','Anket: '.$infou['login'].'');
@require_once("incfiles/header.php");
p4m3r4ik('<div class="title">
'.($infou['id']==$info['id'] ? '<table width="100%">
<tr><td>Menim anketim</td>' : '
<table width="100%">
<tr><td>
Anket: '.$infou['login'].'').'
</td>
'.($info['id']==1 ? '
<td width="10%">[<a href="'.url.'/user=profile&id='.$id.'&del">×</a>]</td>
</tr></table>
' : '').'</table></div>');
if($info['id']==1){
if($_GET['del']=='ok'){
$sil[1]=$db->exec("delete from `users` where `id`='".$id."'");
$sil[2]=$db->exec("delete from `contact` where `mid`='".$id."'");
$sil[3]=$db->exec("delete from `contact` where `uid`='".$id."'");
$sil[4]=$db->exec("delete from `messages` where `user`='".$id."'");
$sil[5]=$db->exec("delete from `messages` where `send`='".$id."'");
$sil[6]=$db->exec("delete from `blok` where `kim`='".$id."'");
$sil[7]=$db->exec("delete from `blok` where `kimi`='".$id."'");
$sil[8]=$db->exec("delete from `bought` where `uid`='".$id."'");
header("location: ".url."/user=profile&id=$id");
}
if(isset($_GET['del'])){
p4m3r4ik('<div class="menu2">
Istifade├зini silmek istediyinize eminsiniz ?<br/>
<b>Diqqet:</b> <u>Hesabi sildikde ona aid olan butun her┼Яey bazadan silinir!</u><br/>
[<a href="'.url.'/user=profile&id='.$id.'&del=ok">Beli</a>] /
[<a href="'.url.'/user=profile&id='.$id.'">Xeyr</a>]
</div><div class="title" style="padding:2px;"></div>');
}
if(isset($_GET['enter'])){
setcookie('login',$infou['login'],time()+3600);
setcookie('password',$infou['password'],time()+3600);
header("location: ".url."");
}
}
p4m3r4ik('<div class="menu">
<li>ID: <b>'.$infou['id'].'</b>'.($info['id']==1 ? ' - <a href="'.url.'/user=profile&id='.$infou['id'].'&enter">Daxil ol</a>' : '').'</li>
<li>Istifade├зi ad─▒: <b>'.$infou['login'].'</b> <img src="'.url.'/cssfiles/icons/'.($infou['ontime']>time() ? 'on' : 'off').'.gif" alt="'.($v['ontime']>time() ? '' : 'off').'"/></li>
'.($info['id']==1 ? '<li>┼Юifre: <b>'.$infou['password'].'</b></li>' : '').'
'.($infou['name']!='' ? '<li>Ad / Soyad: <b>'.$infou['name'].'</b></li>' : '').'
<li>Cins: <b>'.($infou['sex']==1 ? 'Ki┼Яi' : 'Qad─▒n').'</b></li> </div>
<div class="title" style="padding:2px;"></div><div class="menu">
'.($infou['email']!='' ? '<li>Email: <a href="mailto:'.$infou['email'].'">'.$infou['email'].'</a></li>' : '').'
'.($infou['number']!='' ? '<li>Mobil n├╢mre: <b>'.$infou['number'].'</b></li>' : '').'
<li>'.($info['id']==1 ? '<a href="'.url.'/admin/user=upbalans&id='.$infou['id'].'">Balans</a>' : 'Balans').': <b>'.$infou['balans'].'</b> Manat</li>
'.($info['id']==1 ? '
<li>IP: <b>'.$infou['ip'].'</b></li>
<li>UA: <b>'.substr($infou['ua'],0,11).'</b></li>
' : '').'
<li>Son giri┼Я: <b>'.($infou['ontime']>time() ? 'Hal-hazirda saytdadir' : ''.data($infou['ontime']-300).'').'</b></li>
<li>Qeydiyyat tarixi: <b>'.data($infou['regtime']).'</li></b>
</div>
');