Salam, Qonaq
 Əsas Səhifə | GirişQeydiyyatDil seç: AZ  

Son Aktivlik

Master Forum | Skript / Komek | Komek Lazimdir
Axtarış
  Masterler chatda komeyiniz lazimdir
MexaNick MexaNick [Off] [#] (15.09.2011 / 16:30)
Salamlar herkese. qaqawlar menim chatimda yeni http://chat.klon.biz
chatimda ankete wekil yuklemek olmur cunku foto alboma wekil yukleyende photos papkasinda id papkasi yaranir sora wekil ora yuklenir hosterim diyirki bizde safe mod on di diye photos a duwen id papkasindaki wekli yuklemek olmur gerek wekil birbawa photos papkasina duwe
indi sizlerden xaiw edirem onu nece edimki bir bawa photos papqasina yuklensin wekil
Dey. MexaNick (15.09.2011 / 16:31) [1]
Firuz Firuz [Off] [#] (15.09.2011 / 16:49)
phpni bura yaz baxaq
yada
copy()
funksiyasina bax ordan deyismek olur
MexaNick MexaNick [Off] [#] (15.09.2011 / 16:58)
Firuz, Buyur qaqa foto.php
<?php
error_reporting(0);
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
require("eh.php");
$ref = rand(1111, 9999);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);

$post = $row["posts"];
$sex = $row["sex"];

$query = mysql_query("SELECT COUNT(*) FROM `albom` WHERE `uid` = '".$id."';");
$all = mysql_result($query, 0);

$alt1 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;ref=$ref\">&#350;exsi Kabinet</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

$alt2 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<link rel=\"shortcut icon\" href=\"$favicon \" /><title>Foto Albom!</title><body bgcolor=\"#000000\" link=\"#00ff00\" vlink=\"blue\" text=\"red\">";
echo "<div align=\"center\">";
if(!isset($_POST['action']))
{

echo "<b>FOTO-ALBOM</b><br/>*****<br/><br/>
</div><div align=\"left\">1) <font color=\"#f1f088\">&#350;ekil 500 kb-dan &#231;ox olmamal&#305;d&#305;r<br/></font>
2) <i><font color=\"#f1f088\">\"<u>Foto-Albom</u>\"a &#350;ekil Y&#252;klemek &#252;&#231;&#252;n m&#252;eyyen edilmi&#351; postunuz olmal&#305;d&#305;r. (postunuz azalm&#305;r)</font></i><br/>----<br/>
<font color=\"#99f088\">
1 &#350;ekil - 0 post<br/>
2 &#350;ekil - 500 post<br/>
3 &#350;ekil - 1000 post<br/>
4 &#350;ekil - 2000 post<br/>
5 &#350;ekil - 4000 post<br/>
6 &#350;ekil - 10.000 post<br/>
7 &#350;ekil - 15.000 post<br/>
10 &#350;ekil - 25.000 post<br/>
</font>----<br/>";

if (10 <= $all) {
echo "<hr>Sizin &#350;ekil y&#252;kleme limitiniz <u>10</u> ke&#231;ib.<br/>";
} else {
echo "<form action=\"foto.php?id=".$id."&amp;ps=".$ps."&amp;case=add&amp;ver=html&amp;ref=$ref\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<b>&#350;ekilinizi se&#231;in:</b><br/>\n";
echo "<input type=\"file\" name=\"photo\" /><br />\n";
echo "&#350;ekil haqq&#305;nda:<br/>\n";
echo "<input name=\"haqqinda\" maxlength=\"250\" title=\"eh\"/><br />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"upload\" />\n";
echo "<input type=\"submit\" value=\"Y&#252;kle\" /></form>";
}
echo "<br/>$alt1";
}
else
{

if ($all == 1 && $post < 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>2</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>500</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 2 && $post < 1000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>3</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>1000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 3 && $post < 2000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>4</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>2000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 4 && $post < 4000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>5</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>4000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 5 && $post < 10000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>6</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>10.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 6 && $post < 15000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>7</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>15.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 9 && $post < 25000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>10</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>25.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_GIF) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_PNG) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_JPEG)) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekil GIF, JPEG ve ya PNG formatlarda olmal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if(filesize($_FILES['photo']['tmp_name']) > 1024 * 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#231;ekisi <b>500</b>kb dan &#231;ox icaze yoxdur.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($propr[0] > 800 || $propr[1] > 800) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#246;l&#231;&#252;leri <u>800</u><b>x</b><u>800</u> den b&#246;y&#252;k olmamal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

$photo_type = substr($_FILES['photo']['type'], 6);

$ad = rand(11111,99999);


if(copy($_FILES['photo']['tmp_name'], "photos/".$id."/".$id."-".$ad.".".$photo_type."")) {
echo "<b>FOTO-ALBOM</b><br/>
*****<br/>
<img src=\"photos/".$id."/".$id."-".$ad.".$photo_type?".rand(10000, 99999)."\" alt=\"photo\" /><br/>
*****<br/>
Bu &#350;ekil Foto Alboma Elave Edildi.<br/>
Tebrikler...
</div><div align=\"left\"><br/>----<br/>
<a href=\"foto.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Yeni &#350;ekil Y&#252;kle</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">Foto Albom</a><br/>
----<br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a><br/>\n";
mysql_query("INSERT INTO `albom` SET `name` = '".$id."-".$ad."',`tip` = '".$photo_type."',`uid` = '".$id."',`haqqinda` = '".$haqqinda."',`ses` = '0',`sex` = '".$sex."';");
$img = $row["img"]+1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
} else {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Xeta ba&#351; verdi.<br/>
</font>
----<br/>";
echo "$alt2\n";
}}
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}
echo "</div></BODY></HTML>";
?>
Firuz Firuz [Off] [#] (15.09.2011 / 17:07)
<?php
error_reporting(0);
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
require("eh.php");
$ref = rand(1111, 9999);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);

