any 1 got the bud request script where you accept decline bud requests on the sp script in html if not wml just be as good
Bud Request
Collapse
X
-
i did do it with the welcome part but i clicked to go into it but error came up[/b]
this is what i chaned the welcome.php file to
<?php
header("Content-type: text/vnd.wap.wml");
include("config.inc.php");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
$time=date("H:i");
echo "<wml>";
$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");
$time=date("H:i");
echo "<card id=\"card1\" title=\"immwap\">";
echo "<p align=\"left\">";
?>
[img]logo.gif[/img]
<?php
echo"Hello $username";
$sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'");
$visit=(mysql_result($sqlthing,0,"visit"));
echo"
this is your $visit. visit
";
$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")) ;
$admin=(mysql_result($sqlthing,0,"admin"));
$forumadmin=(mysql_result($sqlthing,0,"forumadmin" ));
$yesno = "no";
$result = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username' and has_it_been_read='$yesno' and spamfree='1'");
$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($owner=="1")
{
echo "
<a href=\"ownerlogin.php?username=$username&passw ord=$password\">+ owner tools</a>
";
echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&am p;G=admin&A=00&room=ADMIN&password=$pa ssword\">+ admin chat</a>";
}
if($admin=="1")
{
echo "
<a href=\"adminlogin.php?username=$username&passw ord=$password\">+ admin tools</a>
";
echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&am p;G=admin&A=00&room=ADMIN&password=$pa ssword\">+ admin chat</a>";
}
if($forumadmin=="1" and $admin=="0")
{
echo "<a title=\"Enter\" href=\"modlogin.php?username=$username&passwor d=$password\">+ mod tools</a>
";
echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&am p;G=admin&A=00&room=ADMIN&password=$pa ssword\">+ admin chat</a>";
}
if($owner=="1")
{
$sql = "SELECT * FROM spamfilter";
$result = mysql_query($sql);
$number_of_rows2 = mysql_num_rows($result);
$new_spam = $number_of_rows2;
if(($number_of_rows2>0)){
echo "
<a title=\"Enter\" href=\"spaminbox.php?username=$username&limit= 0&password=$password\">**$new_spam spam alerts**</a>";
}}
if($uonline>1)
{
$users="Users";
}
if($uonline<2)
{
$users="User";
}
{$result2 = mysql_query("SELECT * FROM inbox WHERE to_who = '$username'");
$number_of_rows2 = mysql_num_rows($result2);
$too_add = $number_of_rows2 * -1;
$yesno = "no";
$result = mysql_query("SELECT * FROM inbox WHERE to_who = '$username' and been_read='$yesno'");
$number_of_rows = mysql_num_rows($result);
echo "
<a title=\"Enter\" href=\"inbox.php?username=$username&password=$ password&limit=0\">+ inbox($number_of_rows/$number_of_rows2)</a>";
}
$count1=0;
$result=mysql_query("select * from members");
$number_of_rows = mysql_num_rows($result);
$count=0;
while ($count<$number_of_rows){
$name=(mysql_result($result,$count,"username"));
$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 members where username='$username'");
$number_of_rows5 = mysql_num_rows($result5);
echo "
<a href=\"whosonline.php?username=$username&passw ord=$password\">+ who's online ($count1/$number_of_rows)</a>";
echo "
<a href=\"new.php?username=$username&password=$pa ssword\">+ latest members</a>";
$count1=0;
$result=mysql_query("select * from buddylist where username1='$username' and approved='yes'");
$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 href=\"buddylist.php?username=$username&passwo rd=$password\">+ buddies ($count1/$number_of_rows)</a>";
$result=mysql_query("select * from buddylist where username2='$username' and approved='no'");
$number_of_rows = mysql_num_rows($result);
if ($number_of_rows>0)
{
echo "<a href=\"buddyrequest.php?username=$username&pas sword=$password\"> (!)</a>";
}
echo "
<a href=\"chatindex.php?username=$username&passwo rd=$password\">+ my.chat</a>";
echo "
<a title=\"Enter\" href=\"games.php?username=$username&password=$ password\">+ my.fun</a>";
echo "
<a href=\"sitevote.php?username=$username&passwor d=$password&thepage=1&forum=sitevote&f orumid=1716\">+ my.vote</a>";
echo "
<a href=\"extras1.php?username=$username&password =$password\">+ user info</a>";
echo "
<a href=\"forumindex.php?username=$username&passw ord=$password\">+ forum</a>";
echo "
<a href=\"pm.php?username=$username&password=$pas sword\">+ messenger</a>";
echo "
<a href=\"sites.php?username=$username&password=$ password\">+ sites4sale</a>";
echo "
<a href=\"logout.php?username=$username&password= $password\">+ logout</a>";
$sql = "UPDATE profile SET onsite='main menu' WHERE username='$username'";
$result = mysql_query($sql);
}
echo "</p>";
echo "</card>";
echo "</wml>";
@mysql_close($Connect);
?>
Comment
-
and this is the error i get
Error!
XML parsing failed
XML parsing failed: syntax error (Line: 1, Character: 120)
Reparse document as HTML
Error:mismatched end-tag
Specification:http://www.w3.org/TR/REC-xml/
1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml></p></card></wml>
Comment
-
Guest
Comment
-
Guest -
lol think i got it set up i just need sort it out now cos i put it in a folder called buddy so everything buddy/buddyadd.php etc etc lol then need to try convert it to html 4 my web version[/b]
darkdesire i dont think i got it working proper as i not got an option to decline or approve the requests
Comment
Comment