Help With Funmobile Pop Ups Parse Eror

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

    Help With Funmobile Pop Ups Parse Eror

    I TRY N TRY N TRY BUT ALWAYS END UP WITH A PARSE EROR CAN ANYONE TELL ME HOW TO FIX IT??

    Parse error: parse error, unexpected '{' in /home/www/***************/popus.php on line 59

    <?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;];
    $ses = $_GET[&#39;ses&#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_ses($ses);
    $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;ses=$ses\">Home</a>";
    echo "</p>";
    echo webfoot();
    exit();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_ses($ses);
    $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;ses=$ses\">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_ses($ses);

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


    echo "

    -

    <a href=\"index.php?action=main&amp;ses=$ses\">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_ses($ses);

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


    echo "

    -

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

    }
    }

    ?>

    #2
    I TRY N TRY N TRY BUT ALWAYS END UP WITH A PARSE EROR CAN ANYONE TELL ME HOW TO FIX IT??

    Parse error: parse error, unexpected &#39;{&#39; in /home/www/***************/popus.php on line 59

    <?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;];
    $ses = $_GET[&#39;ses&#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_ses($ses);
    $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;ses=$ses\">Home</a>";
    echo "</p>";
    echo webfoot();
    exit();

    }else{
    echo waphead($stitle);
    echo "<p align=\"center\">";
    $whonick = getnick_uid($who);
    $byuid = getuid_ses($ses);
    $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;ses=$ses\">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_ses($ses);

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

    -

    <a href=\"index.php?action=main&amp;ses=$ses\">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_ses($ses);

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

    -

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

    }
    }

    ?>[/b]

    Comment


      #3
      <?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;];
      $ses = $_GET[&#39;ses&#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_ses($ses);
      $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;ses=$ses\">Home</a>";
      echo "</p>";
      echo webfoot();
      exit();

      }else{
      echo waphead($stitle);
      echo "<p align=\"center\">";
      $whonick = getnick_uid($who);
      $byuid = getuid_ses($ses);
      $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;ses=$ses\">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_ses($ses);

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

      -

      <a href=\"index.php?action=main&amp;ses=$ses\">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_ses($ses);

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

      -

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

      }
      }

      ?>

      Comment


        #4
        <?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;];
        $ses = $_GET[&#39;ses&#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_ses($ses);
        $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;ses=$ses\">Home</a>";
        echo "</p>";
        echo webfoot();
        exit();

        }else{
        echo waphead($stitle);
        echo "<p align=\"center\">";
        $whonick = getnick_uid($who);
        $byuid = getuid_ses($ses);
        $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;ses=$ses\">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_ses($ses);

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

        -

        <a href=\"index.php?action=main&amp;ses=$ses\">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_ses($ses);

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

        -

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

        }
        }

        ?>

        Comment


          #5
          here
          Attached Files

          Comment


            #6
            u should check opening { n closing }. use this

            Comment


              #7
              Right click - Save as.
              Attached Files

              Comment


                #8
                someone plz help with setting popup in funmobile plz share the script
                Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                Comment


                  #9
                  there is an error in popus.php

                  Comment

                  Working...
                  X