$post = $row["posts"];
$sex = $row["sex"];

$query = mysql_query("SELECT COUNT(*) FROM `albom` WHERE `uid` = '".$id."';");
$all = mysql_result($query, 0);

$alt1 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;ref=$ref\">&#350;exsi Kabinet</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

$alt2 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<link rel=\"shortcut icon\" href=\"$favicon \" /><title>Foto Albom!</title><body bgcolor=\"#000000\" link=\"#00ff00\" vlink=\"blue\" text=\"red\">";
echo "<div align=\"center\">";
if(!isset($_POST['action']))
{

echo "<b>FOTO-ALBOM</b><br/>*****<br/><br/>
</div><div align=\"left\">1) <font color=\"#f1f088\">&#350;ekil 500 kb-dan &#231;ox olmamal&#305;d&#305;r<br/></font>
2) <i><font color=\"#f1f088\">\"<u>Foto-Albom</u>\"a &#350;ekil Y&#252;klemek &#252;&#231;&#252;n m&#252;eyyen edilmi&#351; postunuz olmal&#305;d&#305;r. (postunuz azalm&#305;r)</font></i><br/>----<br/>
<font color=\"#99f088\">
1 &#350;ekil - 0 post<br/>
2 &#350;ekil - 500 post<br/>
3 &#350;ekil - 1000 post<br/>
4 &#350;ekil - 2000 post<br/>
5 &#350;ekil - 4000 post<br/>
6 &#350;ekil - 10.000 post<br/>
7 &#350;ekil - 15.000 post<br/>
10 &#350;ekil - 25.000 post<br/>
</font>----<br/>";

