<?php
header("Cache-Control: no-cache, must-revalidate");
include("config.inc.php");
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<wml>";
$sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'");
$owner=(mysql_result($sqlthing,0,"owner"));
$pmname=(mysql_result($sqlthing,0,"pmname"));
$buddyname=(mysql_result($sqlthing,0,"buddyname")) ;
echo "<card id=\"card1\" title=\"$pmname Inbox\">";
$id=1;
?>
[img]pmmenu.gif[/img]
<?php
$datime=time();
echo "<onevent type=\"ontimer\">\n";
echo "<go href=\"pm.php?password=$password&username=$use rname&datime=$datime\"/>\n";
echo "</onevent>\n";
echo "<timer value=\"80\"/>";
echo "<p align=\"center\">";
$Connect = mysql_connect("$server","$user","$pass");
mysql_select_db("$dbname");
$result=mysql_query("select * from members where username='$username' and password='$password'");
$number_of_rows = mysql_num_rows($result);
if ($number_of_rows>0)
{
include("check.inc.php");
}
if ($ok>0)
{
include("online.inc.php");
$yesno = "no";
$result = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username' and has_it_been_read='$yesno'");
$number_of_rows = mysql_num_rows($result);
$new_pms = $number_of_rows;
if(($number_of_rows>0)){
echo "you have $new_pms new $pmname(s)";
echo "
<a title=\"Enter\" href=\"pminbox.php?username=$username&limit=0& amp;password=$password\">Read $pmname</a>";
}
if(($number_of_rows<1)){
$result2 = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username'");
$number_of_rows2 = mysql_num_rows($result2);
$too_add = $number_of_rows2 * -1;
if(($number_of_rows2>0)){
echo "<a title=\"Enter\" href=\"pminbox.php?username=$username&password =$password&limit=0&number_of_rows2=$number _of_rows2&too_add=$too_add\">$pmname Inbox($number_of_rows/$number_of_rows2)</a>
";
echo "<a title=\"Enter\" href=\"pmdelete.php?username=$username&amount= 0&password=$password\">Delete All Alerts(s)</a>
";
}
echo "<a title=\"Enter\" href=\"sendpm.php?username=$username&password= $password&to_username=\">Send $pmname</a>";
$result2 = mysql_query("SELECT * FROM privatemessage WHERE from_username = '$username' order by date_sent desc");
$number_of_rows = mysql_num_rows($result2);
if(($number_of_rows>0)){
echo "
<a title=\"Enter\" href=\"beensent.php?username=$username&passwor d=$password&username2=&page=0\">Outbox[$number_of_rows]</a>";
}
echo "
<a title=\"Enter\" href=\"ignoreuser.php?username=$username&passw ord=$password&username2=&view=1\">Ignore Options</a>";
$count1=0;
echo "
<a title=\"Enter\" href=\"pmonoff.php?username=$username&amount=0 &password=$password\">Turn[on/off]</a>";
$result=mysql_query("select * from buddylist where username1='$username'");
$number_of_rows = mysql_num_rows($result);
$count=0;
while ($count<$number_of_rows){
$name=(mysql_result($result,$count,"username2"));
$result2=mysql_query("select * from latest where ip='$name'");
$number_of_rows2 = mysql_num_rows($result2);
if($number_of_rows2>0){
$count1=$count1+1;
}
$count=$count+1;
}
$result5=mysql_query("select * from buddylist where username1='$username'");
$number_of_rows5 = mysql_num_rows($result5);
echo "
<a title=\"Enter\" href=\"buddylist.php?username=$username&passwo rd=$password\">Buddies[$count1/$number_of_rows5]</a>";
echo "
";
echo "<a title=\"Enter\" href=\"whosonline.php?username=$username&passw ord=$password\">$uonline Users Online</a>
";
echo "<a title=\"Enter\" href=\"forumindex.php?username=$username&passw ord=$password\">Forums</a>";
echo "
<a title=\"Enter\" href=\"alertlists.php?username=$username&passw ord=$password\">crazy pms</a>";
echo "
<a title=\"Enter\" href=\"welcome.php?username=$username&password =$password\">Main Menu</a>";
}}
echo "</p>";
echo "</card>";
echo "</wml>";
?>
cant get the pmmenu.gif to stay central to the screen . it is on the left hand side. if i put echo "<p align=\"center\">"; in i get an error.
help.
header("Cache-Control: no-cache, must-revalidate");
include("config.inc.php");
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<wml>";
$sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'");
$owner=(mysql_result($sqlthing,0,"owner"));
$pmname=(mysql_result($sqlthing,0,"pmname"));
$buddyname=(mysql_result($sqlthing,0,"buddyname")) ;
echo "<card id=\"card1\" title=\"$pmname Inbox\">";
$id=1;
?>
[img]pmmenu.gif[/img]
<?php
$datime=time();
echo "<onevent type=\"ontimer\">\n";
echo "<go href=\"pm.php?password=$password&username=$use rname&datime=$datime\"/>\n";
echo "</onevent>\n";
echo "<timer value=\"80\"/>";
echo "<p align=\"center\">";
$Connect = mysql_connect("$server","$user","$pass");
mysql_select_db("$dbname");
$result=mysql_query("select * from members where username='$username' and password='$password'");
$number_of_rows = mysql_num_rows($result);
if ($number_of_rows>0)
{
include("check.inc.php");
}
if ($ok>0)
{
include("online.inc.php");
$yesno = "no";
$result = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username' and has_it_been_read='$yesno'");
$number_of_rows = mysql_num_rows($result);
$new_pms = $number_of_rows;
if(($number_of_rows>0)){
echo "you have $new_pms new $pmname(s)";
echo "
<a title=\"Enter\" href=\"pminbox.php?username=$username&limit=0& amp;password=$password\">Read $pmname</a>";
}
if(($number_of_rows<1)){
$result2 = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username'");
$number_of_rows2 = mysql_num_rows($result2);
$too_add = $number_of_rows2 * -1;
if(($number_of_rows2>0)){
echo "<a title=\"Enter\" href=\"pminbox.php?username=$username&password =$password&limit=0&number_of_rows2=$number _of_rows2&too_add=$too_add\">$pmname Inbox($number_of_rows/$number_of_rows2)</a>
";
echo "<a title=\"Enter\" href=\"pmdelete.php?username=$username&amount= 0&password=$password\">Delete All Alerts(s)</a>
";
}
echo "<a title=\"Enter\" href=\"sendpm.php?username=$username&password= $password&to_username=\">Send $pmname</a>";
$result2 = mysql_query("SELECT * FROM privatemessage WHERE from_username = '$username' order by date_sent desc");
$number_of_rows = mysql_num_rows($result2);
if(($number_of_rows>0)){
echo "
<a title=\"Enter\" href=\"beensent.php?username=$username&passwor d=$password&username2=&page=0\">Outbox[$number_of_rows]</a>";
}
echo "
<a title=\"Enter\" href=\"ignoreuser.php?username=$username&passw ord=$password&username2=&view=1\">Ignore Options</a>";
$count1=0;
echo "
<a title=\"Enter\" href=\"pmonoff.php?username=$username&amount=0 &password=$password\">Turn[on/off]</a>";
$result=mysql_query("select * from buddylist where username1='$username'");
$number_of_rows = mysql_num_rows($result);
$count=0;
while ($count<$number_of_rows){
$name=(mysql_result($result,$count,"username2"));
$result2=mysql_query("select * from latest where ip='$name'");
$number_of_rows2 = mysql_num_rows($result2);
if($number_of_rows2>0){
$count1=$count1+1;
}
$count=$count+1;
}
$result5=mysql_query("select * from buddylist where username1='$username'");
$number_of_rows5 = mysql_num_rows($result5);
echo "
<a title=\"Enter\" href=\"buddylist.php?username=$username&passwo rd=$password\">Buddies[$count1/$number_of_rows5]</a>";
echo "
";
echo "<a title=\"Enter\" href=\"whosonline.php?username=$username&passw ord=$password\">$uonline Users Online</a>
";
echo "<a title=\"Enter\" href=\"forumindex.php?username=$username&passw ord=$password\">Forums</a>";
echo "
<a title=\"Enter\" href=\"alertlists.php?username=$username&passw ord=$password\">crazy pms</a>";
echo "
<a title=\"Enter\" href=\"welcome.php?username=$username&password =$password\">Main Menu</a>";
}}
echo "</p>";
echo "</card>";
echo "</wml>";
?>
cant get the pmmenu.gif to stay central to the screen . it is on the left hand side. if i put echo "<p align=\"center\">"; in i get an error.
help.
Comment