Lavalair Pop Ups

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

    Lavalair Pop Ups

    I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did

    #2
    I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did[/b]
    working version been posted so go find it
    i dont see any reason why same thing should be posted again...
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

    Comment


      #3
      I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did[/b]
      make pop.php copy and paste the code in it
      Code:
      <?php
      $uid = getuid_sid($sid);
      $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popup WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
        if($nopop[0]>0)
      {
      $sql ="SELECT * FROM popup where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT  1";
      $pd = mysql_query($sql);
      while ($pop = mysql_fetch_array($pd))
        {
      $id = mysql_fetch_array(mysql_query("SELECT touid FROM popup WHERE touid=&#39;".$uid."&#39;"));
        if($uid==$id[0])
        {
          $chread = mysql_query("UPDATE popup SET unread=&#39;0&#39; WHERE id=&#39;".$pop[0]."&#39;");
        }
      $dtop = date("d/m/y - H:i:s",$pop[5]);
      $by = getnick_uid($pop[2]);
      $msg = parsepm($pop[1], $sid);
      echo "
      [b]Popup-PM
      by
       $by: $dtop
      
       $msg [/b]
      ";
      echo "<a href=\"popup.php?action=send&who=$pop[2]&sid=$sid\">RELPY</a>";
      echo "
      =======";
        }
      }
      echo "
      ";
      ?>
      then make popup.php.copy and paste the code in it
      Code:
      <?php
      header("Content-type: text/vnd.wap.wml");
      header("Cache-Control: no-store, no-cache, must-revalidate");
      echo("<?xml version=\"1.0\"?>");
      echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
      ?>
      <wml>
      <?php
      include("config.php");
      include("core.php");
      connectdb();
      $action = $_GET[&#39;action&#39;];
      $sid = $_GET[&#39;sid&#39;];
      $who = $_GET[&#39;who&#39;];
      $msg = $_POST["msg"];
      if(islogged($sid)==false)
      {
          echo "<card id=\"main\" title=\"$sitename\">";
            echo "<p align=\"center\">";
            echo "You are not logged in
      ";
            echo "Or Your session has been expired
      
      ";
            echo "<a href=\"index.php\">Login</a>";
            echo "</p>";
            echo "</card>";
            echo "</wml>";
            exit();
      }
      $uid = getuid_sid($sid);
      if(isbanned($uid))
          {
              echo "<card id=\"main\" title=\"$sitename\">";
            echo "<p align=\"center\">";
            echo "<img src=\"images/notok.gif\" alt=\"x\"/>
      ";
            echo "You are [b]Banned[/b]
      ";
            $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
            $remain = $banto[0]- time();
            $rmsg = gettimemsg($remain);
            echo "Time to finish your penalty: $rmsg
      
      ";
            //echo "<a href=\"index.php\">Login</a>";
            echo "</p>";
            echo "</card>";
            echo "</wml>";
            exit();
          }
      if($action=="send"){
      
      addonline(getuid_sid($sid),"Sending pop-up MSG","");
      echo "<card id=\"main\" title=\"Popup-PM\">";
            echo "<p align=\"center\">";
      echo "$getbuttons 
      
      ";
      $whonick = getnick_uid($who);
      $byuid = getuid_sid($sid);
      echo "Sending Popup-PM to ".$whonick."
      ";
      echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
      ";
      echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
      echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
      echo "</go></anchor>[/size]";
      echo "
      
      <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p>";
      echo "</card>";
      }
      else if($action=="sendto")
      {
      addonline(getuid_sid($sid),"Sending pop-up MSG","");
      echo "<card id=\"main\" title=\"Send Pop-up\">";
      echo "<p align=\"center\">";
      $whonick = getnick_uid($who);
      $byuid = getuid_sid($sid);
      $tm = time();
      $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
      echo "Popup Message Sent to $whonick!
      ";
      echo "
      
      <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p>";
      echo "</card>";
      }
      ?>
      </wml>
      and finally read it just
      [attachment=1583:readme.php]
      Attached Files

      Comment


        #4
        thanks bro...u helped me alot....learning php was fun over the few months got used to it..thanks to this site and the helpful and not so helpful ppl....with great staff like Gumslone and amylee

        Comment


          #5
          does this work for xhtml if not can i av the xhtml popup please

          Comment


            #6
            Convert i convert it ..Its not difficult..I dont see why ul have a problem wit converting from wml to html ..Stop being lazy bro if u have bugs converting i wil help plus the others wil help also

            Comment


              #7
              does this work for xhtml if not can i av the xhtml popup please[/b]

              Pm me your headers for your site with and stye of your from so i can add the same headers for you

              Code:
              <?php
              echo("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>");
              echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
              echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
              
              echo "<head>";
              
              print "
              <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />
              <meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
              <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
              ";
              echo "
              <style type=\"text/css\">
              Place your css here 
              </style></head><body>
              ";
              ?>
              <?php
              include("config.php");
              include("core.php");
              connectdb();
              $action = $_GET[&#39;action&#39;];
              $sid = $_GET[&#39;sid&#39;];
              $who = $_GET[&#39;who&#39;];
              $msg = $_POST["msg"];
              if(islogged($sid)==false)
              {
                    echo "<title>PopUp</title>";
                    echo "<p align=\"center\">";
                    echo "You are not logged in
              ";
                    echo "Or Your session has been expired
              
              ";
                    echo "<a href=\"index.php\">Login</a>";
                    echo "</p>";
                    echo "</body>";
                    echo "</html>";
                    exit();
              }
              $uid = getuid_sid($sid);
              if(isbanned($uid))
                  {
                    echo "<title>PopUp</title>";
                    echo "<p align=\"center\">";
                    echo "<img src=\"images/notok.gif\" alt=\"x\"/>
              ";
                    echo "You are [b]Banned[/b]
              ";
                    $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                    $remain = $banto[0]- time();
                    $rmsg = gettimemsg($remain);
                    echo "Time to finish your penalty: $rmsg
              
              ";
                    //echo "<a href=\"index.php\">Login</a>";
                    echo "</p>";
                    echo "</body>";
                    echo "</html>";
                    exit();
                  }
              if($action=="send"){
              
              addonline(getuid_sid($sid),"Sending pop-up MSG","");
              echo "<title>PopUp</title>";
                    echo "<p align=\"center\">";
              echo "$getbuttons 
              
              ";
              $whonick = getnick_uid($who);
              $byuid = getuid_sid($sid);
              echo "Sending Popup-PM to ".$whonick."
              ";
              echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
              ";
              echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
              echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
              echo "</go></anchor>[/size]";
              echo "
              
              <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
              echo "</p>";
              echo "</body>";
              }
              else if($action=="sendto")
              {
              addonline(getuid_sid($sid),"Sending pop-up MSG","");
              echo "<title>PopUp</title>";
              echo "<p align=\"center\">";
              $whonick = getnick_uid($who);
              $byuid = getuid_sid($sid);
              $tm = time();
              $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
              echo "Popup Message Sent to $whonick!
              ";
              echo "
              
              <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
              echo "</p>";
              echo "</body>";
              }
              ?>
              </html>
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                xhtml version of methos script

                create popup.php

                <?php
                echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                ?>
                <?php
                include("config.php");
                include("core.php");
                include("xhtmlfunctions.php");
                connectdb();
                $action = $_GET[&#39;action&#39;];
                $sid = $_GET[&#39;sid&#39;];
                $who = $_GET[&#39;who&#39;];
                $msg = $_POST["msg"];
                if(islogged($sid)==false)
                {
                ?>
                <?php


                addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action");
                //saveuinfo($sid);
                $pstyle = gettheme($sid);
                echo xhtmlhead("Pop Up",$pstyle);
                echo "<p align=\"center\">";
                echo "You are not logged in
                ";
                echo "Or Your session has been expired

                ";
                echo "<a href=\"index.php\">Login</a>";
                echo "</p>";
                echo xhtmlfoot();
                exit();
                }
                $uid = getuid_sid($sid);
                if(isbanned($uid))
                {
                ?>
                <?php

                addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action");
                //saveuinfo($sid);
                $pstyle = gettheme($sid);
                echo xhtmlhead("Pop Up",$pstyle); echo "<p align=\"center\">";
                echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                ";
                echo "You are Banned
                ";
                $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                $remain = $banto[0]- time();
                $rmsg = gettimemsg($remain);
                echo "Time to finish your penalty: $rmsg

                ";
                //echo "<a href=\"index.php\">Login</a>";
                echo "</p>";
                echo xhtmlfoot();
                exit();
                }
                if($action=="send"){
                ?>
                <?php

                addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action");
                //saveuinfo($sid);
                $pstyle = gettheme($sid);
                echo xhtmlhead("Pop pm",$pstyle);
                echo "<p align=\"center\">";
                echo "$getbuttons

                ";
                $whonick = getnick_uid($who);
                $byuid = getuid_sid($sid);
                echo "Sending Popup-PM to ".$whonick."
                ";
                echo "<form action=\"popup.php?action=sendto&who=$who&sid=$sid \" method=\"post\">";
                echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
                ";

                echo "<input type=\"submit\" value=\"SEND\"/>";
                echo "</form>";
                echo "
                ";

                echo "
                ";


                echo "

                <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";
                echo xhtmlfoot();
                }
                else if($action=="sendto")
                {
                ?>
                <?php

                addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action");
                //saveuinfo($sid);
                $pstyle = gettheme($sid);
                echo xhtmlhead("Pop Up",$pstyle);
                echo "<h5 align=\"center\">";
                $whonick = getnick_uid($who);
                $byuid = getuid_sid($sid);
                $tm = time();
                $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39; , touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                echo "Popup Message Sent to $whonick!</h5>
                ";
                echo "

                <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";
                echo xhtmlfoot();
                }
                ?>
                </html>


                the pop.php u can leave the same ...

                Comment


                  #9
                  thanks bro

                  Comment


                    #10
                    No probs

                    Comment


                      #11
                      XML Parsing Error: not well-formed
                      Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124
                      Line Number 12, Column 56:Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124
                      -------------------------------------------------------^

                      i got this wen tryin to send popup on methos wml version help

                      Comment


                        #12
                        XML Parsing Error: not well-formed
                        Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124
                        Line Number 12, Column 56:Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124
                        -------------------------------------------------------^

                        i got this wen tryin to send popup on methos wml version help[/b]
                        just use my codes it work in wml

                        Comment


                          #13
                          Pm me your headers for your site with and stye of your from so i can add the same headers for you

                          Code:
                          <?php
                          echo("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>");
                          echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                          echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
                          
                          echo "<head>";
                          
                          print "
                          <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />
                          <meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
                          <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
                          ";
                          echo "
                          <style type=\"text/css\">
                          Place your css here 
                          </style></head><body>
                          ";
                          ?>
                          <?php
                          include("config.php");
                          include("core.php");
                          connectdb();
                          $action = $_GET[&#39;action&#39;];
                          $sid = $_GET[&#39;sid&#39;];
                          $who = $_GET[&#39;who&#39;];
                          $msg = $_POST["msg"];
                          if(islogged($sid)==false)
                          {
                                echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                                echo "You are not logged in
                          ";
                                echo "Or Your session has been expired
                          
                          ";
                                echo "<a href=\"index.php\">Login</a>";
                                echo "</p>";
                                echo "</body>";
                                echo "</html>";
                                exit();
                          }
                          $uid = getuid_sid($sid);
                          if(isbanned($uid))
                              {
                                echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                                echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                          ";
                                echo "You are [b]Banned[/b]
                          ";
                                $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                                $remain = $banto[0]- time();
                                $rmsg = gettimemsg($remain);
                                echo "Time to finish your penalty: $rmsg
                          
                          ";
                                //echo "<a href=\"index.php\">Login</a>";
                                echo "</p>";
                                echo "</body>";
                                echo "</html>";
                                exit();
                              }
                          if($action=="send"){
                          
                          addonline(getuid_sid($sid),"Sending pop-up MSG","");
                          echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                          echo "$getbuttons 
                          
                          ";
                          $whonick = getnick_uid($who);
                          $byuid = getuid_sid($sid);
                          echo "Sending Popup-PM to ".$whonick."
                          ";
                          echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
                          ";
                          echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
                          echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
                          echo "</go></anchor>[/size]";
                          echo "
                          
                          <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                          echo "</p>";
                          echo "</body>";
                          }
                          else if($action=="sendto")
                          {
                          addonline(getuid_sid($sid),"Sending pop-up MSG","");
                          echo "<title>PopUp</title>";
                          echo "<p align=\"center\">";
                          $whonick = getnick_uid($who);
                          $byuid = getuid_sid($sid);
                          $tm = time();
                          $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                          echo "Popup Message Sent to $whonick!
                          ";
                          echo "
                          
                          <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                          echo "</p>";
                          echo "</body>";
                          }
                          ?>
                          </html>
                          [/b]
                          its a mixture of xhtml and wml because postfield n anchor are wml tags.correct one is
                          Code:
                          <?php
                          echo("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>");
                          echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                          echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
                          
                          echo "<head>";
                          
                          print "
                          <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />
                          <meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
                          <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
                          ";
                          echo "
                          <style type=\"text/css\">
                          Place your css here 
                          </style></head><body>
                          ";
                          ?>
                          <?php
                          include("config.php");
                          include("core.php");
                          connectdb();
                          $action = $_GET[&#39;action&#39;];
                          $sid = $_GET[&#39;sid&#39;];
                          $who = $_GET[&#39;who&#39;];
                          $msg = $_POST["msg"];
                          if(islogged($sid)==false)
                          {
                                echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                                echo "You are not logged in
                          ";
                                echo "Or Your session has been expired
                          
                          ";
                                echo "<a href=\"index.php\">Login</a>";
                                echo "</p>";
                                echo "</body>";
                                echo "</html>";
                                exit();
                          }
                          $uid = getuid_sid($sid);
                          if(isbanned($uid))
                              {
                                echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                                echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                          ";
                                echo "You are [b]Banned[/b]
                          ";
                                $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                                $remain = $banto[0]- time();
                                $rmsg = gettimemsg($remain);
                                echo "Time to finish your penalty: $rmsg
                          
                          ";
                                //echo "<a href=\"index.php\">Login</a>";
                                echo "</p>";
                                echo "</body>";
                                echo "</html>";
                                exit();
                              }
                          if($action=="send"){
                          
                          addonline(getuid_sid($sid),"Sending pop-up MSG","");
                          echo "<title>PopUp</title>";
                                echo "<p align=\"center\">";
                          echo "$getbuttons 
                          
                          ";
                          $whonick = getnick_uid($who);
                          $byuid = getuid_sid($sid);
                          echo "Sending Popup-PM to ".$whonick."
                          ";
                          echo "[size="1"]<form action=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
                          echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
                          ";
                          echo "<input type=\"submit\" value=\"SEND\"/>";
                          echo "</form>";
                          echo "
                          ";
                          echo "[/size]";
                          echo "
                          
                          <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                          echo "</p>";
                          echo "</body>";
                          }
                          else if($action=="sendto")
                          {
                          addonline(getuid_sid($sid),"Sending pop-up MSG","");
                          echo "<title>PopUp</title>";
                          echo "<p align=\"center\">";
                          $whonick = getnick_uid($who);
                          $byuid = getuid_sid($sid);
                          $tm = time();
                          $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                          echo "Popup Message Sent to $whonick!
                          ";
                          echo "
                          
                          <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                          echo "</p>";
                          echo "</body>";
                          }
                          ?>
                          </html>

                          Comment


                            #14
                            Code:
                            <?php
                            header("Content-type: text/vnd.wap.wml");
                            header("Cache-Control: no-store, no-cache, must-revalidate");
                            echo("<?xml version=\"1.0\"?>");
                            echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                            ?>
                            <wml>
                            <?php
                            include("config.php");
                            include("core.php");
                            connectdb();
                            $action = $_GET[&#39;action&#39;];
                            $sid = $_GET[&#39;sid&#39;];
                            $who = $_GET[&#39;who&#39;];
                            $msg = $_POST["msg"];
                            if(islogged($sid)==false)
                            {
                                echo "<card id=\"main\" title=\"$sitename\">";
                                  echo "<p align=\"center\">";
                                  echo "You are not logged in
                            ";
                                  echo "Or Your session has been expired
                            
                            ";
                                  echo "<a href=\"index.php\">Login</a>";
                                  echo "</p>";
                                  echo "</card>";
                                  echo "</wml>";
                                  exit();
                            }
                            $uid = getuid_sid($sid);
                            if(isbanned($uid))
                                {
                                    echo "<card id=\"main\" title=\"$sitename\">";
                                  echo "<p align=\"center\">";
                                  echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                            ";
                                  echo "You are [b]Banned[/b]
                            ";
                                  $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                                  $remain = $banto[0]- time();
                                  $rmsg = gettimemsg($remain);
                                  echo "Time to finish your penalty: $rmsg
                            
                            ";
                                  //echo "<a href=\"index.php\">Login</a>";
                                  echo "</p>";
                                  echo "</card>";
                                  echo "</wml>";
                                  exit();
                                }
                            if($action=="send"){
                            
                            addonline(getuid_sid($sid),"Sending pop-up MSG","");
                            echo "<card id=\"main\" title=\"Popup-PM\">";
                                  echo "<p align=\"center\">";
                            echo "$getbuttons 
                            
                            ";
                            $whonick = getnick_uid($who);
                            $byuid = getuid_sid($sid);
                            echo "Sending Popup-PM to ".$whonick."
                            ";
                            echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
                            ";
                            echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
                            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
                            echo "</go></anchor>[/size]";
                            echo "
                            
                            <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                            echo "Home</a>";
                            echo "</p>";
                            echo "</card>";
                            }
                            else if($action=="sendto")
                            {
                            addonline(getuid_sid($sid),"Sending pop-up MSG","");
                            echo "<card id=\"main\" title=\"Send Pop-up\">";
                            echo "<p align=\"center\">";
                            $whonick = getnick_uid($who);
                            $byuid = getuid_sid($sid);
                            $tm = time();
                            $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                            echo "Popup Message Sent to $whonick!
                            ";
                            echo "
                            
                            <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                            echo "Home</a>";
                            echo "</p>";
                            echo "</card>";
                            }
                            ?>
                            </wml>
                            this wat i use for the wml the xhtml convert by flame work fine

                            Comment


                              #15
                              Put amp; after &thats
                              Code:
                              popup.php?action=sendto&amp;who=$who&amp;$sid=sid\"method

                              Comment

                              Working...
                              X