if (10 <= $all) {
echo "<hr>Sizin &#350;ekil y&#252;kleme limitiniz <u>10</u> ke&#231;ib.<br/>";
} else {
echo "<form action=\"foto.php?id=".$id."&amp;ps=".$ps."&amp;case=add&amp;ver=html&amp;ref=$ref\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<b>&#350;ekilinizi se&#231;in:</b><br/>\n";
echo "<input type=\"file\" name=\"photo\" /><br />\n";
echo "&#350;ekil haqq&#305;nda:<br/>\n";
echo "<input name=\"haqqinda\" maxlength=\"250\" title=\"eh\"/><br />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"upload\" />\n";
echo "<input type=\"submit\" value=\"Y&#252;kle\" /></form>";
}
echo "<br/>$alt1";
}
else
{

if ($all == 1 && $post < 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>2</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>500</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 2 && $post < 1000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>3</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>1000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 3 && $post < 2000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>4</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>2000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 4 && $post < 4000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>5</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>4000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 5 && $post < 10000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>6</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>10.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 6 && $post < 15000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>7</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>15.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 9 && $post < 25000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>10</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>25.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_GIF) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_PNG) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_JPEG)) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekil GIF, JPEG ve ya PNG formatlarda olmal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if(filesize($_FILES['photo']['tmp_name']) > 1024 * 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#231;ekisi <b>500</b>kb dan &#231;ox icaze yoxdur.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($propr[0] > 800 || $propr[1] > 800) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#246;l&#231;&#252;leri <u>800</u><b>x</b><u>800</u> den b&#246;y&#252;k olmamal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

$photo_type = substr($_FILES['photo']['type'], 6);

$ad = rand(11111,99999);


if(copy($_FILES['photo']['tmp_name'], "photos/".$id."-".$ad.".".$photo_type."")) {
echo "<b>FOTO-ALBOM</b><br/>
*****<br/>
<img src=\"photos/".$id."-".$ad.".$photo_type?".rand(10000, 99999)."\" alt=\"photo\" /><br/>
*****<br/>
Bu &#350;ekil Foto Alboma Elave Edildi.<br/>
Tebrikler...
</div><div align=\"left\"><br/>----<br/>
<a href=\"foto.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Yeni &#350;ekil Y&#252;kle</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">Foto Albom</a><br/>
----<br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a><br/>\n";
mysql_query("INSERT INTO `albom` SET `name` = '".$id."-".$ad."',`tip` = '".$photo_type."',`uid` = '".$id."',`haqqinda` = '".$haqqinda."',`ses` = '0',`sex` = '".$sex."';");
$img = $row["img"]+1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
} else {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Xeta ba&#351; verdi.<br/>
</font>
----<br/>";
echo "$alt2\n";
}}
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}
echo "</div></BODY></HTML>";
?>
Firuz Firuz [Off] [#] (15.09.2011 / 17:11)
umumiyyetle skriptin awibka vermesinin sebebi
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}
bu kodun en altda olmasidi.yuxarilarda bir yerde olsa awibka vermez
MexaNick MexaNick [Off] [#] (15.09.2011 / 17:40)
Firuz, Qaqa duzeldi yuklenir amma wexsi kabinetden baxanda deyir weklin yoxdur case foto nu bura atsam komek edersen?
Firuz Firuz [Off] [#] (15.09.2011 / 17:45)
yaz duzeldim.ama basqa yerlerdede problem cixacaq.ya gerek hamisini duzeldesen yada sen bunu yoxla yeniden

<?php
error_reporting(0);
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
require("eh.php");
$ref = rand(1111, 9999);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);

$post = $row["posts"];
$sex = $row["sex"];

$query = mysql_query("SELECT COUNT(*) FROM `albom` WHERE `uid` = '".$id."';");
$all = mysql_result($query, 0);

$alt1 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;ref=$ref\">&#350;exsi Kabinet</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

$alt2 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<link rel=\"shortcut icon\" href=\"$favicon \" /><title>Foto Albom!</title><body bgcolor=\"#000000\" link=\"#00ff00\" vlink=\"blue\" text=\"red\">";
echo "<div align=\"center\">";
if(!isset($_POST['action']))
{

echo "<b>FOTO-ALBOM</b><br/>*****<br/><br/>
</div><div align=\"left\">1) <font color=\"#f1f088\">&#350;ekil 500 kb-dan &#231;ox olmamal&#305;d&#305;r<br/></font>
2) <i><font color=\"#f1f088\">\"<u>Foto-Albom</u>\"a &#350;ekil Y&#252;klemek &#252;&#231;&#252;n m&#252;eyyen edilmi&#351; postunuz olmal&#305;d&#305;r. (postunuz azalm&#305;r)</font></i><br/>----<br/>
<font color=\"#99f088\">
1 &#350;ekil - 0 post<br/>
2 &#350;ekil - 500 post<br/>
3 &#350;ekil - 1000 post<br/>
4 &#350;ekil - 2000 post<br/>
5 &#350;ekil - 4000 post<br/>
6 &#350;ekil - 10.000 post<br/>
7 &#350;ekil - 15.000 post<br/>
10 &#350;ekil - 25.000 post<br/>
</font>----<br/>";

if (10 <= $all) {
echo "<hr>Sizin &#350;ekil y&#252;kleme limitiniz <u>10</u> ke&#231;ib.<br/>";
} else {
echo "<form action=\"foto.php?id=".$id."&amp;ps=".$ps."&amp;case=add&amp;ver=html&amp;ref=$ref\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<b>&#350;ekilinizi se&#231;in:</b><br/>\n";
echo "<input type=\"file\" name=\"photo\" /><br />\n";
echo "&#350;ekil haqq&#305;nda:<br/>\n";
echo "<input name=\"haqqinda\" maxlength=\"250\" title=\"eh\"/><br />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"upload\" />\n";
echo "<input type=\"submit\" value=\"Y&#252;kle\" /></form>";
}
echo "<br/>$alt1";
}
else
{

if ($all == 1 && $post < 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>2</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>500</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 2 && $post < 1000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>3</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>1000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 3 && $post < 2000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>4</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>2000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 4 && $post < 4000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>5</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>4000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 5 && $post < 10000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>6</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>10.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 6 && $post < 15000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>7</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>15.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 9 && $post < 25000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>10</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>25.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_GIF) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_PNG) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_JPEG)) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekil GIF, JPEG ve ya PNG formatlarda olmal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if(filesize($_FILES['photo']['tmp_name']) > 1024 * 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#231;ekisi <b>500</b>kb dan &#231;ox icaze yoxdur.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($propr[0] > 800 || $propr[1] > 800) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#246;l&#231;&#252;leri <u>800</u><b>x</b><u>800</u> den b&#246;y&#252;k olmamal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

$photo_type = substr($_FILES['photo']['type'], 6);

$ad = rand(11111,99999);
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}

