Pop Up Eror For Funmobile Wml N Xhtml

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

    Pop Up Eror For Funmobile Wml N Xhtml

    Hi I Can SomeOne Please Tell ME wHATS wrong With This? I get A parse Eror

    <?php

    include("config.php");
    include("core.php");

    if($mime== WEB)
    {
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

    }else{
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    }
    $bcon = connectdb();
    if (!$bcon)
    {
    if($mime== WEB)
    {
    echo dberror($mime);

    }else{
    echo dberror($mime);
    }
    }
    $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $uth = $getuthm[0];
    if(!$uth=="")
    {
    $uthm = "$uth";
    }else{
    $uthm = "default.css";
    }
    $action = $_GET[&#39;action&#39;];
    $sid = $_GET[&#39;sid&#39;];
    $page = $_GET[&#39;page&#39;];
    $who = $_GET[&#39;who&#39;];
    $pmid = $_GET[&#39;pmid&#39;];
    if((islogged($ses)==false)||($uid==0))
    {
    if($mime== WEB)
    {
    echo notlogged($mime);

    }else{
    echo notlogged($mime);
    }

    }



    if(isipbanned($uip,$ubr))
    {

    if(!isshield(getuid_ses($ses)))
    {
    if($mime== WEB)
    {
    echo useripbanned($mime,$uip,$ubr);

    }else{
    echo useripbanned($mime,$uip,$ubr);
    }

    }
    }

    //echo isbanned($uid);
    if(isbanned($uid))
    {
    if($mime== WEB)
    {
    echo userbanned($mime,$uid);

    }else{
    echo userbanned($mime,$uid);
    }

    }



    else if($action=="send")
    {
    addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();

    $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;,
    byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");



    echo "<img src=\"images/sent.gif\" alt=\"O\"/>
    ";
    echo "Popup Message Sent to $whonick!
    ";

    echo "
    ---
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo webfoot();
    exit();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();

    $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");



    echo "<img src=\"images/sent.gif\" alt=\"O\"/>
    ";
    echo "Popup Message Sent to $whonick!
    ";


    echo "
    ---
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo wapfoot();
    exit();

    }
    else if($action=="sendto")
    {
    $who = $_get[&#39;who&#39;];

    addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons
    ";

    $who = $_get[&#39;who&#39;];


    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);

    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\"
    method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "</go>
    ";


    echo "

    -

    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo webfoot();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons
    ";

    $who = $_get[&#39;who&#39;];


    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);

    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "</go></anchor>
    ";


    echo "

    -

    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo wapfoot();

    }
    }

    ?>

    #2
    Hi I Can SomeOne Please Tell ME wHATS wrong With This? I get A parse Eror

    <?php

    include("config.php");
    include("core.php");

    if($mime== WEB)
    {
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

    }else{
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    }
    $bcon = connectdb();
    if (!$bcon)
    {
    if($mime== WEB)
    {
    echo dberror($mime);

    }else{
    echo dberror($mime);
    }
    }
    $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $uth = $getuthm[0];
    if(!$uth=="")
    {
    $uthm = "$uth";
    }else{
    $uthm = "default.css";
    }
    $action = $_GET[&#39;action&#39;];
    $sid = $_GET[&#39;sid&#39;];
    $page = $_GET[&#39;page&#39;];
    $who = $_GET[&#39;who&#39;];
    $pmid = $_GET[&#39;pmid&#39;];
    if((islogged($ses)==false)||($uid==0))
    {
    if($mime== WEB)
    {
    echo notlogged($mime);

    }else{
    echo notlogged($mime);
    }

    }



    if(isipbanned($uip,$ubr))
    {

    if(!isshield(getuid_ses($ses))) <- INCORECT
    {
    if($mime== WEB)
    {
    echo useripbanned($mime,$uip,$ubr);

    }else{
    echo useripbanned($mime,$uip,$ubr);
    }

    }
    }

    //echo isbanned($uid);
    if(isbanned($uid))
    {
    if($mime== WEB)
    {
    echo userbanned($mime,$uid);

    }else{
    echo userbanned($mime,$uid);
    }

    }
    else if($action=="send")
    {
    addonline(getuid_ses($ses),"Sending PoP-Up MSG",""); <- INCORECT
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();

    $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;,
    byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
    echo "<img src=\"images/sent.gif\" alt=\"O\"/>
    ";
    echo "Popup Message Sent to $whonick!
    ";

    echo "
    ---
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo webfoot();
    exit();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();

    $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
    echo "<img src=\"images/sent.gif\" alt=\"O\"/>
    ";
    echo "Popup Message Sent to $whonick!
    ";


    echo "
    ---
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo wapfoot();
    exit();

    }
    else if($action=="sendto")
    {
    $who = $_get[&#39;who&#39;];

    addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons
    ";

    $who = $_get[&#39;who&#39;];
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);

    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\"
    method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "</go>
    ";
    echo "

    -

    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo webfoot();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons
    ";

    $who = $_get[&#39;who&#39;];
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);

    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "</go></anchor>
    ";
    echo "

    -

    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo wapfoot();

    }
    }

    ?>[/b]

    Dude, the script above is all wrong!!! it has wrong varibles... Is this for lavalair/RW scrip or Funmobile, cause it has coding for both inside.. notice the sid varibles, thats for RW and lavalair, and the ses varibles at the top is for funmobile.. these varibles goes and catch the session.. You&#39;ll have to rewrite it to the correct script.. Hope this helps

    Comment

    Working...
    X