header('Cache-Control: no-store, no-cache, must-revalidate');
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
require("dmn.php");
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
$user=$row["user"];
$level=$row["level"];
$fsize1 = "";
$fsize2 = "";
echo $xml;
echo $dtd;
print " \n";
print $fsize1;
print "İstifadeçilerin şekilleri. \n";
print $fsize1;
print "Oğlanların şekilleri. \n";
print $fsize1;
print "Qızların şekilleri. \n";
echo $fsize1;
echo "Ses vere bilmek ucun sizin en azi 50 postunuz olmalidir.
";
print $divide;
$galery = mysql_query ("select count(id) as num from users where img!=''");
$foto = mysql_fetch_array($galery);
$kolfoto = $foto["num"];
print "Cemi şekil: ".$kolfoto."
";
print $divide;
$galerym = mysql_query ("select count(id) as num from users where img!='' and sex ='K'");
$fotom = mysql_fetch_array($galerym);
$fotom = $fotom["num"];
print "Oğlanlar: ".$fotom."
";
$galeryz = mysql_query ("select count(id) as num from users where img!='' and sex ='Q'");
$fotoz = mysql_fetch_array($galeryz);
$fotoz = $fotoz["num"];
print "Qızlar: ".$fotoz."
";
print $fsize2;
break;
case 'm':
print "
";
print $divide;
print $fsize2;
$galery = mysql_query ("select count(id) as num from users where img!='' and sex ='K';");
$foto = mysql_fetch_array($galery);
$num = $foto["num"];
if(!isset($s))$s=0;
$mx=round(($num/10)+0.45);
if($s>$mx)$s=$mx;
if($s==0)$s=1;
$ot=(($s-1)*10)+1;
$do=$s*10;
if($do>$num)$do=$num;
$o=$ot-1;
$n=$ot;
if($do==0)$n=$o;
echo $fsize1;
echo "Gösterir: $n-$do / Cemi: $num
\n";
echo $divide;
echo $fsize2;
$r = mysql_query ("select id,user,img,votefoto from `users` where img!='' and sex ='K' order by votefoto desc limit $o,$do");
for ($i=$ot;$i<=$do;$i++){
$arr = mysql_fetch_array($r);
echo $fsize1;
$login=$arr['user'];
$usid=$arr['id'];
$img=$arr['img'];
if ($id==$usid){
print ($i).") ".$login."| Sesleri: ".$arr['votefoto']."
";
}else{
print ($i).") ".$login."| Sesleri: ".$arr['votefoto']."
";
}
echo $fsize2;
if ($id!=$usid){
print $fsize1;
print "
";
if($level>7){
print $fsize1;
print "
";
}
}else{
print $fsize1;
print "Kim mene ses verib?
";
print $fsize2;
}
print $fsize1;
print $divide;
print $fsize2;
}
mysql_close($link);
$next=$s+1;
$prev=$s-1;
if ($num>$do) {
$ot=(($next-1)*10)+1;
$do=$next*10;
if($do>$num)$do=$num;
echo $fsize1;
echo ">>$ot-$do>>
\n";
echo $fsize2;
}
if($s>1) {
$ot=(($prev-1)*10)+1;
$do=$prev*10;
echo $fsize1;
echo "<<$ot-$do<<
\n";
echo $fsize2;
}
break;
case 'zh':
print "
";
print $divide;
print $fsize2;
$galery = mysql_query ("select count(id) as num from users where img!='' and sex ='Q';");
$foto = mysql_fetch_array($galery);
$num = $foto["num"];
if(!isset($s))$s=0;
$mx=round(($num/10)+0.45);
if($s>$mx)$s=$mx;
if($s==0)$s=1;
$ot=(($s-1)*10)+1;
$do=$s*10;
if($do>$num)$do=$num;
$o=$ot-1;
$n=$ot;
if($do==0)$n=$o;
echo $fsize1;
echo "Gösterir: $n-$do / Cemi: $num
\n";
echo $divide;
echo $fsize2;
$r = mysql_query ("select id,user,img,votefoto from `users` where img!='' and sex ='Q' order by votefoto desc limit $o,$do");
for ($i=$ot;$i<=$do;$i++){
$arr = mysql_fetch_array($r);
echo $fsize1;
$login=$arr['user'];
$usid=$arr['id'];
$img=$arr['img'];
if ($id==$usid){
print ($i).") ".$login."| Голосов: ".$arr['votefoto']."
";
}else{
print ($i).") ".$login."| Sesleri: ".$arr['votefoto']."
";
}
print $fsize2;
if ($id!=$usid){
print $fsize1;
print "
";
if($level>7){
print $fsize1;
print "
";
}
}else{
print $fsize1;
print "Kim mene ses verib?
";
print $fsize2;
}
print $fsize1;
print $divide;
print $fsize2;
}
mysql_close($link);
$next=$s+1;
$prev=$s-1;
if ($num>$do) {
$ot=(($next-1)*10)+1;
$do=$next*10;
if($do>$num)$do=$num;
echo $fsize1;
echo ">>$ot-$do>>
\n";
echo $fsize2;
}
if($s>1) {
$ot=(($prev-1)*10)+1;
$do=$prev*10;
echo $fsize1;
echo "<<$ot-$do<<
\n";
echo $fsize2;
}
break;
case 'votes':
if($row["posts"] < 50)
{
echo "
Ses vermek ise 30 post deyerindedir. Hec bir bal cixilmir!
\n";
echo "---
";
echo "Fotoqalereya
\n";
echo "Dehliz
\n";
echo $fsize2;
echo "
";
echo $fsize1;
echo "Siz öz-özünüze ses vere bilmezsiniz!
";
print $fsize2;
}else{
mysql_query ("Select * from golos where user='".$usid."' and who='".$id."'");
if (mysql_affected_rows()!=0){
echo "
";
echo $fsize1;
echo "Siz bu şekile ses vermisiniz.
";
echo $fsize2;
} else {
$q = mysql_query("select user,votefoto from users where id='".$usid."';");
$data = mysql_fetch_array($q);
$counter = $data['votefoto'];
$login = $data['user'];
$counter2 = $counter+1;
mysql_query ("update users set votefoto='".$counter2."' where id='".$usid."';");
mysql_query ("INSERT INTO golos SET user = '".$usid."', who = '".$id."'");
mysql_query ("Update users set posts=posts-'30' where id ='".$id."'");
echo "
";
echo $fsize1;
echo "Siz bu sekile ses verdiniz. Hesabınızdan 30 post cixildi.
";
echo $fsize2;
mysql_close ($link);
}
}
}
break;
case 'delfoto':
print "
\n";
if($level>7){
print $fsize1;
if(@mysql_query ("Update users set img ='' where id ='".$usid."';")){
print "Şekil silindi.
";
} else {
print "Sehv.
";
}
print $fsize2;
}else{
print $fsize1;
print "Sizin icazeniz yoxdur!
";
print $fsize2;
}
mysql_close ($link);
break;
}
print $fsize1;
print $divide;
if($mod) print "Qalereya
\n";
if (isset ($rm))echo "Çata qayıt
\n";
print "Dehliz
\n";
print $fsize2;
print "