if(copy($_FILES['photo']['tmp_name'], "photos/".$id."/".$id."-".$ad.".".$photo_type."")) {
echo "<b>FOTO-ALBOM</b><br/>
*****<br/>
<img src=\"photos/".$id."/".$id."-".$ad.".$photo_type?".rand(10000, 99999)."\" alt=\"photo\" /><br/>
*****<br/>
Bu &#350;ekil Foto Alboma Elave Edildi.<br/>
Tebrikler...
</div><div align=\"left\"><br/>----<br/>
<a href=\"foto.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Yeni &#350;ekil Y&#252;kle</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">Foto Albom</a><br/>
----<br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a><br/>\n";
mysql_query("INSERT INTO `albom` SET `name` = '".$id."-".$ad."',`tip` = '".$photo_type."',`uid` = '".$id."',`haqqinda` = '".$haqqinda."',`ses` = '0',`sex` = '".$sex."';");
$img = $row["img"]+1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
} else {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Xeta ba&#351; verdi.<br/>
</font>
----<br/>";
echo "$alt2\n";
}}
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}
echo "</div></BODY></HTML>";
?>
MexaNick MexaNick [Off] [#] (15.09.2011 / 17:50)
Firuz, Foto alboma yuklenir ve yuklemek olur ama kabinete duwmur buyur
case 'foto':
echo $fsize1;
echo "<b>Foto Albom</b>:<br/>";
echo $divide;
if($del!=""){
$ras=explode(".", $del);
$name=$ras[0];
$type=$ras[1];
$q = mysql_query("SELECT * FROM `albom` WHERE `uid` = '".$id."' and `name` = '".$name."' and `tip` = '".$type."';");
if(mysql_num_rows($q) != 0)
{
if (file_exists("photos/".$id."/".$del.""))
{
unlink ("photos/".$id."/".$del."");
mysql_query("DELETE from albom where uid = '".$id."' and name = '".$name."' and tip = '".$type."' limit 1;");
$img = $row["img"]-1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
}
}
echo "<u>&#350;ekil Silindi...</u><br/>\n";
echo $divide;
echo "&#8226; <a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=$ps$takep2\">&#350;ekiller Foto-Albom</a><br/>";
break;
}
echo "&#350;ekili silmek &#252;&#231;&#252;n [x] D&#252;ymesine t&#305;klay&#305;n (&#351;ekile verilen seslerde silinecek).<br/>----<br/>\n";

if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}


if ($handle = opendir('photos/'.$id.''))
{
$c = 1;
while (false !== ($file = readdir($handle)))
{

if ($file != "." && $file != ".." && $file != "Thumbs.db")
{
$a[]=$file;
echo "".$c." [<a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=".$ps."&amp;del=".$file."&amp;ref=$ref\">x</a>] \n<a href=\"photos/$id/$file\">$file</a><br/>\n";

$c++;
}

}

closedir($handle);
}

