ok here pop up coding i want to add if isspam option so that spam words gets reported in modlog anyone help please add it
Code:
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are [b]Banned[/b]
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg
";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"sent!!\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
else if($action=="sendto"){
$who = $_get['who'];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
}
echo "</p>";
echo "</card>";
?>
</wml>
///////////////////////////////////////////////////
else if($action=="sendto"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending to ".$whonick."
";
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
echo "</p>";
echo "</card>";
}
////////////////////////////////////////////////////////
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM fun_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM fun_pops WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE fun_pops SET unread='0' WHERE id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = htmlspecialchars($pop[1]);
echo "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---";
}
}
?>

Comment