File size: 2.49Kb
<?php
include("captainsafecore.php");
include("captainsafeconfig.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
echo "
<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
<meta name=\"description\" content=\"ultijen :)\">
<meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\">
";
echo "</head>";
echo "<body>";
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$text = $_POST["text"];
$who = $_POST["who"];
if(islogged($sid)==false)
{
echo "<p align=\"center\">";
echo "You are not logged in<br/>";
echo "Or Your session has been expired<br/><br/>";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
exit();
}
else if($action=="send")
{
$who=$_POST["who"];
$msg=$_POST["msg"];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
if(arebuds($byuid, $who)==true)
{
$res = mysql_query("INSERT INTO ibwf_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
include("pops.php");
echo "<img src=\"images/sent.gif\" alt=\"O\"/><br/>";
echo "Popup Message Sent to $whonick!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/>";
echo "Can't Send Message to $whonick<br/><br/>";
}
}else{
echo "Name is not in Buddy List!";
}
echo "<br/>---<br/><a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
}
else if($action=="archive")
{
}
else{
addonline(getuid_sid($sid),"Lost in inbox lol","");
echo "<p align=\"center\">";
echo "I don't know how you got in here, but there's nothing to show<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}
echo "</body>";
echo "</html>";
?>