$cnt=count($a);
if($cnt==0)echo "<i><b>\"Foto-Albom</b>\"-da &#350;ekiliniz yoxdur...</i><br/>\n";
if($cnt!=10){
echo $divide;
echo "&#8226; <a href=\"foto.php?id=$id&amp;ps=$ps&amp;mod=photo$takep2\">Yeni &#350;ekil Y&#252;kle</a><br/>";
}
break;
Firuz Firuz [Off] [#] (15.09.2011 / 17:57)
gor iwleyecek?

case 'foto':
echo $fsize1;
echo "<b>Foto Albom</b>:<br/>";
echo $divide;
if($del!=""){
$ras=explode(".", $del);
$name=$ras[0];
$type=$ras[1];
$q = mysql_query("SELECT * FROM `albom` WHERE `uid` = '".$id."' and `name` = '".$name."' and `tip` = '".$type."';");
if(mysql_num_rows($q) != 0)
{
if (file_exists("photos/".$del.""))
{
unlink ("photos/".$del."");
mysql_query("DELETE from albom where uid = '".$id."' and name = '".$name."' and tip = '".$type."' limit 1;");
$img = $row["img"]-1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
}
}
echo "<u>&#350;ekil Silindi...</u><br/>\n";
echo $divide;
echo "&#8226; <a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=$ps$takep2\">&#350;ekiller Foto-Albom</a><br/>";
break;
}
echo "&#350;ekili silmek &#252;&#231;&#252;n [x] D&#252;ymesine t&#305;klay&#305;n (&#351;ekile verilen seslerde silinecek).<br/>----<br/>\n";

if(!is_dir(photos))
{
mkdir(addslashes(photos));
chmod(addslashes(photos), 0777);
}


if ($handle = opendir('photos'))
{
$c = 1;
while (false !== ($file = readdir($handle)))
{

if ($file != "." && $file != ".." && $file != "Thumbs.db")
{
$a[]=$file;
echo "".$c." [<a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=".$ps."&amp;del=".$file."&amp;ref=$ref\">x</a>] \n<a href=\"photos/$id/$file\">$file</a><br/>\n";

$c++;
}

}

closedir($handle);
}

$cnt=count($a);
if($cnt==0)echo "<i><b>\"Foto-Albom</b>\"-da &#350;ekiliniz yoxdur...</i><br/>\n";
if($cnt!=10){
echo $divide;
echo "&#8226; <a href=\"foto.php?id=$id&amp;ps=$ps&amp;mod=photo$takep2\">Yeni &#350;ekil Y&#252;kle</a><br/>";
}
break;
MexaNick MexaNick [Off] [#] (15.09.2011 / 18:07)
Firuz, Iwlemedi
Firuz Firuz [Off] [#] (15.09.2011 / 18:09)
MexaNick, ne yazildiki?sen bunu yoxladaa

<?php
error_reporting(0);
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
require("eh.php");
$ref = rand(1111, 9999);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);

$post = $row["posts"];
$sex = $row["sex"];

$query = mysql_query("SELECT COUNT(*) FROM `albom` WHERE `uid` = '".$id."';");
$all = mysql_result($query, 0);

$alt1 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;ref=$ref\">&#350;exsi Kabinet</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

$alt2 = "<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">&#350;ekillerim Foto-Albom</a><br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a>";

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<link rel=\"shortcut icon\" href=\"$favicon \" /><title>Foto Albom!</title><body bgcolor=\"#000000\" link=\"#00ff00\" vlink=\"blue\" text=\"red\">";
echo "<div align=\"center\">";
if(!isset($_POST['action']))
{

echo "<b>FOTO-ALBOM</b><br/>*****<br/><br/>
</div><div align=\"left\">1) <font color=\"#f1f088\">&#350;ekil 500 kb-dan &#231;ox olmamal&#305;d&#305;r<br/></font>
2) <i><font color=\"#f1f088\">\"<u>Foto-Albom</u>\"a &#350;ekil Y&#252;klemek &#252;&#231;&#252;n m&#252;eyyen edilmi&#351; postunuz olmal&#305;d&#305;r. (postunuz azalm&#305;r)</font></i><br/>----<br/>
<font color=\"#99f088\">
1 &#350;ekil - 0 post<br/>
2 &#350;ekil - 500 post<br/>
3 &#350;ekil - 1000 post<br/>
4 &#350;ekil - 2000 post<br/>
5 &#350;ekil - 4000 post<br/>
6 &#350;ekil - 10.000 post<br/>
7 &#350;ekil - 15.000 post<br/>
10 &#350;ekil - 25.000 post<br/>
</font>----<br/>";

if (10 <= $all) {
echo "<hr>Sizin &#350;ekil y&#252;kleme limitiniz <u>10</u> ke&#231;ib.<br/>";
} else {
echo "<form action=\"foto.php?id=".$id."&amp;ps=".$ps."&amp;case=add&amp;ver=html&amp;ref=$ref\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<b>&#350;ekilinizi se&#231;in:</b><br/>\n";
echo "<input type=\"file\" name=\"photo\" /><br />\n";
echo "&#350;ekil haqq&#305;nda:<br/>\n";
echo "<input name=\"haqqinda\" maxlength=\"250\" title=\"eh\"/><br />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"upload\" />\n";
echo "<input type=\"submit\" value=\"Y&#252;kle\" /></form>";
}
echo "<br/>$alt1";
}
else
{

if ($all == 1 && $post < 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>2</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>500</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 2 && $post < 1000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>3</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>1000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 3 && $post < 2000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>4</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>2000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 4 && $post < 4000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>5</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>4000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 5 && $post < 10000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>6</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>10.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 6 && $post < 15000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>7</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>15.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if ($all == 9 && $post < 25000) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Foto Albom-a <b>10</b> &#350;ekil Y&#252;klemek &#252;&#231;&#252;n <b>25.000</b> postunuz olmal&#305;d&#305;r!<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_GIF) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_PNG) && $_FILES['photo']['type'] != image_type_to_mime_type(IMAGETYPE_JPEG)) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekil GIF, JPEG ve ya PNG formatlarda olmal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if(filesize($_FILES['photo']['tmp_name']) > 1024 * 500) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#231;ekisi <b>500</b>kb dan &#231;ox icaze yoxdur.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

if($propr[0] > 800 || $propr[1] > 800) {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
&#350;ekilin &#246;l&#231;&#252;leri <u>800</u><b>x</b><u>800</u> den b&#246;y&#252;k olmamal&#305;d&#305;r.<br/>
</font>
----<br/>";
echo "$alt2\n";
break;
}

$photo_type = substr($_FILES['photo']['type'], 6);

$ad = rand(11111,99999);
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}

if(copy($_FILES['photo']['tmp_name'], "photos/".$id."/".$id."-".$ad.".".$photo_type."")) {
echo "<b>FOTO-ALBOM</b><br/>
*****<br/>
<img src=\"photos/".$id."/".$id."-".$ad.".$photo_type?".rand(10000, 99999)."\" alt=\"photo\" /><br/>
*****<br/>
Bu &#350;ekil Foto Alboma Elave Edildi.<br/>
Tebrikler...
</div><div align=\"left\"><br/>----<br/>
<a href=\"foto.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Yeni &#350;ekil Y&#252;kle</a><br/>
<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">Foto Albom</a><br/>
----<br/>
<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a><br/>\n";
mysql_query("INSERT INTO `albom` SET `name` = '".$id."-".$ad."',`tip` = '".$photo_type."',`uid` = '".$id."',`haqqinda` = '".$haqqinda."',`ses` = '0',`sex` = '".$sex."';");
$img = $row["img"]+1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
} else {
echo "<b>-STOP-</b><br/>
*****<br/>
<font color=\"#99f088\">
Xeta ba&#351; verdi.<br/>
</font>
----<br/>";
echo "$alt2\n";
}}
if(!is_dir(photos ."/".$id))
{
mkdir(addslashes(photos) . '/'.$id.'');
chmod(addslashes(photos) . '/'.$id.'', 0777);
}
echo "</div></BODY></HTML>";
?>
MexaNick MexaNick [Off] [#] (15.09.2011 / 18:16)
Firuz, Qaqa butov cabinet.php
http://chat.klon.biz/cabinet.txt qaqa sen cani duzeliw et ve txt formatda ver gozduyurem
Firuz Firuz [Off] [#] (15.09.2011 / 18:34)
MexaNick, bunuda yoxla alinmasa dediyim kodu yuxari kecirt evvelki kodda iwleyecek yeqinki.birdeki sende halhazirda sekil photos papkasina yuklenir yoxsa photos/id papkasina?


<?php
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml");
require("eh.php");
$ref=rand(10000,1000000);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);


$user = $row["user"];
$userm = mysql_query ("select count(klu4) as num from ignor where id ='".$id."';");
$iqnor = mysql_fetch_array($userm);
$dos = mysql_query ("select count(klu4) as num from friends where id ='".$id."';");
$dost = mysql_fetch_array($dos);

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>";
echo "<card id=\"kabinet\" title=\"&#350;exsi Kabinet\">";
echo "<p>";
switch($go) {

default:
echo $fsize1;
echo "Salam <b>".$user."</b>!<br/>";
echo "Bura sizin &#350;exsi Kabinetinizdir, Burda olan melumatlar yaln&#305;z Size aiddir...<br/>";
echo $divide;
$r = mysql_query ("select count(readd) as num from zapiski WHERE (idtowhom = '".$id."')and(readd = '0')and(ininc = '1')");
$a = mysql_fetch_array($r);
$inb = $a["num"];
$r2 = mysql_query ("select count(klu4) as num from zapiski WHERE (idtowhom = '".$id."')and(ininc = '1')");
$a2 = mysql_fetch_array($r2);
$inball = $a2["num"];
echo "&#8226;<a href=\"mektub.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Mektublar</a>(".$inb."/".$inball.")<br/>";
$q = mysql_query("SELECT COUNT(*) FROM `mms` WHERE `to` = '".$id."' AND `read` = 0;");
$newto = mysql_result($q, 0);
$q = mysql_query("SELECT COUNT(*) FROM `mms` WHERE `to` = '".$id."';");
$to = mysql_result($q, 0);
echo "&#8226;<a href=\"mms.php?id=$id&amp;ps=$ps&amp;r=$ref\">MMS Mektublar</a>(".$newto."/".$to.")<br/>";
$sqleh = mysql_query( "select id from albom where uid = '".$id."'" );
$eh = mysql_num_rows( $sqleh );
if ($eh == 0) {
echo "&#8226;<a href=\"foto.php?id=$id&amp;ps=$ps&amp;mod=photo&amp;ref=$ref\">Foto-Alboma &#350;ekil Y&#252;kle</a><br/>";
} else {
echo "&#8226;<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=foto&amp;ref=$ref\">Foto-Albom &#350;ekillerim</a>(".$eh.")<br/>";
}
$qeh = mysql_query("SELECT COUNT(*) FROM `hediyye` WHERE `uid` = '".$id."';");
$hedi = mysql_result($qeh, 0);
echo "&#8226;<a href=\"padarka.php?id=$id&amp;ps=$ps&amp;nk=$id&amp;ref=$ref\">Hediyyelerim</a>($hedi)<br/>\n";
$qex = mysql_query("SELECT COUNT(*) FROM `fikirler` WHERE `uid` = '".$id."';");
$xati = mysql_result($qex, 0);
echo "&#8226;<a href=\"fikirler.php?id=$id&amp;ps=$ps&amp;nk=$id&amp;ref=$ref\">Xatire Defterim</a>($xati)<br/>\n";
echo $divide;
if (empty($deyish)) {
$xstatus = $row["xstatus"];
} else {
mysql_query ("Update users set xstatus='".$xstatus."' where id ='".$id."'");
}
if ($xstatus == 1) {
$xmesaj = "Online";
} else if ($xstatus == 2) {
$xmesaj = "Offline";
} else if ($xstatus == 3) {
$xmesaj = "Me&#351;gulam";
} else if ($xstatus == 4) {
$xmesaj = "Sevgi axtar&#305;ram";
} else if ($xstatus == 5) {
$xmesaj = "Tan&#305;&#351; olmuram";
} else if ($xstatus == 6) {
$xmesaj = "Dar&#305;x&#305;ram";
} else if ($xstatus == 7) {
$xmesaj = "&#199;ekirem";
}
echo "<b>X-Status:</b> ";
if ($xstatus!=0)echo "<img src=\"img/x-status/".$xstatus.".gif\"/> <u>".$xmesaj."</u>";
echo "<br/>";
echo $fsize2;
echo "<select name=\"xstatus$ref\" value=\"".$xstatus."\">";
echo "<option value=\"0\">Bo&#351;</option>";
echo "<option value=\"1\">Online</option>";
echo "<option value=\"2\">Offline</option>";
echo "<option value=\"3\">Me&#351;gulam</option>";
echo "<option value=\"4\">Sevgi axtar&#305;ram</option>";
echo "<option value=\"5\">Tan&#305;&#351; olmuram</option>";
echo "<option value=\"6\">Dar&#305;x&#305;ram</option>";
echo "<option value=\"7\">&#199;ekirem</option>";
echo "</select> ";
echo $fsize1;
echo "<anchor>Ok<go href=\"cabinet.php?id=$id&amp;ps=$ps&amp;ps=$ps&amp;ref=$ref\" method=\"post\">
<postfield name=\"xstatus\" value=\"$(xstatus$ref)\"/>
<postfield name=\"deyish\" value=\"ok\"/>
</go></anchor><br/>";
echo $divide;
echo "&#187;<a href=\"profile.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Anket - Melumatlar</a><br/>";
echo "&#187;<a href=\"change.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Qur&#287;ular (Settings)</a><br/>";
echo "&#187;<a href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=ehval&amp;ref=$ref\">Ehval&#305;m</a><br/>";
echo "&#187;<a href=\"axtar.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Nick Axtar</a><br/>";
echo "&#xbb;<i><a href=\"axtar.php?bol=all&amp;id=$id&amp;ps=$ps&amp;ref=$ref\">Axtar&#305;&#351; Sistemi</a></i><br/>";
echo $divide;
echo "&#8226;<a href=\"friends.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dostlar Siyah&#305;s&#305;</a>(".$dost[0].")<br/>";
echo "&#8226;<a href=\"ignor.php?id=$id&amp;ps=$ps&amp;ref=$ref\">&#304;qnor Siyah&#305;s&#305;</a>(".$iqnor[0].")<br/>";
break;

case 'test':
echo $fsize1;
echo "<b>Foto Albom</b>:<br/>";
echo $divide;
if($del!=""){
$ras=explode(".", $del);
$name=$ras[0];
$type=$ras[1];
$q = mysql_query("SELECT * FROM `albom` WHERE `uid` = '".$id."' and `name` = '".$name."' and `tip` = '".$type."';");
if(mysql_num_rows($q) != 0)
{
if (file_exists("photos/".$del.""))
{
unlink ("photos/".$del."");
mysql_query("DELETE from albom where uid = '".$id."' and name = '".$name."' and tip = '".$type."' limit 1;");
$img = $row["img"]-1;
mysql_query ("update users set img = '".$img."' where id = '".$id."'");
}
}
echo "<u>&#350;ekil Silindi...</u><br/>\n";
echo $divide;
echo "&#8226; <a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=$ps$takep2\">&#350;ekiller Foto-Albom</a><br/>";
break;
}
echo "&#350;ekili silmek &#252;&#231;&#252;n [x] D&#252;ymesine t&#305;klay&#305;n (&#351;ekile verilen seslerde silinecek).<br/>----<br/>\n";

if(!is_dir(photos))
{
mkdir(addslashes(photos));
chmod(addslashes(photos), 0777);
}


if ($handle = opendir('photos'))
{
$c = 1;
while (false !== ($file = readdir($handle)))
{

if ($file != "." && $file != ".." && $file != "Thumbs.db")
{
$a[]=$file;
echo "".$c." [<a href=\"cabinet.php?go=foto&amp;id=$id&amp;ps=".$ps."&amp;del=".$file."&amp;ref=$ref\">x</a>] \n<a href=\"photos/$id/$file\">$file</a><br/>\n";

$c++;
}

}

closedir($handle);
}

$cnt=count($a);
if($cnt==0)echo "<i><b>\"Foto-Albom</b>\"-da &#350;ekiliniz yoxdur...</i><br/>\n";
if($cnt!=10){
echo $divide;
echo "&#8226; <a href=\"foto.php?id=$id&amp;ps=$ps&amp;mod=photo$takep2\">Yeni &#350;ekil Y&#252;kle</a><br/>";
}
break;


case 'foto':
echo $fsize1;
// qovluq ach photos papkasina ide gore 777 chmod ver
if(!opendir($id))
{
mkdir(addslashes(photos));
chmod(addslashes(photos));
}
// photos qovluqun while
if ($handle = opendir('photos'))
{
$c = 1;
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != ".." && $file != "Thumbs.db")
{
$a[]=$file;
echo "".$c." <a href=\"photo.php?id=$id&amp;pass=".$pass."&amp;case=del&amp;f=".$file."\">[X]</a> \n<a href=\"photos/$id/$file\">$file</a><br/>\n";
$c++;
}
}
closedir($handle);
}
$cnt=count($a);
echo "Cemi: <b>".count($a)."</b><br/>";
break;

case 'ehval':
echo $fsize1;
if(!isset($EH)) {
echo "Ehval&#305;n&#305;z<br/>";
echo $fsize2;
$nastroi=$row['nastroi'];
echo "<input name=\"nastroi\" maxlength=\"20\" value=\"$nastroi\"/><br/>";
echo $fsize1;
echo "<anchor title=\"go\">Yadda saxla<go href=\"cabinet.php?id=$id&amp;ps=$ps&amp;go=ehval&amp;rm=$rm&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"ehval\" value=\"$(nastroi)\"/>\n";
echo "<postfield name=\"EH\" value=\"c0der\"/>\n";
echo "</go></anchor><br/>";
} else {
require("file/sehife/sh_files");
$ehval = narmobil($ehval);
mysql_query ("Update users set nastroi = '".$ehval."' where id ='".$id."'");
echo "Sizin ehval&#305;n&#305;z deyi&#351;ildi!<br/>";
}
break;

}
echo $divide;
if($go) echo "<a href=\"cabinet.php?id=$id&amp;ps=$ps$takep2\">&#350;exsi Kabinet</a><br/>\n";
if (isset ($rm))echo "<a href=\"chat.php?id=$id&amp;ps=$ps&amp;rm=$rm$takep\">&#199;ata Qay&#305;t</a><br/>\n";
echo "<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
mysql_close($link);
?>
  Cemi: 13

Mövzuya Baxanlar (0 nəfər)
Müellife göre filtreleme
Mövzunu YükleForuma Keç
Üst Yenilikler
 Əsas Səhifə  Onlayn: 3 / 18 nəfər

WapUsta.Net - Wap Ustaların Mekanı

© WapUsta.Net