Alerts/popup

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

    #91
    hey bro thanks alot i got it to work finally
    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


      #92
      and when i click on this link

      echo"<a href=\"index.php?action=viewbud&amp;who=$who&amp;s id=$sid\">Send pop up msg</a>
      "

      it takes me to main index page where u login[/b]



      u might nt follow the directions of my readme.txt.do u think PHP will work as ur own wish?

      add this codes

      in ur index.php

      else if($action=="viewbud")
      {
      addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&amp;who=$who");
      echo "<card id=\"main\" title=\"buddylist\">";

      echo "

      ";

      $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; AND a.id!=&#39;".$uid."&#39;";

      $items = mysql_query($sql);

      while ($item = mysql_fetch_array($items))
      {

      if(isonline($item[2]))
      {
      $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

      $plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid=&#39;".$item[2]."&#39;"));
      $uact .= $plc[0];
      }else{
      $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
      $uact = "Last Active: ";
      $ladt = date("d m y-H:i:s", $item[0]);
      $uact .= $ladt;
      }
      }


      $whonick = getnick_uid($who);
      if(arebuds($uid, $who)==true)
      {
      echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">$whonick</a>
      ";
      echo "($uact)
      ";
      echo "pop-up message:
      ";
      echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
      echo "<anchor>Send<go href=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";

      echo "<postfield name=\"who\" value=\"$who\"/>";
      echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

      echo "</go></anchor>";

      echo "
      <a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
      echo "
      <a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=del\">- remove from buddylist</a>";
      }else{
      echo "$whonick is not a buddy";

      }


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

      }




      before

      else{
      /////////////////////////Main Page Here
      echo "<card id=\"main\" title=\"nicechat\">";
      echo "<p align=\"center\">";
      echo "<img src=\"images/logo.gif\" alt=\"*\"/>
      ";
      echo "Welcome to our online music community
      ";
      $onu = getnumonline();
      echo "Members Inside: $onu


      ";

      echo "LOGIN or REGISTER to enjoy live chat, blogs, polls, mesage boards, online server games, and so much more. Absolutely free!";
      echo "
      <a href=\"http:///yoursite.php\">Your OWN Personal Site</a>
      ";
      echo "<a href=\"http:///rssservice.php\">RSS music Feeds</a>

      ";



      echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/>
      ";
      echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/>
      ";
      echo "<anchor>LOGIN<go href=\"login.php\" method=\"get\">";
      echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";
      echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";
      echo "</go></anchor>
      ";
      echo "";
      echo "
      <a href=\"register.php\">REGISTER</a>
      ";
      echo "<a href=\"index.php?action=terms&amp;sid=$sid\">TERMS OF USE</a>

      ";
      echo "
      ";

      echo "";


      echo "<a href=\"http://\">nicechat(v2)</a>
      ";
      echo "© hardstyles
      ";
      echo "</p>";
      echo "</card>";
      }


      ?>

      </wml>

      Comment


        #93
        hey bro thanks alot i got it to work finally [/b]


        ok,nxt time never forget to follow the directions of read me.txt

        Comment


          #94
          jackk bro im converting ur script in xhtml but somethin not right could anyone of u help me out wots wrng in here coz when i try to send popup it says buddy not in list

          -------------------
          pops.php

          <?php


          $uid = getuid_sid($sid);
          $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
          if($nopop[0]>0)
          {
          $sql ="SELECT * FROM ibwf_pops where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT 0, 1";
          $pd = mysql_query($sql);
          while ($pop = mysql_fetch_array($pd))
          {
          $id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid=&#39;".$uid."&#39;"));
          if($uid==$id[0])
          {
          $chread = mysql_query("UPDATE ibwf_pops 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 "$by: $msg - $dtop
          ";
          echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
          echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
          echo "<input type=\"submit\" value=\"send pop up\"/>";


          echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
          echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

          echo "</go></form></small>";

          echo "
          ---
          ";
          }
          }

          --------------
          popup.php

          <?php


          include("config.php");
          include("core.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>$stitle</title>";
          echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
          echo "</head>";

          echo "<body>";
          connectdb();
          $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($sid)==false)
          {

          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>";
          exit();
          }
          $uid = getuid_sid($sid);
          if(isbanned($uid))
          {

          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>";
          exit();
          }


          if($action=="send")
          {
          $who=$_POST["who"];
          $msg=$_POST["msg"];

          addonline(getuid_sid($sid),"Sending pop-up MSG","");
          echo "<card id=\"main\" title=\"Pop-Up Sent\">";

          echo "<p align=\"center\">";
          $whonick = getnick_uid($who);
          $byuid = getuid_sid($sid);
          $tm = time();
          if(arebuds($byuid, $who)==true)
          {
          $res = mysql_query("INSERT INTO ibwf_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
          if($res)
          {
          include("pops.php");
          echo "<img src=\"images/ok.gif\" alt=\"O\"/>
          ";
          echo "Popup Message Sent to $whonick!
          ";
          }else{
          echo "<img src=\"images/notok.gif\" alt=\"X\"/>
          ";
          echo "Can&#39;t Send Message to $whonick

          ";
          }
          }else{
          echo "Name is not in buddylist!";
          }
          echo "
          ---
          <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";
          echo "</body>";
          }
          else if($action=="archive")
          {
          echo "<card id=\"main\" title=\"xxx\">";

          echo "</body>";
          }

          else{
          /////////////////////////Main Page Here
          echo "<card id=\"main\" title=\"xxx\">";
          echo "<p align=\"center\">";

          echo "</p>";
          echo "</body>";
          }


          ?>

          </html>

          --------------------
          index.php

          else if($action=="viewbud")
          {
          addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&amp;who=$who");
          echo "<card id=\"main\" title=\"buddylist\">";

          echo "

          ";

          $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; AND a.id!=&#39;".$uid."&#39;";

          $items = mysql_query($sql);

          while ($item = mysql_fetch_array($items))
          {

          if(isonline($item[2]))
          {
          $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

          $plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid=&#39;".$item[2]."&#39;"));
          $uact .= $plc[0];
          }else{
          $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
          $uact = "Last Active: ";
          $ladt = date("d m y-H:i:s", $item[0]);
          $uact .= $ladt;
          }
          }


          $whonick = getnick_uid($who);
          if(arebuds($uid, $who)==true)
          {
          echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">$whonick</a>
          ";
          echo "($uact)
          ";
          echo "pop-up message:
          ";
          echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
          echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
          echo "<input type=\"submit\" value=\"SEND\"/>";

          echo "<postfield name=\"who\" value=\"$who\"/>";
          echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

          echo "</go></form>";

          //echo "
          <a href=\"index.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
          echo "
          <a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
          echo "
          <a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=del\">- remove from buddylist</a>";
          }else{
          echo "$whonick is not a buddy";

          }


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

          }

          someone help me please
          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


            #95
            jackk bro im converting ur script in xhtml but somethin not right could anyone of u help me out wots wrng in here coz when i try to send popup it says buddy not in list

            -------------------
            pops.php

            <?php
            $uid = getuid_sid($sid);
            $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
            if($nopop[0]>0)
            {
            $sql ="SELECT * FROM ibwf_pops where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT 0, 1";
            $pd = mysql_query($sql);
            while ($pop = mysql_fetch_array($pd))
            {
            $id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid=&#39;".$uid."&#39;"));
            if($uid==$id[0])
            {
            $chread = mysql_query("UPDATE ibwf_pops 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 "$by: $msg - $dtop
            ";
            echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
            echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
            echo "<input type=\"submit\" value=\"send pop up\"/>";
            echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

            echo "</go></form></small>";

            echo "
            ---
            ";
            }
            }

            --------------
            popup.php

            <?php
            include("config.php");
            include("core.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>$stitle</title>";
            echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
            echo "</head>";

            echo "<body>";
            connectdb();
            $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($sid)==false)
            {

            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>";
            exit();
            }
            $uid = getuid_sid($sid);
            if(isbanned($uid))
            {

            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>";
            exit();
            }
            if($action=="send")
            {
            $who=$_POST["who"];
            $msg=$_POST["msg"];

            addonline(getuid_sid($sid),"Sending pop-up MSG","");
            echo "<card id=\"main\" title=\"Pop-Up Sent\">";

            echo "<p align=\"center\">";
            $whonick = getnick_uid($who);
            $byuid = getuid_sid($sid);
            $tm = time();
            if(arebuds($byuid, $who)==true)
            {
            $res = mysql_query("INSERT INTO ibwf_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
            if($res)
            {
            include("pops.php");
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>
            ";
            echo "Popup Message Sent to $whonick!
            ";
            }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>
            ";
            echo "Can&#39;t Send Message to $whonick

            ";
            }
            }else{
            echo "Name is not in buddylist!";
            }
            echo "
            ---
            <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
            echo "Home</a>";
            echo "</p>";
            echo "</body>";
            }
            else if($action=="archive")
            {
            echo "<card id=\"main\" title=\"xxx\">";

            echo "</body>";
            }

            else{
            /////////////////////////Main Page Here
            echo "<card id=\"main\" title=\"xxx\">";
            echo "<p align=\"center\">";

            echo "</p>";
            echo "</body>";
            }
            ?>

            </html>

            --------------------
            index.php

            else if($action=="viewbud")
            {
            addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&amp;who=$who");
            echo "<card id=\"main\" title=\"buddylist\">";

            echo "

            ";

            $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; AND a.id!=&#39;".$uid."&#39;";

            $items = mysql_query($sql);

            while ($item = mysql_fetch_array($items))
            {

            if(isonline($item[2]))
            {
            $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

            $plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid=&#39;".$item[2]."&#39;"));
            $uact .= $plc[0];
            }else{
            $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
            $uact = "Last Active: ";
            $ladt = date("d m y-H:i:s", $item[0]);
            $uact .= $ladt;
            }
            }
            $whonick = getnick_uid($who);
            if(arebuds($uid, $who)==true)
            {
            echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">$whonick</a>
            ";
            echo "($uact)
            ";
            echo "pop-up message:
            ";
            echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
            echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
            echo "<input type=\"submit\" value=\"SEND\"/>";

            echo "<postfield name=\"who\" value=\"$who\"/>";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

            echo "</go></form>";

            //echo "
            <a href=\"index.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
            echo "
            <a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
            echo "
            <a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=del\">- remove from buddylist</a>";
            }else{
            echo "$whonick is not a buddy";

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

            }

            someone help me please[/b]



            is my scripts working i mean in wml?

            Comment


              #96
              brother its workin good in wml but in xhtml it aint could you please help me convert it in xhtml?
              i m getting error when i try to send pop up it says user not in buddylist
              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


                #97
                brother its workin good in wml but in xhtml it aint could you please help me convert it in xhtml?
                i m getting error when i try to send pop up it says user not in buddylist[/b]
                ok i will give u an xhtml popup,but u hv to wait 4 that

                Comment


                  #98
                  someone please help me fix the error in popup that i converted into xhtml im unable send pop up it says not in buddy list
                  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


                    #99
                    waitin for help here aswell;)
                    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


                      waitin for help here aswell;)[/b]

                      i dnt that u hv converted the viewbud action for index.php or nt

                      Comment


                        waitin for help here aswell;)[/b]

                        i dnt that u hv converted the viewbud action for index.php into xhtml or nt

                        Comment


                          bro i guess i have done almost everythin i don&#39;t know if i missed out something please help me out with the converting into xhtml plz
                          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


                            post ur xhtml code then

                            Comment


                              here it is linkx7 brother
                              the error is when i click on send pop up button it says buddy not in list



                              pops.php

                              <?php


                              $uid = getuid_sid($sid);
                              $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
                              if($nopop[0]>0)
                              {
                              $sql ="SELECT * FROM ibwf_pops where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT 0, 1";
                              $pd = mysql_query($sql);
                              while ($pop = mysql_fetch_array($pd))
                              {
                              $id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid=&#39;".$uid."&#39;"));
                              if($uid==$id[0])
                              {
                              $chread = mysql_query("UPDATE ibwf_pops 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 "$by: $msg - $dtop
                              ";
                              echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
                              echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
                              echo "<input type=\"submit\" value=\"send pop up\"/>";


                              echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
                              echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

                              echo "</go></form></small>";

                              echo "
                              ---
                              ";
                              }
                              }

                              --------------
                              popup.php

                              <?php


                              include("config.php");
                              include("core.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>$stitle</title>";
                              echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
                              echo "</head>";

                              echo "<body>";
                              connectdb();
                              $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($sid)==false)
                              {

                              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>";
                              exit();
                              }
                              $uid = getuid_sid($sid);
                              if(isbanned($uid))
                              {

                              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>";
                              exit();
                              }


                              if($action=="send")
                              {
                              $who=$_POST["who"];
                              $msg=$_POST["msg"];

                              addonline(getuid_sid($sid),"Sending pop-up MSG","");
                              echo "<card id=\"main\" title=\"Pop-Up Sent\">";

                              echo "<p align=\"center\">";
                              $whonick = getnick_uid($who);
                              $byuid = getuid_sid($sid);
                              $tm = time();
                              if(arebuds($byuid, $who)==true)
                              {
                              $res = mysql_query("INSERT INTO ibwf_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                              if($res)
                              {
                              include("pops.php");
                              echo "<img src=\"images/ok.gif\" alt=\"O\"/>
                              ";
                              echo "Popup Message Sent to $whonick!
                              ";
                              }else{
                              echo "<img src=\"images/notok.gif\" alt=\"X\"/>
                              ";
                              echo "Can&#39;t Send Message to $whonick

                              ";
                              }
                              }else{
                              echo "Name is not in buddylist!";
                              }
                              echo "
                              ---
                              <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                              echo "Home</a>";
                              echo "</p>";
                              echo "</body>";
                              }
                              else if($action=="archive")
                              {
                              echo "<card id=\"main\" title=\"xxx\">";

                              echo "</body>";
                              }

                              else{
                              /////////////////////////Main Page Here
                              echo "<card id=\"main\" title=\"xxx\">";
                              echo "<p align=\"center\">";

                              echo "</p>";
                              echo "</body>";
                              }


                              ?>

                              </html>

                              --------------------
                              in

                              index.php

                              else if($action=="viewbud")
                              {
                              addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&amp;who=$who");
                              echo "<card id=\"main\" title=\"buddylist\">";

                              echo "

                              ";

                              $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; AND a.id!=&#39;".$uid."&#39;";

                              $items = mysql_query($sql);

                              while ($item = mysql_fetch_array($items))
                              {

                              if(isonline($item[2]))
                              {
                              $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

                              $plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid=&#39;".$item[2]."&#39;"));
                              $uact .= $plc[0];
                              }else{
                              $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                              $uact = "Last Active: ";
                              $ladt = date("d m y-H:i:s", $item[0]);
                              $uact .= $ladt;
                              }
                              }


                              $whonick = getnick_uid($who);
                              if(arebuds($uid, $who)==true)
                              {
                              echo "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$who\">$whonick</a>
                              ";
                              echo "($uact)
                              ";
                              echo "pop-up message:
                              ";
                              echo "<form action=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
                              echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
                              echo "<input type=\"submit\" value=\"SEND\"/>";

                              echo "<postfield name=\"who\" value=\"$who\"/>";
                              echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

                              echo "</go></form>";

                              //echo "
                              <a href=\"index.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
                              echo "
                              <a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">+ send message</a>";
                              echo "
                              <a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=del\">- remove from buddylist</a>";
                              }else{
                              echo "$whonick is not a buddy";

                              }


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

                              }
                              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


                                ok this is for XHTML

                                make popups.php

                                <?php
                                $uid = getuid_sid($sid);
                                $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE
                                touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
                                if($nopop[0]>0)
                                {
                                $sql ="SELECT * FROM fun_pops 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 fun_pops WHERE
                                touid=&#39;".$uid."&#39;"));
                                if($uid==$id[0])
                                {
                                $chread = mysql_query("UPDATE fun_pops 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 = htmlspecialchars($pop[1]);
                                echo "
                                $by: $msg - $dtop
                                ";
                                echo "<a href=\"lists.php
                                ?action=sendto&amp;sid=$sid&amp;who=$pop[2]\"><font color=\"00FF00\">RELPY</a>";
                                echo "
                                <font color=\"0000FF\">---</font>
                                ";
                                }
                                }
                                ?>
                                Then Make popus.php

                                <?php
                                include("xhtmlfunctions.php");
                                header("Content-type: text/html; charset=ISO-8859-1");
                                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");
                                connectdb();
                                $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($sid)==false)
                                {
                                $pstyle = gettheme1("1");
                                echo xhtmlhead("FlareZone",$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))
                                {
                                $pstyle = gettheme1("1");
                                echo xhtmlhead("FlareZone",$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();
                                }
                                else if($action=="send")
                                {
                                addonline(getuid_sid($sid),"Sending pop-up MSG","");
                                $pstyle = gettheme($sid);
                                echo xhtmlhead("FlareZone Pop ups",$pstyle);
                                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 "<font color=\"00FF00\">Popup Message Sent to $whonick!</font>
                                ";

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

                                }
                                else if($action=="sendto"){

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

                                addonline(getuid_sid($sid),"Sending pop-up MSG","");
                                $pstyle = gettheme($sid);
                                echo xhtmlhead("FlareZone Pop ups",$pstyle);
                                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 xhtmlfoot();
                                ?>
                                Add This To List.php

                                ///////////////////////////////////////////POP UPS

                                else if($action=="sendto"){

                                addonline(getuid_sid($sid),"Sending pop-up MSG","");
                                $pstyle = gettheme($sid);
                                echo xhtmlhead("Pop Up MSG",$pstyle);
                                echo "<p align=\"center\">";
                                echo "$getbuttons

                                ";
                                $whonick = getnick_uid($who);
                                $byuid = getuid_sid($sid);
                                echo "Sending to ".$whonick."
                                ";
                                echo "<form action=\"popus.php?action=send&amp;who=$who&amp;si d=$sid\"
                                method=\"post\">";
                                echo "<input name=\"msg\" maxlength=\"150\"/>
                                ";

                                echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
                                echo "<postfield name=\"who\" value=\"$(who)\"/>";
                                echo "<input type=&#39;submit&#39; value=&#39;Send&#39;/></form>
                                ";
                                echo "

                                -

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

                                }
                                And Use The SQL That Was Posted By Subzero ,[/b]
                                will this code work on funmobile script?please instruct how for both wml and xhtml
                                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

                                Working...
                                X