need to fix something error i need captcha for this one
captcha before posting to gb
CODE<?php
include("config.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>$server</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
echo "</head>";
echo "<body>";
$gb = $_GET["gb"]; $sid = $_GET["sid"]; $uid = $_GET["uid"]; $pass = $_GET["pass"]; $brws = explode("/",$HTTP_USER_AGENT); $ip=getenv('REMOTE_ADDR'); $page = $_GET["page"]; $sid = mysql_fetch_array(mysql_query("SELECT * FROM gb_users WHERE id='".$sid."'")); $name = mysql_fetch_array(mysql_query("SELECT name FROM gb_users WHERE id='".$sid."'")); $back = mysql_fetch_array(mysql_query("SELECT wapbase FROM gb_users WHERE id='".$sid."'")); $uid = mysql_fetch_array(mysql_query("SELECT uid FROM gb_users WHERE id='".$sid."'"));
$welcomemsg = mysql_fetch_array(mysql_query("SELECT welcome FROM gb_users WHERE id='".$sid."'"));
if($gb=="") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Welcome to $name "; print ("$flipdate"); echo "
"; echo "Guest Book! "; echo "$welcomemsg "; $ok = mysql_fetch_array(mysql_query("SELECT id, name, msg, ip, browser, siteko, email, postdate, number FROM gb_post WHERE uid='$sid' ORDER BY date DESC LIMIT 0,15"));
$mensahe= "
<a href="$ok[5]">$ok[1]</a>: $ok[2] Email: $ok[6] Contact: $ok[8] Browser: $ok[4] IP: $ok[3] Time: $ok[7] ";
echo"$mensahe";
echo "<a href=\"$back\">Back to $name wapsite</a>
"; echo "<a href="index.php?gb=sign&sid=$sid&uid=$uid&pass=$pass">Sign GB</a> "; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Get your own Guestbook Free!</a> "; echo " "; echo "</body>";
}
} else if($gb=="sign") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Welcome to $name "; print ("$flipdate"); echo "
"; echo "Post to Guest Book! "; echo "Your ip:$ip Your Browser:$brws "; echo "<form action="index.php?gb=post&sid=$sid" method="post">"; echo "Name: <input name="name" maxlength="20"/> "; echo "Message: "; echo "Site: <input name="wapsite" maxlength="20"/> "; echo "Email: <input name="email" maxlength="30"/> "; echo "Contacts: <input name="cp" maxlength="20"/> "; echo "<input type="submit" value="Send"/>"; echo "</form> "; echo "<a href="index.php?gb=&sid=$sid&uid=$uid&pass=$pass">Main GB Index</a> "; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
} else if($gb=="post") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Posting to GB $name "; print ("$flipdate"); echo "
"; $name = trim($_POST["name"]); $msg = trim($_POST["msg"]); $wapsite = trim($_POST["wapsite"]); $email = trim($_POST["email"]); $cp = trim($_POST["cp"]); if(($name=="")||($msg=="")||($wapsite=="")||($email=="")||($cp=="")) { echo "Don't leave them blank!"; }else{ $res = mysql_query("INSERT INTO gb_post SET uid='".$sid."' , name='".$name."', msg='".$msg."', ipko='".$ip."', browser='".$brws."', siteko='".$wapsite."', email='".$email."', postdate='".$flipdate."', number='".$cp."', date='".time()."'"); if($res) { echo "Posted succesfully!
"; }else{ echo " Error!
"; } }
echo "<a href=\"index.php?gb=&sid=$sid&uid=$uid&pass=$pass\">Main GB Index</a>
"; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
} else if($gb=="manage") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
if(($uid=="") && ($pass==""))
{
echo "**Welcome Guest to $server**
"; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="index.php?gb=log">LogIn to Manage your GB</a> "; echo " "; echo "</body>"; echo "</html>"; exit(); }
echo "
"; echo "Welcome to $name "; print ("$flipdate"); echo "
"; echo "Manage Guest Book! "; echo "Your ip:$ip Your Browser:$brws "; echo "<a href="index.php?gb=delete&sid=$sid&uid=$uid&pass=$pass">Delete to Resset GB Post</a> "; echo "<a href="index.php?gb=update&sid=$sid&uid=$uid&pass=$pass">Update your Account Details</a> "; echo "<a href="index.php?gb=&sid=$sid&uid=$uid&pass=$pass">Main GB Index</a> "; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
} else if($gb=="delete") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Welcome to $name "; print ("$flipdate"); echo "
"; echo "Delete All Post to Guest Book! "; echo "Your ip:$ip Your Browser:$brws "; $delsx = mysql_query("DELETE FROM gb_post where uid='".$sid."'"); if($delsx) { echo "Ok Deleted Successfully!
"; }else{ echo "Entry was not deleted!
"; }
echo "<a href=\"index.php?gb=&sid=$sid&uid=$uid&pass=$pass\">Main GB Index</a>
"; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
} else if($gb=="update") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Welcome to $name "; print ("$flipdate"); echo "
"; echo "Update Account Details! "; echo "Your ip:$ip Your Browser:$brws "; echo "<form action="index.php?gb=userupdate&sid=$sid" method="post">"; echo "Name: <input name="name" maxlength="20"/> "; echo "Pass: <input name="pass" maxlength="20"/> "; echo "Link Back: <input name="wapbase" maxlength="30"/> "; echo "Email: <input name="email" maxlength="30"/> "; echo "Contacts: <input name="cp" maxlength="20"/> "; echo "<input type="submit" value="Send"/>"; echo "</form> ";
echo "<a href=\"index.php?gb=&sid=$sid&uid=$uid&pass=$pass\">Main GB Index</a>
"; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
} else if($gb=="userupdate") { if(($sid!=="") && ($sid=="0"))
{
echo "
"; echo "Welcome Guest to $server "; print ("$flipdate"); echo "
"; echo "You need to register! Get your own wap Guestbook! "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>"; echo "</html>"; exit();
}else{
echo "
"; echo "Update GB Info $name "; print ("$flipdate"); echo "
"; $name = trim($_POST["name"]); $pass = trim($_POST["pass"]); $wapbase = trim($_POST["wapbase"]); $email = trim($_POST["email"]); $cp = trim($_POST["cp"]); if(($name=="")||($pass=="")||($wapbase=="")||($email=="")||($cp=="")) { echo "Don't leave them blank!"; }else{ $res = mysql_query("UPDATE gb_user SET name='".$name."', pass='".$pass."', wapbase='".$wapbase."', email='".$email."', postdate='".$flipdate."', number='".$cp."', date='".time()."'");
if($res)
{
echo "UPDATED succesfully!
"; }else{ echo "Error Updating!
"; } }
echo "<a href=\"index.php?gb=&sid=$sid&uid=$uid&pass=$pass\">Main GB Index</a>
"; echo "<a href="index.php?gb=manage&sid=$sid&uid=$uid&pass=$pass">Manage GB</a> "; echo "<a href="register.php?gb=reg">Register</a> "; echo " "; echo "</body>";
}
}
?>
</html>Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.