Error Gb

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error Gb

    need to fix something error
    i need captcha for this one

    captcha before posting to gb


    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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(&#39;REMOTE_ADDR&#39;);
    $page = $_GET["page"];
    $sid = mysql_fetch_array(mysql_query("SELECT * FROM gb_users WHERE id=&#39;".$sid."&#39;"));
    $name = mysql_fetch_array(mysql_query("SELECT name FROM gb_users WHERE id=&#39;".$sid."&#39;"));
    $back = mysql_fetch_array(mysql_query("SELECT wapbase FROM gb_users WHERE id=&#39;".$sid."&#39;"));
    $uid = mysql_fetch_array(mysql_query("SELECT uid FROM gb_users WHERE id=&#39;".$sid."&#39;"));

    $welcomemsg = mysql_fetch_array(mysql_query("SELECT welcome FROM gb_users WHERE id=&#39;".$sid."&#39;"));


    if($gb=="")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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=&#39;$sid&#39; 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&amp;sid=$sid&amp;uid=$uid &amp;pass=$pass\">Sign GB</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Get your own Guestbook Free!</a>
    ";
    echo "</p>";
    echo "</body>";

    }

    }
    else if($gb=="sign")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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&amp;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=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }
    else if($gb=="post")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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=="")||($emai l=="")||($cp==""))
    {
    echo "Don&#39;t leave them blank!";
    }else{
    $res = mysql_query("INSERT INTO gb_post SET uid=&#39;".$sid."&#39; , name=&#39;".$name."&#39;, msg=&#39;".$msg."&#39;, ipko=&#39;".$ip."&#39;, browser=&#39;".$brws."&#39;, siteko=&#39;".$wapsite."&#39;, email=&#39;".$email."&#39;, postdate=&#39;".$flipdate."&#39;, number=&#39;".$cp."&#39;, date=&#39;".time()."&#39;");
    if($res)
    {
    echo "Posted succesfully!

    ";
    }else{
    echo " Error!

    ";
    }
    }

    echo "<a href=\"index.php?gb=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }
    else if($gb=="manage")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }

    echo "<p align=\"center\">";
    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&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Delete to Resset GB Post</a>
    ";
    echo "<a href=\"index.php?gb=update&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Update your Account Details</a>
    ";
    echo "<a href=\"index.php?gb=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }
    else if($gb=="delete")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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=&#39;".$sid."&#39;");
    if($delsx)
    {
    echo "Ok Deleted Successfully!

    ";
    }else{
    echo "Entry was not deleted!

    ";
    }

    echo "<a href=\"index.php?gb=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }
    else if($gb=="update")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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&amp;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=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }
    else if($gb=="userupdate")
    {
    if(($sid!=="") && ($sid=="0"))

    {
    echo "<p align=\"center\">";
    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 "</p>";
    echo "</body>";
    echo "</html>";
    exit();

    }else{
    echo "<p align=\"center\">";
    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=="")||($ema il=="")||($cp==""))
    {
    echo "Don&#39;t leave them blank!";
    }else{
    $res = mysql_query("UPDATE gb_user SET name=&#39;".$name."&#39;, pass=&#39;".$pass."&#39;, wapbase=&#39;".$wapbase."&#39;, email=&#39;".$email."&#39;, postdate=&#39;".$flipdate."&#39;, number=&#39;".$cp."&#39;, date=&#39;".time()."&#39;");

    if($res)
    {
    echo "UPDATED succesfully!

    ";
    }else{
    echo "Error Updating!

    ";
    }
    }

    echo "<a href=\"index.php?gb=&amp;sid=$sid&amp;uid=$uid&amp ;pass=$pass\">Main GB Index</a>
    ";
    echo "<a href=\"index.php?gb=manage&amp;sid=$sid&amp;uid=$u id&amp;pass=$pass\">Manage GB</a>
    ";
    echo "<a href=\"register.php?gb=reg\">Register</a>
    ";
    echo "</p>";
    echo "</body>";

    }
    }

    ?>

    </html></div>
    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.
Working...
X