0
0
Xoş gəldin, Qonaq
Master Forum | Scriptlər | Scriptdə kömək
  Arxiv.php komek
StopNick StopNick [Off] [#] (19.09.2016 / 16:06)
gonder lingi vml versiyada işləmir səhvliyi tapa bilmədim



<?php
require("inc.php");
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
$_v->key($nk);

if($row['room']!='28'){
mysql_query("UPDATE `users` SET `room` = '28' WHERE `id` = '".$id."' LIMIT 1;");
};

if($rm!="")$takep = "&amp;rm=$rm&amp;ref=$ref";
else
$takep = "&amp;ref=$ref";

$user=$row["user"];
$avr = $row["avr"];

$_v->title('Mesaj','center');
$_v->html("<script type=\"text/javascript\" src=\"js/smiles.js\"></script>");
$_v->fsize1($fsize1);
$_v->html('</div>');


$_v->html("<link rel=\"stylesheet\" href=\"fon.css\" type=\"text/css\" />");
$background = $row["background"];


if($background == 0)
{
$_v->html('<div class=\"menu\" >');
$_v->html('<div class=\"menu\" >');
}else{
$_v->html('<div class=\"menu\">');

$_v->html('
<style type="text/css">
div.menu{
background-position: center;
background:url(fon/'.$background.'.png);
padding:5px;
position: relative;
}

div.menu a{
color:#484949
}

</style>
');

$_v->html('<div class=\"arxa\">');

}



//
settype($nk, 'integer');

if($l == themes)
{
$_v->html('<br/><div style="text-align:left">');
if(!isset($_POST['action'])){
echo "<form action=\"arxiv.php?id=$id&amp;ps=$ps&amp;nk=".$nk."&l=themes\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<input name=\"theme\" type=\"radio\" value=\"0\" checked=\"checked\"/> default<br/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"1\"/> <img src=\"fon/1.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"2\"/> <img src=\"fon/2.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"3\"/> <img src=\"fon/3.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"4\"/> <img src=\"fon/4.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"5\"/> <img src=\"fon/5.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"6\"/> <img src=\"fon/6.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"7\"/> <img src=\"fon/7.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"8\"/> <img src=\"fon/8.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"9\"/> <img src=\"fon/9.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"10\"/> <img src=\"fon/10.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"11\"/> <img src=\"fon/11.png\" alt=\".\" height=\"50\" width=\"50\"/><hr/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"12\"/> <img src=\"fon/12.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"13\"/> <img src=\"fon/13.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"14\"/> <img src=\"fon/14.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"15\"/> <img src=\"fon/15.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"16\"/> <img src=\"fon/16.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"17\"/> <img src=\"fon/17.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"18\"/> <img src=\"fon/18.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"19\"/> <img src=\"fon/19.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"20\"/> <img src=\"fon/20.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"21\"/> <img src=\"fon/21.png\" alt=\".\" height=\"50\" width=\"50\"/>\n";
echo "<input name=\"theme\" type=\"radio\" value=\"22\"/> <img src=\"fon/22.png\" alt=\".\" height=\"50\" width=\"50\"/><br/>\n";
echo "<input type=\"hidden\" name=\"action\" value=\"background\" />\n";
echo "<input type=\"submit\" value=\"D&#601;yi&#351;\" /><br /></form>\n";
}else{

$theme = htmlspecialchars(mysql_escape_string(trim($_POST['theme'])));

$sql = mysql_query("UPDATE `users` SET `background` = '".$theme."' WHERE `id` = '".$id."'");

if($sql){
echo "Arxa Fon Deyisildi<br/>";
echo "---<br/>";
echo "<a href=\"arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk&amp;ref=$ref\">Geri Don</a><br/>";
//header("Location: arxiv.php?id=$id&ps=$ps&nk=".$nk."");
}else{
//header("Location: arxiv.php?id=$id&ps=$ps&nk=".$nk."");
//echo mysql_error();
}
}






}else{




$u_s = mysql_query ("Select `user`,`id`,`time`,`zn` from `users` WHERE `id` = '".$nk."';");
if (mysql_affected_rows() == 0)
{
echo "Axtard&#305;q&#305;n&#305;z &#304;stifade&#231;i Tap&#305;lmad&#305;.<br/>\n";
$_v->divide();
echo "<a href=\"on.php?id=$id&amp;ps=$ps$takep\">Mesaj</a><br/>\n";
$_v->fsize2($fsize2);
$_v->end('1',$link);
exit;
}
$u_i = mysql_fetch_array($u_s);
$u_user = $u_i["user"];
$u_time = $u_i["time"];
$u_zn = $u_i["zn"];
if($u_zn!="")$u_zn = "<img src=\"img/z".$u_zn.".gif\" alt=\".\"/>";
$zn = $row["zn"];
if($zn!="")$zn = "<img src=\"img/z".$zn.".gif\" alt=\".\"/>";

if(strlen($message)>2)
{
include("./file/require/send");
}

$query = mysql_query("select COUNT(`klu4`) from `mesaj` where (`idwho` = '".$nk."' and `idtowhom` ='".$id."') or (`idwho` = '".$id."' and `idtowhom` ='".$nk."');");
$all = @mysql_result($query, 0);


if($u_user=="")
{
echo "Axtard&#305;q&#305;n&#305;z &#304;stifade&#231;i Tap&#305;lmad&#305;.<br/>\n";
$_v->divide();
echo "<a href=\"on.php?id=$id&amp;ps=$ps$takep\">Mesaj</a><br/>\n";
$_v->fsize2($fsize2);
$_v->end('1',$link);
exit;
}
mysql_query ("Update `mesaj` set `readd` = '1', `insend` = '0' WHERE (`idtowhom` = '".$id."' and `idwho` ='".$nk."');");
$_v->html('</div></div></div><div class="user_info">');


echo "<a href=\"info.php?id=$id&amp;ps=$ps&amp;nk=$nk$takep\">$u_user</a> \n";
include "time.php";
$_v->html('<small><i>');
print ((exit_time($u_time)>$SERVER_TIME) ? 'x&#601;td&#601;' : 'son g&#246;r&#252;nt&#252;lm&#601;: '.legend_tarix ($u_time).'');
$_v->html('...</i></small>');
$_v->wml('...');
$msn = $row['msn'];
$readd = mysql_query("select count(`readd`) as `num` from `mesaj` where (`idtowhom` = '".$id."')and(`ininc` ='1')and(`readd` ='0')");
$a = mysql_fetch_array($readd);
$num = $a["num"];
if($msn!=$num)
{
mysql_query("UPDATE `users` SET `msn` = '".$num."' WHERE `id` = '".$id."';");
}


$_v->html('');
if($msn>0)echo "<a href=\"mesaj.php?id=$id&amp;ps=$ps$takep\">Yeni mesaj ($msn)</a><br/>";
$_v->html('');
$_v->html('<div class="user_info">');

$_v->wml('<br/>');
$_v->html("<p align=\"right\">");

if($_v->ver == "wml") {
$_v->action("arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk$takep");
} else {
$_v->html("<form action=\"arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk$takep\" method=\"post\" name=\"form\" id=\"form\">");}
//$_v->html("<span style=\"padding-left: 22px;\"><a href=\"javascript:void(0)\" onclick=\"ds=document.getElementById('qsm1'); if(ds.style.display=='none'){ds.style.display=''; }else{ds.style.display='none';}\"><img width=\"20\" height=\"20\" src=\"img/1f603.png\" alt=\"smayllar\" title=\"smaylikl&#601;r\"></a> ");
//$_v->html("<a href=\"javascript:eraseText()\"><img width=\"20\" height=\"20\" src=\"img/broom.png\" alt=\"broom\" title=\"T&#601;mizl&#601;\"/></a>");
if($_v->ver != "wml") {
#---------------------------------------------------------------------------------------------------------------------------------
echo "<div id=\"qsm1\" style=\"display:none\">---<br/>";
$base_smiles = "smile_v2/whatsapp";
$dir_smiles = opendir($base_smiles);
$array_smiles = array();
while ($file_smiles = readdir($dir_smiles))
{
if($file_smiles != "." and $file_smiles != ".." and $file_smiles != "post.dat" and $file_smiles != "Thumbs.db" and $file_smiles !=".htaccess")
{
$array_smiles[] = $file_smiles;
}
}
$max_smiles = count_files($base_smiles);
$total_smiles = count_files($base_smiles);
$start_smiles = (!isset($page_smiles)) ? 0 : ($page_smiles * $max_smiles);
$end_smiles = (!isset($page_smiles)) ? $max_smiles : ($start_smiles + $max_smiles);
if(ceil($total_smiles/$max_smiles) < $page_smiles)
{
$start_smiles=0;
$end_smiles=$max_smiles;
}
while ($start_smiles <= $end_smiles - 1)
{
if(!empty($array_smiles[$start_smiles]))
{
echo "<a href=\"javascript:tag('','%20.".strtok($array_smiles[$start_smiles], ".").".%20','')\" onclick=\"ds=document.getElementById('qsm1'); if(ds.style.display=='none'){ds.style.display=''; }else{ds.style.display='none';}\">
<img width=\"20\" height=\"20\" src=\"".$base_smiles."/".$array_smiles[$start_smiles]."\" alt=\"\"></a>";
$sayi = 0;
$sonuc = 9;
if($start_smiles == 9){
echo '<br/>';
}
while($sayi <= $end_smiles - 1){
$sonuc = $sonuc+30;
if($start_smiles == $sonuc){
echo '<br/>';
}
$sayi++;
}

}
++$start_smiles;
}
closedir($dir_smiles);

echo "<br/>---<br/>";
echo "</div>";
#---------------------------------------------------------------------------------------------------------------------------------
echo "</span><br/>";
}else{
$ref_smile = "{$ref}";
}
/*
$_v->html("<a href=\"javascript:void(0)\" onclick=\"ds=document.getElementById('qsm1'); if(ds.style.display=='none'){ds.style.display=''; }else{ds.style.display='none';}\">
<img width=\"20\" height=\"20\" src=\"img/1f603.png\" alt=\"smayllar\" title=\"smaylikl&#601;r\"></a> ");
*/
#==================ok


echo "<div id=\"qsm2\" style=\"display:none\">---<br/>";
$base_smiles = "smile_v2/ok";
$dir_smiles = opendir($base_smiles);
$array_smiles = array();
while ($file_smiles = readdir($dir_smiles))
{
if($file_smiles != "." and $file_smiles != ".." and $file_smiles != "post.dat" and $file_smiles != "Thumbs.db" and $file_smiles !=".htaccess")
{
$array_smiles[] = $file_smiles;
}
}
$max_smiles = count_files($base_smiles);
$total_smiles = count_files($base_smiles);
$start_smiles = (!isset($page_smiles)) ? 0 : ($page_smiles * $max_smiles);
$end_smiles = (!isset($page_smiles)) ? $max_smiles : ($start_smiles + $max_smiles);
if(ceil($total_smiles/$max_smiles) < $page_smiles)
{
$start_smiles=0;
$end_smiles=$max_smiles;
}
while ($start_smiles <= $end_smiles - 1)
{
if(!empty($array_smiles[$start_smiles]))
{
echo "<a href=\"javascript:tag('','%20.".strtok($array_smiles[$start_smiles], ".").".%20','')\" onclick=\"ds=document.getElementById('qsm2'); if(ds.style.display=='none'){ds.style.display=''; }else{ds.style.display='none';}\">
<img width=\"20\" height=\"20\" src=\"".$base_smiles."/".$array_smiles[$start_smiles]."\" alt=\"\"></a>";
$sayi = 0;
$sonuc = 9;
if($start_smiles == 9){
echo '<br/>';
}
while($sayi <= $end_smiles - 1){
$sonuc = $sonuc+30;
if($start_smiles == $sonuc){
echo '<br/>';
}
$sayi++;
}

}
++$start_smiles;
}
closedir($dir_smiles);

echo "<br/>---<br/>";
echo "</div>";

#---------------------------------------------------------------------------------------------------------------------------------

$_v->html(" <a href=\"javascript:void(0)\" onclick=\"ds=document.getElementById('qsm2'); if(ds.style.display=='none'){ds.style.display=''; }else{ds.style.display='none';}\">
<img width=\"20\" height=\"20\" src=\"smile_v2/big-smile.gif\" alt=\"smayllar\" title=\"smaylikl&#601;r\"></a> ");
#======================================









$_v->wml("</small></p><p align=\"left\"><small>");

$_v->html('<a href="arxiv.php?id='.$id.'&amp;ps='.$ps.'&amp;nk='.$nk.''.$takep.'&amp;l=themes"><img style="float:right;margin-right:10px" src ="img/pen.png" title="M&#246;vzunu d&#601;yi&#351;"/></a>');
//$_v->html(" <a href=\"smile.php?id=$id&amp;ps=$ps&amp;nk=$nk&amp;ref=$ref\"><img src=\"smile_v2/842.png\" alt=\"\"/></a></p>");
$rr = mysql_query("select count(`readd`) as `num` from `mesaj` where (`idtowhom` = '".$id."')and(`ininc` ='1')and(`readd` ='0')");
$aa = mysql_fetch_array($rr);
$num = $aa["num"];
print $_v->input(" | <a href=\"arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk&amp;ref=$ref\"><img src=\"img/ref.gif\" alt=\"\"/></a> | <a href=\"arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk&amp;metod=1\"><img src =\"img/send.png\"/></a> | <input name=\"message$ref_smile\" maxlength=\"600\" title=\"message\" id=\"ms\"/>");

print $_v->submit('G&#246;nder');
$_v->html('</div>');
$_v->html('</div><div class="menu">');


$_v->html("<link rel=\"stylesheet\" href=\"mesaj.css\" type=\"text/css\" />");

$msn = $row['msn'];
$readd = mysql_query("select count(`readd`) as `num` from `mesaj` where (`idtowhom` = '".$id."')and(`ininc` ='1')and(`readd` ='0')");
$a = mysql_fetch_array($readd);
$num = $a["num"];
if($msn!=$num)
{
mysql_query("UPDATE `users` SET `msn` = '".$num."' WHERE `id` = '".$id."';");
}




$_v->wml('<br/>'.$divide);

$next_id = next_id($all);
$page_sayi = 10;
//$r = mysql_query ("Select `who`,`time`,`readd`,`message`,`type`,`file` from `mesaj` WHERE (`idwho` = '".$nk."' and `idtowhom` ='".$id."') or (`idwho` = '".$id."' and `idtowhom` ='".$nk."') order by `time` desc LIMIT $next_id[start],$next_id[max_page];");
$r = mysql_query ("Select `who`,`time`,`readd`,`message` from `mesaj` WHERE (`idwho` = '".$nk."' and `idtowhom` ='".$id."') or (`idwho` = '".$id."' and `idtowhom` ='".$nk."') order by `time` desc LIMIT $next_id[start],$next_id[max_page];");
while($object = mysql_fetch_object($r))
{
//$status = ($object->readd==0) ? '<img src ="img/ok.png"/>' : null;

$class = ($object->who==$row['user']) ? 'my sms' : 'you sms';

if(($object->readd==0)){
$status = '<img src ="img/ok.png"/>';
}else{
$status = '<img src ="img/ok.png"/><img src ="img/ok.png"/>';
}

$_v->html('<div class="'.$class.'">');

if($object->type!=""){

if($object->type == "3gp" or $object->type == "mp4" or $object->type == "avi")
{
$file_scr = "<a href=\"userfile/".$object->file."\"><img src =\"screen.php?id=".$object->klu4."\"/></a>";
}
$type = $object->type;

if($type == 'jpg' or $type == 'JPG' or $type == 'gif' or $type == 'GIF' or $type == 'png' or $type == 'PNG' or $type == 'jpeg' or $type == 'JPEG')
{
$file_scr = "<a href=\"images.php?img=userfile/".$object->file."\"><img src =\"imag.php?id=".$object->klu4."\"/></a>";
}

if($type == 'mp3')
{
$file_scr = "<a href=\"userfile/".$object->file."\"><img src =\"img/mp3.png\"/></a>";
}

echo '<b>'.$object->who.'</b>:&#xbb; '.$file_scr.' ('.time_date($object->time,'1').') '.$status.'<br/>';
}else{

echo '<b>'.$object->who.'</b>:&#xbb; '.$object->message.' ('.time_date($object->time,'1').') '.$status.'<br/>';
}

$_v->html('</div><div style="clear: both;"></div>');
}


if($all==0)
{
echo "Mesaj Yoxdur...<br/>\n";

}
else
{
if($next_id['a'] > $page_sayi)
{
echo $divide;
echo page_next("arxiv.php?id=$id&amp;ps=$ps&amp;nk=$nk$takep", $next_id['a'], $page_sayi, $next_id['page']);
}
}



$_v->fsize2($fsize2);


} // end
$_v->wml("---<br/>");
$_v->html('</div><div class="user_info">');
if($rm!="")echo "<a href=\"chat.php?id=$id&amp;ps=$ps$takep\">&#199;ata qay&#305;t</a><br/>\n";
echo "<a href=\"on.php?id=$id&amp;ps=$ps$takep\">Online Mesaj</a><br/>\n";
echo "<a href=\"enter.php?id=$id&amp;ps=$ps$takep\">Dehliz</a><br/>\n";
$_v->end('1',$link);
$_v->html('</div>');
include("a.php");
$_v->fsize2($fsize2);
ob_end_flush();
?>
Master_Yeraz Master_Yeraz [Off] [#] (19.09.2016 / 16:27)
print $_v->submit2('G&#246;nder');
$_v->html('</div>');
$_v->html('</div><div class="menu">');

Bunu yoxla hele
StopNick StopNick [Off] [#] (19.09.2016 / 16:45)
# Master_Yeraz (19.09.2016 / 16:27)
print $_v->submit2('G&#246;nder');
$_v->html('</div>');
$_v->html('</div><div class="menu">');

Bunu yoxla hele
Gondər dən aşağı ağarir submit2 edende
StopNick StopNick [Off] [#] (19.09.2016 / 17:40)
dvm.
@Hikmet@ @Hikmet@ [Off] [#] (19.09.2016 / 19:44)
print $_v->input("<input name=\"message$ref\" maxlength=\"600\" title=\"message\"/>").' ';
}


print $_v->submit('G&#246;nder');
buna bax duzelis et
StopNick StopNick [Off] [#] (19.09.2016 / 21:17)
# @Hikmet@ (19.09.2016 / 19:44)
print $_v->input("<input name=\"message$ref\" maxlength=\"600\" title=\"message\"/>").' ';
}


print $_v->submit('G&#246;nder');
buna bax duzelis et
post 1# de atdigimi, elə duzeliş et at baxim mumkunse
StopNick StopNick [Off] [#] (19.09.2016 / 23:46)
dvm..
StopNick StopNick [Off] [#] (20.09.2016 / 17:51)
davam
  Arxiv.php komek
Cəmi: 8 Cavab
Mövzunu vip et
Mövzuya Baxanlar (40 nəfər)
Müellife göre filtreleme
Mövzunu Yükle

Arxiv.php komek

Arxiv.php komek

Rol.Az