Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Cache-Control: no-cache");
- 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);
- $s=$fnc->int(intval($_GET["s"]));
- $img=$fnc->int(intval($_GET["img"]));
- $fusid=$fnc->int(intval($_GET["fusid"]));
- $ro=$fnc->int(intval($_GET["ro"]));
- echo"<?xml version="1.0\" encoding="UTF-8"?>
- ";
- echo"<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN" \"http://www.wapforum.org/DTD/wml12.dtd\">
- ";
- echo"<wml>
- ";
- if($rm!="")
- {
- $takep="&
- rm=
- {
- $rm
- }
- &
- ref=
- {
- $ref
- }
- ";
- }
- else if($x!="")
- {
- $takep="&
- x=
- {
- $x
- }
- &
- ref=
- {
- $ref
- }
- ";
- }
- else
- {
- $takep="&
- ref=
- {
- $ref
- }
- ";
- }
- if($ro!="")
- {
- $rota="&ro=".$ro."";
- }
- switch($bol)
- {
- default:if($mov<=0)
- {
- $mov=1;
- }
- $qus=mysql_query("Select user from users where id = '".$img."';");
- if(mysql_affected_rows()!=0)
- {
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- }
- echo"<card title="Foto-Albom /
- {
- $u_user
- }
- ">
- ";
- echo"<p align=\"left"> ";
- echo$fsize1;
- $query=mysql_query("select COUNT(id) from albom where idfoto = '".$img."';
- ");
- $all=@mysql_result(@$query,0);
- if($mov=="")
- {
- $mov=1;
- }
- $mos=$mov-1;
- $q=mysql_query("select * from albom where idfoto = '".$img."' order by id desc limit
- {
- $mos
- }
- ,
- {
- $mov
- }
- ;
- ");if(mysql_affected_rows()==0){echo"<i>Bu İ
- stifadeç
- inin Foto-Albomunda Ş
- ekili yoxdur</i><br/>";
- echo$divide;
- }
- else
- {
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $photo=$arr["photo"];
- $info=$arr["info"];
- $fid=$arr["id"];
- $idfoto=$arr["idfoto"];
- $vote=$arr["vote"];
- if($mov!="")
- {
- $savik="mov=$mov";
- }
- else
- {
- $savik="";
- }
- echo"\"<b>
- {
- $u_user
- }
- </b>" / <u>Ş
- ekiller</u> - (<b>
- {
- $all
- }
- </b>)";
- if($all>="2"){echo"<a href="img_a.php?bol=8&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- fusid=
- {
- $idfoto
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- ">>
- >
- >
- </a> ";}echo"<br/> ";
- echo$divide;
- if(file_exists("photos/".$img."/".$photo.""))
- {
- $olcu=GetImageSize("photos/
- {
- $img
- }
- /
- {
- $photo
- }
- ");
- if(100<$olcu[0]||100<$olcu[1])
- {
- echo"<img style="border: 1px solid #424503;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- \" src="show_photo.php?id=$fid&
- w=100&
- h=120".$rota."" alt="
- {
- $u_user
- }
- \"/>";
- if($ro=="1"){echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $mov
- }
- {
- $takep
- }
- &
- ro=2\"><img src="img/rotate.png\" alt=".\"/></a><br/>
- ";
- }
- elseif($ro=="2")
- {
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $mov
- }
- {
- $takep
- }
- &
- ro=3\"><img src=\"img/rotate.png\" alt=\".\"/></a><br/>
- ";
- }
- elseif($ro=="3")
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $mov
- }
- {
- $takep
- }
- "><img src=\"img/rotate.png" alt="."/></a><br/> ";}else{echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $mov
- }
- {
- $takep
- }
- &
- ro=1\"><img src=\"img/rotate.png" alt="."/></a><br/> ";}}else{echo"<img style=\"border: 1px solid #424503; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;" src="photos/
- {
- $img
- }
- /
- {
- $photo
- }
- " alt="Şekil\"/><br/>
- ";
- }
- }
- else
- {
- echo"<i>Ş
- ekil yü
- klenmir (<b>Ftp</b>-den silinib)...</i>";mysql_query("DELETE from albom where id = '".$fid."'");mysql_query("update users set img = img-1 where id = '".$idfoto."';
- ");
- }
- $next=$mov+1;
- $prev=$mov-1;
- if(1<$mov)
- {
- $ot=($prev-1)*1+1;
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $prev
- }
- {
- $takep
- }
- \"><
- <
- <
- {
- $ot
- }
- </a>";
- }
- if($mov<$all)
- {
- $do=$next;
- if($all<$do)
- {
- $do=$all;
- }
- if($mov>1)echo"-<b>".$mov."</b>-
- ";
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- &
- mov=
- {
- $next
- }
- {
- $takep
- }
- ">
- {
- $do
- }
- >
- >
- >
- </a> ";
- }
- if($do!=""){echo"<br/> ";
- }
- else
- {
- if($all>1)echo"<br/> ";
- }
- echo$divide;
- if(file_exists("photos/".$idfoto."/".$photo.""))
- {
- $size=GetImageSize("photos/$idfoto/$photo");
- if($ro=="1")
- {
- echo"Ekran ölçüsü: <b>".$size[1]."x".$size[0]."</b><br/>
- ";
- }
- elseif($ro=="2")
- {
- echo"Ekran ölçüsü: <b>".$size[0]."x".$size[1]."</b><br/>
- ";
- }
- elseif($ro=="3")
- {
- echo"Ekran ölçüsü: <b>".$size[1]."x".$size[0]."</b><br/>
- ";
- }
- else
- {
- echo"Ekran ölçüsü: <b>".$size[0]."x".$size[1]."</b><br/>
- ";
- }
- $olchu=@filesize("photos/$idfoto/$photo");
- $olchu_ed="b";
- if($olchu>=1024)
- {
- $olchu=round($olchu/1024,1);
- $olchu_ed="Kb";
- }
- if($olchu>=1024)
- {
- $olchu=round($olchu/1024,1);
- $olchu_ed="Mb";
- }
- echo"Hecmi: <b>".$olchu." $olchu_ed</b><br/>";
- if($info)
- {
- echo"Haqqı
- nda: <u>
- {
- $info
- }
- </u><br/>";
- }
- echo$divide;
- echo"<a href="images.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- fid=$fid".$rota."">Yükle</a>
- ";
- }
- else
- {
- echo"<i>Ş
- ekil yü
- klenmir (<b>Ftp</b>-den silinib)...</i>";
- }
- if(8<$row["level"]||$id==$idfoto)
- {
- echo"/ <a href="img_a.php?bol=3&
- del=
- {
- $fid
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Sil</a> ";}echo"<br/> ";
- echo$divide;
- echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=\xxxxxxxxx31&
- {
- $savik
- }
- $takep\"><img src="img/1.png" alt="1\"/></a>
- ";
- echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=2&
- {
- $savik
- }
- $takep"><img src=\"img/2.png\" alt=\"2"/></a> ";echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=3&
- {
- $savik
- }
- $takep"><img src=\"img/3.png\" alt=\"3"/></a> ";echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=4&
- {
- $savik
- }
- $takep\"><img src=\"img/4.png\" alt="4\"/></a>
- ";
- echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=5&
- {
- $savik
- }
- $takep"><img src="img/5.png\" alt="5\"/></a>
- ";
- echo"<a href=\"img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$fid&
- vote=6&
- {
- $savik
- }
- $takep"><img src="img/6.png\" alt="5+"/></a><br/>
- ";
- $ses=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM albom_ses where fotoid='".$fid."'"));
- $sesim=trim($ses[0]);
- echo"<a href=\"img_a.php?bol=10&
- id=$id&
- ps=$ps&
- key=$fid&
- {
- $savik
- }
- $takep">Ş
- ekile Ses verenler</a> -(".$sesim.")<br/>";
- $userm=mysql_query("select count(id) as num from albom_fikir where `key`='".$fid."';
- ");
- $usm=mysql_fetch_array($userm);
- mysql_free_result($userm);
- $num=$usm["num"];
- echo"<a href="img_a.php?bol=4&
- id=$id&
- ps=$ps&
- key=$fid&
- {
- $savik
- }
- $takep\">Ş
- ekil haqqı
- nda fikirler</a> -($num)<br/>";
- $downm=mysql_query("select count(id) as num from albom_down where `myid`='".$fid."';");
- $do=mysql_fetch_array($downm);
- mysql_free_result($downm);
- $down=$do["num"];
- echo"<a href="img_a.php?bol=6&
- id=$id&
- ps=$ps&
- key=$fid&
- {
- $savik
- }
- $takep\">Ş
- ekli yü
- kleyenler</a> -($down)<br/>";
- if($id==$idfoto)
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- bol=5&
- img_fon=
- {
- $fid
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- ">Bu ş
- ekli Ankete qoy</a><br/>";
- }
- $by=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM albom_beyen where fotoid='".$fid."'"));
- $like=trim($by[0]);
- echo"<a href=\"img_a.php?bol=7&
- id=$id&
- ps=$ps&
- key=$fid&
- {
- $savik
- }
- $takep\">Ş
- ekli beyenenler</a> -(".$like.")<br/>";echo"<img src="img/like.png" alt=\"x\"/><a href=\"img_a.php?bol=2&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- &
- uid=
- {
- $fid
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- ">Beyen</a> -(1 Bal)<br/> ";
- echo$divide;
- }
- break;
- case"1":$q=mysql_query("SELECT * FROM `albom` WHERE `id` = '".$fid."';
- ");if(mysql_affected_rows()==0){echo"<card title=\"Xeta"> ";echo"<p align=\"left\">
- ";
- echo$fsize1;
- echo"<i>Şekil Tapılmadı</i><br/>
- ";
- echo$divide;
- break;
- }
- echo"<card title=\"*FOTO*\">
- ";
- echo"<p align=\"left\">
- ";
- echo$fsize1;
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $vote=$arr["vote"];
- $photo=$arr["photo"];
- $info=$arr["info"];
- $idfoto=$arr["idfoto"];
- $del=$arr["id"];
- $qus=mysql_query("Select user from users where id = '".$idfoto."';");
- if(mysql_affected_rows()!=0)
- {
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- }
- else
- {
- mysql_query("DELETE from albom where id = '".$del."';");
- }
- if($mov!="")
- {
- $savik="mov=$mov";
- }
- else
- {
- $savik="";
- }
- $query=mysql_query("select COUNT(id) from albom where idfoto = '".$idfoto."';");
- $all=@mysql_result(@$query,0);
- echo""<b>
- {
- $u_user
- }
- </b>"/ <u>Ş
- ekiller</u> - (<b>
- {
- $all
- }
- </b>)";
- if($all>="2")
- {
- echo"<a href=\"img_a.php?bol=8&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- fusid=
- {
- $idfoto
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- ">>
- >
- >
- </a> ";}echo"<br/> ";
- echo$divide;
- if(file_exists("photos/".$idfoto."/".$photo.""))
- {
- $olcu=GetImageSize("photos/
- {
- $idfoto
- }
- /
- {
- $photo
- }
- ");
- $deyishensize=strlen($olcu[0])+strlen($olcu[1]);
- if(300<$deyishensize)
- {
- echo"<img style=\"border: 1px solid #424503; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;" src=\"show_photo.php?id=$del&
- w=100&
- h=120".$rota."" alt="
- {
- $u_user
- }
- "/> ";
- if($ro=="1"){echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=2\"><img src=\"img/rotate.png" alt=".\"/></a><br/>
- ";
- }
- elseif($ro=="2")
- {
- echo"<a href=\"img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=3"><img src="img/rotate.png\" alt=".\"/></a><br/>
- ";
- }
- elseif($ro=="3")
- {
- echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \"><img src=\"img/rotate.png\" alt=\"."/></a><br/> ";}else{echo"<a href=\"img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=1\"><img src=\"img/rotate.png" alt=\".\"/></a><br/>
- ";
- }
- }
- else
- {
- echo"<img style=\"border: 1px solid #424503; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;\" src="show_photo.php?id=$del&
- w=100&
- h=120".$rota."\" alt=\"Şekil\"/>
- ";
- if($ro=="1")
- {
- echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=2\"><img src="img/rotate.png" alt=\"."/></a><br/> ";
- }
- elseif($ro=="2"){echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=3\"><img src="img/rotate.png" alt=\"."/></a><br/> ";
- }
- elseif($ro=="3"){echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \"><img src=\"img/rotate.png\" alt="."/></a><br/>
- ";
- }
- else
- {
- echo"<a href="img_a.php?bol=1&
- fid=
- {
- $fid
- }
- &
- img=
- {
- $img
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- &
- ro=1\"><img src="img/rotate.png" alt="."/></a><br/>
- ";
- }
- }
- echo$divide;
- $size=GetImageSize("photos/$idfoto/$photo");
- if($ro=="1")
- {
- echo"Ekran ölçüsü: <b>".$size[1]."x".$size[0]."</b><br/>
- ";
- }
- elseif($ro=="2")
- {
- echo"Ekran ölçüsü: <b>".$size[0]."x".$size[1]."</b><br/>
- ";
- }
- elseif($ro=="3")
- {
- echo"Ekran ölçüsü: <b>".$size[1]."x".$size[0]."</b><br/>
- ";
- }
- else
- {
- echo"Ekran ölçüsü: <b>".$size[0]."x".$size[1]."</b><br/>
- ";
- }
- $olchu=@filesize("photos/$idfoto/$photo");
- $olchu_ed="b";
- if($olchu>=1024)
- {
- $olchu=round($olchu/1024,1);
- $olchu_ed="Kb";
- }
- if($olchu>=1024)
- {
- $olchu=round($olchu/1024,1);
- $olchu_ed="Mb";
- }
- echo"Hecmi: <b>".$olchu." $olchu_ed</b><br/>";
- if($info)
- {
- echo"Haqqı
- nda: <u>
- {
- $info
- }
- </u><br/>";
- }
- echo$divide;
- echo"<a href=\"images.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- fid=$del".$rota."">Yü
- kle</a>";}else{echo"<i>Ş
- ekil yü
- klenmir (<b>Ftp</b>-den silinib)...</i>";
- }
- if(8<$row["level"]||$id==$idfoto)
- {
- echo"/ <a href=\"img_a.php?bol=3&
- del=
- {
- $del
- }
- &
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Sil</a> ";}echo"<br/> ";
- echo$divide;
- echo"<a href=\"img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=1&
- {
- $savik
- }
- $takep\"><img src="img/1.png\" alt="1\"/></a>
- ";
- echo"<a href=\"img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=2&
- {
- $savik
- }
- $takep"><img src=\"img/2.png\" alt=\"2\"/></a>
- ";
- echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=3&
- {
- $savik
- }
- $takep"><img src=\"img/3.png" alt=\"3\"/></a>
- ";
- echo"<a href=\"img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=4&
- {
- $savik
- }
- $takep"><img src=\"img/4.png\" alt="4\"/></a>
- ";
- echo"<a href="img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=5&
- {
- $savik
- }
- $takep\"><img src="img/5.png" alt="5\"/></a>
- ";
- echo"<a href=\"img_a.php?bol=9&
- id=$id&
- ps=$ps&
- fid=$del&
- vote=6&
- {
- $savik
- }
- $takep"><img src="img/6.png\" alt="5+\"/></a><br/>
- ";
- $ses=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM albom_ses where fotoid='".$del."'"));
- $sesim=trim($ses[0]);
- echo"<a href="img_a.php?bol=10&
- id=$id&
- ps=$ps&
- key=$del&
- {
- $savik
- }
- $takep\">Şekile Ses verenler</a> -(".$sesim.")<br/>
- ";
- $userm=mysql_query("select count(id) as num from albom_fikir where `key`='".$del."';");
- $usm=mysql_fetch_array($userm);
- mysql_free_result($userm);
- $num=$usm["num"];
- echo"<a href=\"img_a.php?bol=4&
- id=$id&
- ps=$ps&
- key=$del&
- {
- $savik
- }
- $takep\">Ş
- ekil haqqı
- nda fikirler</a> -($num)<br/>";
- $downm=mysql_query("select count(id) as num from albom_down where `myid`='".$del."';");
- $do=mysql_fetch_array($downm);
- mysql_free_result($downm);
- $down=$do["num"];
- echo"<a href="img_a.php?bol=6&
- id=$id&
- ps=$ps&
- key=$fid&
- {
- $savik
- }
- $takep">Ş
- ekli yü
- kleyenler</a> -($down)<br/>";
- if($id==$idfoto)
- {
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- bol=5&
- img_fon=
- {
- $del
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- \">Bu şekli Ankete qoy</a><br/>";
- }
- $bey=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM albom_beyen where fotoid='".$del."'"));
- $beyen=trim($bey[0]);
- echo"<a href=\"img_a.php?bol=7&
- id=$id&
- ps=$ps&
- key=$del&
- {
- $savik
- }
- $takep\">Ş
- ekli beyenenler</a> -(".$beyen.")<br/>
- ";
- echo"<img src=\"img/like.png" alt="x\"/><a href="img_a.php?bol=2&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- &
- uid=
- {
- $del
- }
- &
- {
- $savik
- }
- {
- $takep
- }
- \">Beyen</a> -(1 Bal)<br/>
- ";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Diger Şekilleri</a><br/>
- ";
- break;
- case"4":$key=$_GET["key"];
- $q=mysql_query("SELECT * FROM `albom` WHERE `id` = '".$key."';");
- if(mysql_affected_rows()==0)
- {
- echo"<card title=\"Xeta"> ";echo"<p align=\"center"> ";
- echo$fsize1;
- echo"<i>Ş
- ekil Tapı
- lmadı
- </i><br/>";
- echo$divide;
- }
- else
- {
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $vote=$arr["vote"];
- $photo=$arr["photo"];
- $info=$arr["info"];
- $idfoto=$arr["idfoto"];
- $key=$arr["id"];
- $qus=mysql_query("Select user from users where id = '".$idfoto."';");
- if(mysql_affected_rows()!=0)
- {
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- }
- echo"<card title="Ş
- ekil haqqı
- nda fikirler\">";echo"<p> ";
- echo$fsize1;
- echo"<img style=\"border: 1px solid #424503;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- \" src=\"show_photo.php?id=$key&
- w=100&
- h=120" alt=\"
- {
- $u_user
- }
- "/><br/> ";
- if($del!=""&&($idfoto==$id||$row["level"]==9))
- {
- @mysql_query(@"delete from `albom_fikir` WHERE `id` = '".@$del."';
- ");
- }
- if(5<=strlen($info))
- {
- echo"<b>Haqqı
- nda</b>:
- {
- $info
- }
- <br/>";
- }
- echo$divide;
- $fikir=$_POST["fikir"];
- if(5<=strlen($fikir))
- {
- $fikir=$fnc->smile($fnc->narmobil($fnc->chkdsk($fikir,basename(__FILE__))),"Foto Albomda Fikir");
- $pos=mysql_query("SELECT * FROM `albom_fikir` WHERE `key` = '".$key."' order by `id` desc limit 1;");
- $son=mysql_fetch_array($pos);
- mysql_free_result($pos);
- $sonusid=$son["usid"];
- if($sonusid!=$id)
- {
- mysql_query("Insert into `albom_fikir` set `usid` ='".$id."', `user` ='".$row["user"]."', `message` ='".$fikir."', `time` ='".time()."', `key` ='".$key."';");
- }
- else
- {
- $error="<u>Siz bu şekile fikir bildirmisiniz.</u><br/>
- ";
- }
- }
- $q=mysql_query("SELECT * FROM `albom_fikir` WHERE `key` = '".$key."';
- ");
- $all=mysql_num_rows($q);
- if(!isset($s))
- {
- $s=1;
- }
- $mx=round($all/15+0.45);
- if($mx<$s)
- {
- $s=$mx;
- }
- if($s==0)
- {
- $s=1;
- }
- $ot=($s-1)*15+1;
- $do=$s*15;
- if($ot<$do)
- {
- $do=$all;
- }
- $o=$ot-1;
- $n=$ot;
- if($do==0)
- {
- $n=$o;
- }
- $q=mysql_query("SELECT * FROM `albom_fikir` WHERE `key` = '".$key."' ORDER BY `id` DESC LIMIT
- {
- $o
- }
- ,
- {
- $do
- }
- ;
- ");
- if($all==0)
- {
- echo"<i>Bu Ş
- ekile fikir bildiren olmayı
- b</i>.<br/>";
- }
- else
- {
- echo"<b>İ
- stifadeç
- i Fikirleri...</b><br/>";
- $
- {
- "GLOBALS"
- }
- ["cjdctfqat"]="divide";
- echo$
- {
- $
- {
- "GLOBALS"
- }
- ["cjdctfqmysqlxxcdxampxxxat"]
- }
- ;
- if($error!="")
- {
- echo$error;
- echo$divide;
- }
- while($inf=mysql_fetch_array($q))
- {
- $eid=$inf["id"];
- $usid=$inf["usid"];
- $u_user=$inf["user"];
- $message=$inf["message"];
- echo"<a href=\"inside.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- nk=
- {
- $usid
- }
- {
- $takep
- }
- \">
- {
- $u_user
- }
- </a>»
- {
- $message
- }
- ";
- if($idfoto==$id)
- {
- echo"[<a href=\"img_a.php?bol=4&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- \">x</a>]";
- }
- else if($row["level"]==9)
- {
- echo"[<a href="img_a.php?bol=4&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- ">x</a>]
- ";
- }
- echo"<br/>
- ";
- }
- $next=$s+1;
- $prev=$s-1;
- if($do<$all||1<$s)
- {
- echo$divide;
- }
- if($do<$all)
- {
- $ot=($next-1)*15+1;
- $do=$next*15;
- if($all<$do)
- {
- $do=$all;
- }
- echo"<a href=\"img_a.php?bol=4&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- key=
- {
- $key
- }
- &
- mov=
- {
- $mov
- }
- &
- s=
- {
- $next
- }
- {
- $takep
- }
- \">
- {
- $ot
- }
- -
- {
- $do
- }
- >
- >
- </a><br/>";
- }
- if(1<$s)
- {
- $ot=($prev-1)*15+1;
- $do=$prev*15;
- echo"<a href=\"img_a.php?bol=4&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- key=
- {
- $key
- }
- &
- mov=
- {
- $mov
- }
- &
- s=
- {
- $prev
- }
- {
- $takep
- }
- "><
- <
- {
- $ot
- }
- -
- {
- $do
- }
- </a><br/> ";
- }
- }
- echo$divide;
- echo"<input name="fikir
- {
- $ref
- }
- " maxlength=\"600\" title=\"fikir\"/><br/>
- ";
- echo"<anchor>Fikir bildir<go href="img_a.php?bol=4&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- {
- $takep
- }
- \" method="post">
- ";
- echo"<postfield name="fikir\"value=\"\$(fikir
- {
- $ref
- }
- )\"/>";
- echo"</go></anchor><br/>
- ";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!="")
- {
- echo"<a href=\"img_a.php?bol=1&
- fid=$key&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- else
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- {
- $savik
- }
- {
- $takep
- }
- ">Geri Qayı
- t</a><br/>";}}break;case"2":if($row["bal"]<=0)
- {
- echo"<card title="Bal azdır"> ";echo"<p align="left\">
- ";
- echo$fsize1;
- echo"<i>Beyenmek <b>1 bal</b> deyerindedir sizin hesabınızda bal yoxdur...</i><br/>
- ";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $id
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayıt</a><br/>
- ";
- break;
- }
- echo"<card title="Ş
- ekili beyendiniz!\">";echo"<p align=\"left\">
- ";
- echo$fsize1;
- $qus=mysql_query("Select user from users where id = '".$img."';");
- if(mysql_affected_rows()!=0)
- {
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- }
- else
- {
- mysql_query("DELETE from albom where id = '".$uid."';");
- }
- echo"<u>Tebrikler</u><br/>
- ";
- echo$divide;
- echo"\"<b>
- {
- $u_user
- }
- </b>\" nikinin Ş
- ekili beyendiniz.";
- mysql_query("Select * from `albom_beyen` where `usid`='".$id."' and `fotoid`='".$uid."';");
- if(mysql_affected_rows()==0)
- {
- mysql_query("INSERT INTO albom_beyen SET usid = '".$id."', tarix = '".$SERVER_TIME."', klik = `klik`+'1', fotoid = '".$uid."';");
- }
- else
- {
- @mysql_query("UPDATE `albom_beyen` SET `tarix`='".$SERVER_TIME."',`klik`=`klik`+'1' WHERE usid='".$id."'");
- }
- mysql_query("update users set `bal`=`bal`-'1' where id = '".$id."';");
- echo"<br/>
- ";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!="")
- {
- echo"<a href="img_a.php?bol=1&
- fid=$uid&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Geri Qayıt</a><br/>
- ";
- }
- else
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $img
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- break;
- case"5":echo"<card title="Esas ş
- ekil">";
- echo"<p align=\"left">";
- echo$fsize1;
- if($row["posts"]<1000)
- {
- echo"Balansı
- nı
- zdakı
- postları
- n sayı
- 1000-i keç
- dikden esas ş
- ekil seç
- e bilersiz.<br/>";
- }
- else
- {
- $img_fon=$_GET["img_fon"];
- $qq=mysql_query("SELECT * FROM `albom` WHERE `id`='".$img_fon."' and `idfoto`='".$id."';");
- if(mysql_num_rows($qq)==0)
- {
- echo"Bu şekil size aid deyil.<br/>
- ";
- }
- else
- {
- mysql_query("update `users` set `image_fon` = '".$img_fon."' where `id` = '".$id."'");
- echo"Seçdiyiniz şekil ankete elave olundu.<br/>
- ";
- }
- }
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $id
- }
- {
- $savik
- }
- {
- $takep
- }
- ">Geri Qayı
- t</a><br/>";break;case"3":$q=mysql_query("SELECT * FROM `albom` WHERE `id` = '".$del."';
- ");if(mysql_affected_rows()==0){echo"<card title="Xeta"> ";echo"<p align="left"> ";
- echo$fsize1;
- echo"<i>Ş
- ekil Tapı
- lmadı
- </i><br/>";
- echo$divide;
- break;
- }
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $photo=$arr["photo"];
- $info=$arr["info"];
- $u_id=$arr["idfoto"];
- $del=$arr["id"];
- echo"<card title=\"Silindi"> ";echo"<p align="left"> ";
- echo$fsize1;
- if(7<$row["level"]||$id==$u_id)
- {
- mysql_query("DELETE from albom where id = '".$del."';
- ");
- $c=@mysql_query("select count(id) from albom where idfoto='".$u_id."'");
- $img_del=@mysql_result($c_img,0);
- if($img_del=="0"){mysql_query("update users set img = '0' where id = '".$u_id."';
- ");}mysql_query("update `users` set `image_fon` = '' where `image_fon` = '".$del."'");@mysql_query(@"delete from `albom_fikir` WHERE `key` = '".@$del."';
- ");@mysql_query(@"delete from `albom_down` WHERE `myid` = '".@$del."';
- ");@mysql_query(@"delete from `albom_beyen` WHERE `fotoid` = '".@$del."';
- ");@mysql_query(@"delete from `albom_ses` WHERE `fotoid` = '".@$del."';
- ");if(file_exists("photos/".$u_id."/".$photo."")){unlink("photos/".$u_id."/".$photo."");}echo"<u>Ş
- ekil Silindi...</u><br/>";
- echo$divide;
- }
- else
- {
- echo"Sizin Bu Ş
- ekili Silmeye İ
- xtiyarı
- nı
- z yoxdur...<br/>";
- echo$divide;
- }
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $u_id
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- break;
- case"6":$q=mysql_query("select * from albom where id = '".$key."';");
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $photo=$arr["photo"];
- $info=$arr["info"];
- $fid=$arr["id"];
- $idfoto=$arr["idfoto"];
- if($del!=""&&($idfoto==$id||$row["level"]==9))
- {
- @mysql_query(@"delete from `albom_down` WHERE `id` = '".@$del."';");
- }
- $qus=mysql_query("Select user from users where id = '".$idfoto."';");
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- echo"<card title=\"Foto Albom /$u_user\">";
- echo"<p align=\"left\">
- ";
- echo$fsize1;
- echo"İstifadeçi: <a href="info.php?id=$id&
- ps=$ps&
- nk=$idfoto&
- ref=$ref\">".$u_user."</a><br/>";
- echo$divide;
- echo"<img style="border: 1px solid #424503;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- " src=\"show_photo.php?id=$key&
- w=100&
- h=120" alt="
- {
- $u_user
- }
- "/><br/>";
- $userm=mysql_query("select count(id) as num from albom_down where `myid`='".$key."';
- ");
- $usm=mysql_fetch_array($userm);
- mysql_free_result($userm);
- $num=$usm["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;
- if($num=="0")echo"Ş
- ekli yü
- kleyen olmayı
- b.<br/>";
- if($num=="1")echo"Ş
- ekli yü
- kleyen cemi <b>$num</b> nefer.<br/>";
- if($num>1)echo"Ş
- ekli yü
- kleyenler cemi <b>$num</b> nefer.<br/>";
- echo$divide;
- $r=@mysql_query("Select * from albom_down where myid = '".$key."' order by tarix desc limit $o,$do");
- for($i=$ot;$i<=$do;$i++)
- {
- $arr=mysql_fetch_array($r);
- $eid=$arr["id"];
- $login=$arr["user"];
- $usid=$arr["usid"];
- $klik=$arr["klik"];
- echo($i).") <a href="info.php?id=$id&
- ps=$ps&
- nk=$usid&
- ref=$ref">".$login."</a>(".$fnc->time_date($arr["tarix"])."-$klikdefe)";
- if($idfoto==$id)
- {
- echo"[<a href=\"img_a.php?bol=6&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- \">x</a>]";
- }
- else if($row["level"]==9)
- {
- echo"[<a href="img_a.php?bol=6&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- \">x</a>]
- ";
- }
- echo"<br/>
- ";
- }
- $next=$s+1;
- $prev=$s-1;
- if($s>1)
- {
- $ot=(($prev-1)*10)+1;
- $do=$prev*10;
- echo"<a href="img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=6&
- s=$prev&
- ref=$ref\"><
- <
- $ot</a>.";
- }
- $tes=$num/10;
- $test=round($tes);
- if(($num>$do)&&($test>=$s))
- {
- $ot=(($next-1)*10)+1;
- $do=$next*10;
- if($do>$num)$do=$num;
- echo" | <a href="img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=6&
- s=$next&
- ref=$ref">$do>
- >
- </a>";
- echo"<br/>";
- }
- if($s>1)echo"<br/>";
- if($num>0)echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!=""){echo"<a href="img_a.php?bol=1&
- fid=$key&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- else
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- {
- $savik
- }
- {
- $takep
- }
- ">Geri Qayı
- t</a><br/>";}break;case"7":$q=mysql_query("select * from albom where id = '".$key."';
- ");
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $photo=$arr["photo"];
- $info=$arr["info"];
- $fid=$arr["id"];
- $idfoto=$arr["idfoto"];
- if($del!=""&&($idfoto==$id||$row["level"]==9))
- {
- @mysql_query(@"delete from `albom_beyen` WHERE `id` = '".@$del."';
- ");
- }
- $qus=mysql_query("Select user from users where id = '".$idfoto."';
- ");
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- echo"<card title=\"Foto Albom /$u_user\">";
- echo"<p align="left">
- ";
- echo$fsize1;
- echo"İstifadeçi: <a href="info.php?id=$id&
- ps=$ps&
- nk=$idfoto&
- ref=$ref\">".$u_user."</a><br/>";
- echo$divide;
- echo"<img style="border: 1px solid #424503;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- " src=\"show_photo.php?id=$key&
- w=100&
- h=120" alt=\"
- {
- $u_user
- }
- \"/><br/>";
- $userm=mysql_query("select count(id) as num from albom_beyen where `fotoid`='".$key."';
- ");
- $usm=mysql_fetch_array($userm);
- mysql_free_result($userm);
- $num=$usm["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;
- if($num=="0")echo"Ş
- ekli beyenen olmayı
- b.<br/>";
- if($num=="1")echo"Ş
- ekli beyenen cemi <b>$num</b> nefer.<br/>";
- if($num>1)echo"Ş
- ekli beyenenler cemi <b>$num</b> nefer.<br/>";
- echo$divide;
- $r=@mysql_query("Select * from albom_beyen where fotoid = '".$key."' fxxlorder by tarix desc limit $o,$do");
- for($i=$ot;$i<=$do;$i++)
- {
- $arr=mysql_fetch_array($r);
- $eid=$arr["id"];
- $usid=$arr["usid"];
- $klik=$arr["klik"];
- $quso=mysql_query("Select user from users where id = '".$usid."';");
- $indo=mysql_fetch_array($quso);
- mysql_free_result($quso);
- $login=$indo["user"];
- echo($i).") <a href="info.php?id=$id&
- ps=$ps&
- nk=$usid&
- ref=$ref">".$login."</a>(".$fnc->time_date($arr["tarix"])."-$klikdefe)";
- if($idfoto==$id)
- {
- echo"[<a href="img_a.php?bol=7&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- \">x</a>]
- ";
- }
- else if($row["level"]==9)
- {
- echo"[<a href="img_a.php?bol=7&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- \">x</a>]
- ";
- }
- echo"<br/>
- ";
- }
- $next=$s+1;
- $prev=$s-1;
- if($s>1)
- {
- $ot=(($prev-1)*10)+1;
- $do=$prev*10;
- echo"<a href=\"img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=7&
- s=$prev&
- ref=$ref"><
- <
- $ot</a>. ";
- }
- $tes=$num/10;
- $test=round($tes);
- if(($num>$do)&&($test>=$s))
- {
- $ot=(($next-1)*10)+1;
- $do=$next*10;
- if($do>$num)$do=$num;
- echo" | <a href="img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=7&
- s=$next&
- ref=$ref\">$do>
- >
- </a>";
- echo"<br/>";
- }
- if($s>1)echo"<br/>";
- if($num>0)echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!=""){echo"<a href="img_a.php?bol=1&
- fid=$key&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Geri Qayı
- t</a><br/>";}else{echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- break;
- case"8":$qus=mysql_query("Select user from users where id = '".$fusid."';
- ");
- if(mysql_affected_rows()==0)
- {
- echo$xml;
- echo$dtd;
- echo"<wml>";echo"<card id=\"xeta\" title="Xeta">";
- echo"<p align=\"center">";
- echo$fsize1;
- echo"Nick Tapı
- lmadı
- . Yeqin Silinib.<br/>";
- echo$divide;
- echo"<a href=\"on.php?id=$id&
- ps=$ps&
- ref=$ref">Online Mesaj</a><br/>";
- echo$fsize2;
- echo"</p></card></wml>";
- mysql_close($link);
- exit;
- }
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- $q=mysql_query("select * from albom where idfoto = '".$fusid."';
- ");
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $key=$arr["id"];
- $idfoto=$arr["idfoto"];
- echo"<card title=\"Foto Albom /$u_user\">";
- echo"<p align="left\">
- ";
- echo$fsize1;
- echo"İstifadeçi: <a href="info.php?id=$id&
- ps=$ps&
- nk=$fusid&
- ref=$ref">".$u_user."</a><br/>";
- echo$divide;
- echo"<img style=\"border: 1px solid #424503; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;\" src="slidealbom.php?fusid=$fusid\"alt=\"$u_user\"/><br/>";
- echo$divide;
- echo"<b>Slayd ŞOU</b>: Bunun vasitesi ile siz Albomunda 1 den çox Şekli olan istifadeçilerin bütün Şekillerine eyni anda baxa bilirsiniz.<br/>
- ";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!="")
- {
- echo"<a href="img_a.php?bol=1&
- fid=$key&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Geri Qayıt</a><br/>
- ";
- }
- else
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $fusid
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- break;
- case"9":$fid=$fnc->int(intval($_GET["fid"]));
- $qo=mysql_query("SELECT * FROM `albom` WHERE `id` = '".$fid."';");
- if(mysql_affected_rows()==0)
- {
- echo"<card title=\"Xeta\">
- ";
- echo"<p align="left">
- ";
- echo$fsize1;
- echo"<i>Şekil Tapılmadı</i><br/>
- ";
- echo$divide;
- break;
- }
- $aror=mysql_fetch_array($qo);
- mysql_free_result($qo);
- $idfoto=$aror["idfoto"];
- $del=$aror["id"];
- $vote=$fnc->int(intval($_GET["vote"]));
- if($vote==1)
- {
- $ses=1;
- }
- elseif($vote==2)
- {
- $ses=2;
- }
- elseif($vote==3)
- {
- $ses=3;
- }
- elseif($vote==4)
- {
- $ses=4;
- }
- elseif($vote==5)
- {
- $ses=5;
- }
- elseif($vote==6)
- {
- $ses=50;
- }
- else
- {
- echo"<card title=\"Xeta"> ";echo"<p align="left\">
- ";
- echo$fsize1;
- echo"<i>Türkün meseli verdiyin Ses Tapılmadı!</i><br/>
- ";
- echo$divide;
- break;
- }
- if($ses==1)
- {
- $img_vote="<img src="img/".$ses.".png" alt="".$ses."\"/>";
- }
- elseif($ses==2)
- {
- $img_vote="<img src=\"img/".$ses.".png" alt="".$ses.""/>";
- }
- elseif($ses==3)
- {
- $img_vote="<img src="img/".$ses.".png\" alt="".$ses."\"/>";
- }
- elseif($ses==4)
- {
- $img_vote="<img src="img/".$ses.".png\" alt="".$ses.""/>";
- }
- elseif($ses==5)
- {
- $img_vote="<img src="img/".$ses.".png" alt="".$ses."\"/>";
- }
- elseif($ses==50)
- {
- $img_vote="<img src=\"img/6.png\" alt="5+"/>";
- }
- else
- {
- exit;
- }
- if($row["bal"]<=$ses)
- {
- echo"<card title=\"Bal azdır\">
- ";
- echo"<p align=\"left"> ";
- echo$fsize1;
- echo"Sizin Hesabı
- nı
- zda (<b>".$row["bal"]."</b>) bal var.<br/>";echo"".$img_vote." ses vermek ü
- ç
- ü
- n hesabı
- nı
- zda (<b>".$ses."</b>) bal olmalı
- dı
- r!<br/>";
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!="")
- {
- echo"<a href=\"img_a.php?bol=1&
- fid=$fid&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";}else{echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=".$aror["idfoto"]."
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- break;
- }
- $qim=mysql_query("SELECT * FROM `albom_ses` where `usid`='".$id."' and `fotoid`='".$fid."';
- ");
- $arr=mysql_fetch_array($qim);
- mysql_free_result($qim);
- $b_id=$arr["usid"];
- if($id==$b_id)
- {
- echo"<card title=\"Xeta\">
- ";
- echo"<p align=\"left"> ";
- echo$fsize1;
- echo"Siz bu ş
- ekile ses vermisiniz.2-ci defe ses vermek olmaz!<br/>";
- echo$divide;
- break;
- }
- echo"<card title="Şekile ses verdiniz!\">
- ";
- echo"<p align="left\">
- ";
- echo$fsize1;
- $qus=mysql_query("Select user from users where id = '".$idfoto."';");
- if(mysql_affected_rows()!=0)
- {
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- }
- else
- {
- mysql_query("DELETE from albom where id = '".$fid."';");
- mysql_query("update `users` set `image_fon` = '' where `image_fon` = '".$fid."'");
- @mysql_query(@"delete from `albom_fikir` WHERE `key` = '".@$fid."';");
- @mysql_query(@"delete from `albom_down` WHERE `myid` = '".@$fid."';");
- @mysql_query(@"delete from `albom_beyen` WHERE `fotoid` = '".@$fid."';");
- @mysql_query(@"delete from `albom_ses` WHERE `fotoid` = '".@$fid."';");
- }
- echo"<u>Tebrikler</u><br/>
- ";
- echo$divide;
- echo""<b>
- {
- $u_user
- }
- </b>" nikinin Şekiline ".$img_vote." ses verdiniz.
- ";
- echo"Hesabınızda (<b>".($row["bal"]-$ses)."</b>) bal qaldı!<br/>
- ";
- mysql_query("Select * from `albom_ses` where `usid`='".$id."' and `fotoid`='".$fid."';");
- if(mysql_affected_rows()==0)
- {
- mysql_query("INSERT INTO albom_ses SET usid = '".$id."', tarix = '".$SERVER_TIME."', klik = '".$ses."', fotoid = '".$fid."';");
- }
- else
- {
- @mysql_query("UPDATE `albom_ses` SET `tarix`='".$SERVER_TIME."',`klik`= ".$ses."' WHERE usid='".$id."'");
- }
- mysql_query("update users set `bal`=`bal`-'".$ses."' where id = '".$id."';");
- mysql_query("update albom set `vote`='".$ses."' where id = '".$fid."';");
- echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!="")
- {
- echo"<a href="img_a.php?bol=1&
- fid=$fid&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Geri Qayıt</a><br/>
- ";
- }
- else
- {
- echo"<a href=\"img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=".$aror["idfoto"]."
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- break;
- case"10":$q=mysql_query("select * from albom where id = '".$key."';");
- $arr=mysql_fetch_array($q);
- mysql_free_result($q);
- $photo=$arr["photo"];
- $info=$arr["info"];
- $fid=$arr["id"];
- $idfoto=$arr["idfoto"];
- if($del!=""&&($idfoto==$id||$row["level"]==9))
- {
- @mysql_query(@"delete from `albom_ses` WHERE `id` = '".@$del."';");
- }
- $qus=mysql_query("Select user from users where id = '".$idfoto."';");
- $ind=mysql_fetch_array($qus);
- mysql_free_result($qus);
- $u_user=$ind["user"];
- echo"<card title=\"Foto Albom /$u_user\">";
- echo"<p align=\"left"> ";
- echo$fsize1;
- echo"İ
- stifadeç
- i: <a href=\"info.php?id=$id&
- ps=$ps&
- nk=$idfoto&
- ref=$ref\">".$u_user."</a><br/>";
- echo$divide;
- echo"<img style="border: 1px solid #424503;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- \" src="show_photo.php?id=$key&
- w=100&
- h=120\" alt=\"
- {
- $u_user
- }
- "/><br/>";
- $userm=mysql_query("select count(id) as num from albom_ses where `fotoid`='".$key."';
- ");
- $usm=mysql_fetch_array($userm);
- mysql_free_result($userm);
- $num=$usm["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;
- if($num=="0")echo"Ş
- ekile ses veren olmayı
- b.<br/>";
- if($num=="1")echo"Ş
- ekile ses veren cemi <b>$num</b> nefer.<br/>";
- if($num>1)echo"Ş
- ekile ses verenler cemi <b>$num</b> nefer.<br/>";
- echo$divide;
- $r=@mysql_query("Select * from albom_ses where fotoid = '".$key."' order by tarix desc limit $o,$do");
- for($i=$ot;$i<=$do;$i++)
- {
- $arr=mysql_fetch_array($r);
- $eid=$arr["id"];
- $usid=$arr["usid"];
- $ses=$arr["klik"];
- if($ses==1)
- {
- $img_vote="<img src="img/".$ses.".png" alt="".$ses.""/>";
- }
- elseif($ses==2)
- {
- $img_vote="<img src="img/".$ses.".png\" alt=\"".$ses.""/>";
- }
- elseif($ses==3)
- {
- $img_vote="<img src="img/".$ses.".png" alt="".$ses.""/>";
- }
- elseif($ses==4)
- {
- $img_vote="<img src=\"img/".$ses.".png" alt=\"".$ses."\"/>";
- }
- elseif($ses==5)
- {
- $img_vote="<img src=\"img/".$ses.".png\" alt=\"".$ses."\"/>";
- }
- else
- {
- $img_vote="<img src=\"img/6.png" alt=\"5+"/>";
- }
- $quso=mysql_query("Select user from users where id = '".$usid."';
- ");
- $indo=mysql_fetch_array($quso);
- mysql_free_result($quso);
- $login=$indo["user"];
- echo($i).") <a href=\"info.php?id=$id&
- ps=$ps&
- nk=$usid&
- ref=$ref\">".$login."</a>(".$fnc->time_date($arr["tarix"])." - ".$img_vote.")
- ";
- if($idfoto==$
- {
- $
- {
- "GLOB\xxxc41LS"
- }
- ["uqwkocesqi"]
- }
- )
- {
- echo"[<a href=\"img_a.php?bol=7&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- ">x</a>] ";
- }
- else if($row["level"]==9)
- {
- echo"[<a href=\"img_a.php?bol=7&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mov=
- {
- $mov
- }
- &
- key=
- {
- $key
- }
- &
- del=
- {
- $eid
- }
- {
- $takep
- }
- ">x</a>] ";}echo"<br/> ";
- }
- $next=$s+1;
- $prev=$s-1;
- if($s>1)
- {
- $ot=(($prev-1)*10)+1;
- $do=$prev*10;
- echo"<a href=\"img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=10&
- s=$prev&
- ref=$ref\"><
- <
- $ot</a>.";
- }
- $tes=$num/10;
- $test=round($tes);
- if(($num>$do)&&($test>=$s))
- {
- $ot=(($next-1)*10)+1;
- $do=$next*10;
- if($do>$num)$do=$num;
- echo" | <a href="img_a.php?id=$id&
- ps=$ps&
- key=$key&
- bol=10&
- s=$next&
- ref=$ref">$do>
- >
- </a>";
- echo"<br/>";
- }
- if($s>1)echo"<br/>";
- if($num>0)echo$divide;
- if($mov!="")
- {
- $savik="&
- mov=$mov";
- }
- else
- {
- $savik="";
- }
- if($x!=""){echo"<a href=\"img_a.php?bol=1&
- fid=$key&
- id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Geri Qayı
- t</a><br/>";
- }
- else
- {
- echo"<a href="img_a.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- img=
- {
- $idfoto
- }
- {
- $savik
- }
- {
- $takep
- }
- \">Geri Qayıt</a><br/>
- ";
- }
- break;
- }
- if($rm!=""){echo"<a href=\"chat.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Ç
- ata Qayı
- t</a><br/>";
- }
- else if($x!="")
- {
- echo"<a href="galery.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- &
- mod=
- {
- $x
- }
- &
- ref=
- {
- $ref
- }
- ">Foto Albomlar</a><br/>
- ";
- }
- else
- {
- echo"<a href="on.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- \">Online Mesaj</a><br/>
- ";
- }
- echo"<a href="enter.php?id=
- {
- $id
- }
- &
- ps=
- {
- $ps
- }
- {
- $takep
- }
- ">Dehliz</a><br/>
- ";
- echo$fsize2;
- echo"</p>
- ";
- echo"</card>
- ";
- echo"</wml>
- ";
- mysql_close($link);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement