Methos Shop Xhtm

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

    Methos Shop Xhtm

    I have the wml code...any1 have the xhtml of this version???
    tnks
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    #2
    here shop.php
    Code:
    <?php
    include("../blocked.php");
    include("config.php");
    include("core.php");
    header("Cache-Control: no-cache, must-revalidate");            // Prevent caching, HTTP/1.1
    header("Pragma: no-cache");
    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    $bcon = connectdb();
    if (!$bcon)
    {
        echo "<head>";
        echo "<title>Error!!!</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
        echo "</head>";
        echo "<body>";
        echo "<p align=\"center\">";
        echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
        echo "[b][b]Error! Cannot Connect To Database...[/b][/b]
    
    ";
        echo "This error happens usually when backing up the database, please be patient...";
        echo "</p>";
        echo "</body>";
        echo "</html>";
        exit();
    }
    
    $brws = explode("/",$HTTP_USER_AGENT);
    $ubr = $brws[0];
    $uip = getip();
    $action = $_GET["action"];
    $sid = $_GET["sid"];
    $page = $_GET["page"];
    $who = $_GET["who"];
    $uid = getuid_sid($sid);
    $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name=&#39;sitename&#39;"));
    $sitename = $sitename[0];
    cleardata();
    
    if(isipbanned($uip,$ubr))
      {
    if(!isshield(getuid_sid($sid)))
      {
      echo "<head>";
      echo "<title>Ip Block!</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      echo "<div><img src=\"../images/notok.gif\" alt=\"!\"/></div>";
      echo "[b]This IP address is blocked!!![/b]
    ";
      echo "
    ";
      echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over
    
    ";
      $banto = mysql_fetch_array(mysql_query("SELECT  timeto FROM ibwf_penalties WHERE  penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
      $remain =  $banto[0] - time();
      $rmsg = gettimemsg($remain);
      echo "[b]Time Left: [/b]$rmsg
    ";
      echo "</p>";
      echo "<p align=\"center\"><form action=\"login.php\" method=\"get\">";
      echo "[b]Username:[/b]
    <input align=\"center\" name=\"loguid\" style=\"-wap-input-format: &#39;*x&#39;\" size=\"12\" maxlength=\"12\"/>
    ";
      echo "[b]Password:[/b]
    <input align=\"center\" type=\"password\" name=\"logpwd\" size=\"10\" maxlength=\"10\"/>
    ";
      echo "<input name=\"LOGIN\" type=\"submit\" value=\"Login!\"></form></p>";
      echo "<p align=\"center\">
    Not registered yet? 
    <a href=\"register.php\">Sign-Up</a>
    ";
      echo "<a href=\"index.php?action=terms&amp;sid=$sid\">Site Rules</a>
    ";
      echo "</p>";
      echo "<p align=\"center\">";
      $onu = getnumonline();
      echo "Members Inside: $onu
    
    ";
      echo "<a href=\"../wap/index.php\">Wap 1.0(wml) Version</a></p>";
      echo mobads();
      echo "<div>[b]©2006-2007
    $sitename[/b]</div>";
      echo "</body>";
      echo "</html>";
      exit();
      }
    }
    
    if(($action != "") && ($action!="terms"))
      {
        $uid = getuid_sid($sid);
        if((islogged($sid)==false)||($uid==0))
        {
          echo "<head>";
          echo "<title>Error!!!</title>";
          echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
          echo "</head>";
          echo "<body>";
          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();
        }            
     }
    
    //echo isbanned($uid);
    if(isbanned($uid))
        {
          echo "<head>";
          echo "<title>Error!!!</title>";
          echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo "</head>";
          echo "<body>";
          echo "<p align=\"center\">";
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
    ";
          echo "[b]You are Banned[/b]
    
    ";
          $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
        $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
          $remain = $banto[0]- time();
          $rmsg = gettimemsg($remain);
          echo "[b]Time Left: [/b]$rmsg
    ";
          $nick = getnick_uid($banto[2]);
        echo "[b]By: [/b]$nick
    ";
        echo "[b]Reason: [/b]$banto[1]";
          //echo "<a href=\"index.php\">Login</a>";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
        }
        
    if($action=="shop1")
    {
      addonline(getuid_sid($sid),"Methos Shop","");
      
      echo "<p align=\"center\">";
      
      $nick = getnick_sid($sid);
      $who = getuid_nick($nick);
      
      echo "[b][u]Moodies[/u][/b]
    ";
      echo "[size="1"]Buy yourself a new Mood and new Smilies.[/size]
    ";
    
      echo "</p>";
      
      echo "Moods
    ";
      echo "Smilies
    ";  
      
      echo "
    
    [size="1"]";  
      
      
      echo "[/size]</p>";
      ////// UNTILL HERE >> 
      echo "<p align=\"center\">";
      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=="shop2")
    {
      addonline(getuid_sid($sid),"Methos Shop","");
      
      echo "<p align=\"center\">";
      
      $nick = getnick_sid($sid);
      $who = getuid_nick($nick);
      
      echo "[b][u]Gifts and Gadgets[/u][/b]
    ";
      echo "[size="1"]Spoil yourself, or someone else.
    Check out the wacky gifts and gadgets.[/size]
    ";
    
      echo "</p>";
      echo "
    
    ";  
      
        $sql = "SELECT itemid, itemname, itmeprice, itemshopid, avail FROM ibwf_shop WHERE itemshopid=&#39;2&#39;";
    
        $items = mysql_query($sql);
        echo mysql_error();
        if(mysql_num_rows($items)>0)
        {
        while ($item = mysql_fetch_array($items))
        {
            
        echo "$item[1]
    ";
        echo " [size="1"]Price: [b]$item[2]Credits[/b][/size]
    ";
        echo " [size="1"]Availible: [b]$item[4][/b][/size]
    ";
        echo " [size="1"]<a href=\"mshops-func.php?action=buy&amp;itemid=$item[0]&amp;sid=$sid\">[b]Buy Item[/b]</a>[/size]
    
    ";
           
        }
        }
    
            
      
      echo "</p>";
      ////// UNTILL HERE >> 
      echo "<p align=\"center\">";
      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=="shop3")
    {
      addonline(getuid_sid($sid),"Methos Shop","");
      
      echo "<p align=\"center\">";
      
      $nick = getnick_sid($sid);
      $who = getuid_nick($nick);
      
      echo "[b][u]Moto Trader[/u][/b]
    ";
      echo "[size="1"]Wanne be known as the fastes chatter around?
    Well then buy yourself a new Sport Car Status.[/size]
    ";
    
      echo "</p>";
      echo "
    
    ";  
      
        $sql = "SELECT itemid, itemname, itmeprice, itemshopid, avail FROM ibwf_shop WHERE itemshopid=&#39;3&#39;";
    
        $items = mysql_query($sql);
        echo mysql_error();
        if(mysql_num_rows($items)>0)
        {
        while ($item = mysql_fetch_array($items))
        {
            
        echo "$item[1]
    ";
        echo " [size="1"]Price: [b]$item[2]Credits[/b][/size]
    ";
        echo " [size="1"]Availible: [b]$item[4][/b][/size]
    ";
        echo " [size="1"]<a href=\"mshops-func.php?action=buy&amp;itemid=$item[0]&amp;sid=$sid\">[b]Buy Status[/b]</a>[/size]
    
    ";
           
        }
        }
      
      echo "</p>";
      ////// UNTILL HERE >> 
      echo "<p align=\"center\">";
      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=="shop4")
    {
      addonline(getuid_sid($sid),"Methos Shop","");
      
      echo "<p align=\"center\">";
      
      $nick = getnick_sid($sid);
      $who = getuid_nick($nick);
      
      echo "[b][u]Methos Extras[/u][/b]
    ";
      echo "[size="1"]Buy new Feauters for the Methos Chat/Forum[/size]
    ";
    
      echo "</p>";
      echo "
    
    [size="1"]";  
      
      echo "Pop-Up Inbox
    ";
      echo "Themes
    ";
      echo "V.I.P Membership
    ";
      
      echo "[/size]</p>";
      ////// UNTILL HERE >> 
      echo "<p align=\"center\">";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p>";
      echo "</body>";
    }
    
    else
    {
      addonline(getuid_sid($sid),"Lost in Shop","");
      
      echo "<p align=\"center\">";
      echo "I don&#39;t know how did you get into here, but there&#39;s nothing to show
    
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p></body>";
    }
    ?>
    </html>
    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


      #3
      here the func php

      Code:
      <?php
      include("../blocked.php");
      include("config.php");
      include("core.php");
      header("Cache-Control: no-cache, must-revalidate");            // Prevent caching, HTTP/1.1
      header("Pragma: no-cache");
      //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
      echo "<?xml version=\"1.0\"?>";
      echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
      ?>
      <html xmlns="http://www.w3.org/1999/xhtml">
      <?php
      $bcon = connectdb();
      if (!$bcon)
      {
          echo "<head>";
          echo "<title>Error!!!</title>";
          echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
          echo "</head>";
          echo "<body>";
          echo "<p align=\"center\">";
          echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
      ";
          echo "[b][b]Error! Cannot Connect To Database...[/b][/b]
      
      ";
          echo "This error happens usually when backing up the database, please be patient...";
          echo "</p>";
          echo "</body>";
          echo "</html>";
          exit();
      }
      
      $brws = explode("/",$HTTP_USER_AGENT);
      $ubr = $brws[0];
      $uip = getip();
      $action = $_GET["action"];
      $sid = $_GET["sid"];
      $page = $_GET["page"];
      $who = $_GET["who"];
      $uid = getuid_sid($sid);
      $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
      $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name=&#39;sitename&#39;"));
      $sitename = $sitename[0];
      cleardata();
      
      if(isipbanned($uip,$ubr))
        {
      if(!isshield(getuid_sid($sid)))
        {
        echo "<head>";
        echo "<title>Ip Block!</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
        echo "</head>";
        echo "<body>";
        echo "<p align=\"center\">";
        echo "<div><img src=\"../images/notok.gif\" alt=\"!\"/></div>";
        echo "[b]This IP address is blocked!!![/b]
      ";
        echo "
      ";
        echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over
      
      ";
        $banto = mysql_fetch_array(mysql_query("SELECT  timeto FROM ibwf_penalties WHERE  penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
        $remain =  $banto[0] - time();
        $rmsg = gettimemsg($remain);
        echo "[b]Time Left: [/b]$rmsg
      ";
        echo "</p>";
        echo "<p align=\"center\"><form action=\"login.php\" method=\"get\">";
        echo "[b]Username:[/b]
      <input align=\"center\" name=\"loguid\" style=\"-wap-input-format: &#39;*x&#39;\" size=\"12\" maxlength=\"12\"/>
      ";
        echo "[b]Password:[/b]
      <input align=\"center\" type=\"password\" name=\"logpwd\" size=\"10\" maxlength=\"10\"/>
      ";
        echo "<input name=\"LOGIN\" type=\"submit\" value=\"Login!\"></form></p>";
        echo "<p align=\"center\">
      Not registered yet? 
      <a href=\"register.php\">Sign-Up</a>
      ";
        echo "<a href=\"index.php?action=terms&amp;sid=$sid\">Site Rules</a>
      ";
        echo "</p>";
        echo "<p align=\"center\">";
        $onu = getnumonline();
        echo "Members Inside: $onu
      
      ";
        echo "<a href=\"../wap/index.php\">Wap 1.0(wml) Version</a></p>";
        echo mobads();
        echo "<div>[b]©2006-2007
      $sitename[/b]</div>";
        echo "</body>";
        echo "</html>";
        exit();
        }
      }
      
      if(($action != "") && ($action!="terms"))
        {
          $uid = getuid_sid($sid);
          if((islogged($sid)==false)||($uid==0))
          {
            echo "<head>";
            echo "<title>Error!!!</title>";
            echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
            echo "</head>";
            echo "<body>";
            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();
          }            
      }
      
      //echo isbanned($uid);
      if(isbanned($uid))
          {
            echo "<head>";
            echo "<title>Error!!!</title>";
            echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
            echo "</head>";
            echo "<body>";
            echo "<p align=\"center\">";
            echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
      ";
            echo "[b]You are Banned[/b]
      
      ";
            $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
          $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            $remain = $banto[0]- time();
            $rmsg = gettimemsg($remain);
            echo "[b]Time Left: [/b]$rmsg
      ";
            $nick = getnick_uid($banto[2]);
          echo "[b]By: [/b]$nick
      ";
          echo "[b]Reason: [/b]$banto[1]";
            //echo "<a href=\"index.php\">Login</a>";
            echo "</p>";
            echo "</body>";
            echo "</html>";
            exit();
          }
      
      if($action=="buy")
      {
        addonline(getuid_sid($sid),"Methos Shop","");
        
        echo "<p align=\"center\">";
        
        $nick = getnick_sid($sid);
        $who = getuid_nick($nick);
        $credits = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
        $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc, avail FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));
        
      
        echo "[b][u]$items[0][/u][/b]
      ";
      
        echo "</p>";
        echo "
      
      ";  
        
        if($items[3]>0){
        
        if($items[1]>$credits[0]){
        echo "You don&#39;t have enough credits to buy this itme.
      ";
        }else{
        
        $reg = mysql_query("INSERT INTO ibwf_shop_Inventory SET uid=&#39;".$who."&#39;, itemid=&#39;".$itemid."&#39;, time=&#39;".time()."&#39;");  
        
        $ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
        $ugpl = $ugpl[0] - $items[1];
        mysql_query("UPDATE ibwf_users SET plusses=&#39;".$ugpl."&#39; WHERE id=&#39;".$who."&#39;");
        
        $totitems = mysql_fetch_array(mysql_query("SELECT avail FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));
        $totitems = $totitems[0] - 1;
        mysql_query("UPDATE ibwf_shop SET avail=&#39;".$totitems."&#39; WHERE itemid=&#39;".$itemid."&#39;");
        
        echo "Congrats, you have just bought the $items[0]
      ";
      
        }
        }else{
        echo "Out Of Stock, We Restock every Month";
        }
        
        echo "</p>";
        ////// UNTILL HERE >> 
        echo "<p align=\"center\">";
        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=="useitem2")
      {
        addonline(getuid_sid($sid),"Methos Shop","");
        
        echo "<p align=\"center\">";
        
        $nick = getnick_sid($sid);
        $who = getuid_nick($nick);
      
        $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));  
        $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid=&#39;".$who."&#39; and itemid=&#39;".$itemid."&#39;"));  
        
        if($numberitems[0]>0)
        {  
       
        
        echo "[b][u]Use $items[0][/u][/b]
      ";
        
        echo "<a href=\"mshops-func.php?action=sendtom&amp;sid=$sid&amp;itemid=$itemid\">Send to Member</a>
      ";
        echo "Use Yourself";
      
        }else{
        echo "[b][u]You don&#39;t have this item in your Inventory.
      If you want to use it, go and buy it.[/u][/b]
      ";
        }
        
        echo "</p>";
        
        echo "
      
      "; 
        
        echo "</p>";
        ////// UNTILL HERE >> 
        echo "<p align=\"center\">";
        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=="useitem3")
      {
        addonline(getuid_sid($sid),"Methos Shop","");
        
        echo "<p align=\"center\">";
        
        $nick = getnick_sid($sid);
        $who = getuid_nick($nick);
        $credits = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
        $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));
        
        $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid=&#39;".$who."&#39; and itemid=&#39;".$itemid."&#39;"));
        
        if($numberitems[0]>0)
        {  
        
        echo "[b][u]Use $items[0][/u][/b]
      ";
        
        echo "<a href=\"mshops-func.php?action=changest&amp;sid=$sid&amp;itemid=$itemid\">Change Status</a>";
      
        }else{
        echo "[b][u]You don&#39;t have this item in your Inventory.
      If you want to use it, go and buy it.[/u][/b]
      ";
        }
        
        echo "</p>";
        
        echo "
      
      "; 
        
        echo "</p>";
        ////// UNTILL HERE >> 
        echo "<p align=\"center\">";
        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=="changest")
      {
        addonline(getuid_sid($sid),"Methos Shop","");
        
        echo "<p align=\"center\">";
        
        $nick = getnick_sid($sid);
        $who = getuid_nick($nick);
      
        $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));  
        $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid=&#39;".$who."&#39; and itemid=&#39;".$itemid."&#39;"));  
        
        if($numberitems[0]>0)
        {    
        
        $res = mysql_query("UPDATE ibwf_users SET shopssid=&#39;".$itemid."&#39; WHERE id=&#39;".$who."&#39;");
        if($res){
        echo "Your new Status is $items[0]";
        $itemidd = mysql_fetch_array(mysql_query("SELECT itemid FROM ibwf_shop WHERE itemname=&#39;".$items[0]."&#39;"));
        $delitem = mysql_query("DELETE FROM ibwf_shop_Inventory WHERE uid=&#39;".$who."&#39; and itemid=&#39;".$itemidd[0]."&#39;");
        }else{
        echo "[b][u]Oops, you can&#39;t use this status.[/u][/b]
      ";
        }
        }else{
        echo "[b][u]Oops, you can&#39;t use this status.[/u][/b]
      ";
        }
        
        
        echo "</p>";
        
        echo "
      
      "; 
        
        echo "</p>";
        ////// UNTILL HERE >> 
        echo "<p align=\"center\">";
        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=="sendtom")
      {
        addonline(getuid_sid($sid),"Methos Shop","");
        
        echo "<p align=\"center\">";
        
        $nick = getnick_sid($sid);
        $who = getuid_nick($nick);
      
        $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc FROM ibwf_shop WHERE itemid=&#39;".$itemid."&#39;"));  
        $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid=&#39;".$who."&#39; and itemid=&#39;".$itemid."&#39;"));  
        
        if($numberitems[0]>0)
        {    
      
        echo "Send [i]$items[0][/i] to:
      ";
        echo "<form action=\"mshops-func.php?action=sendto&amp;sid=$sid\" method=\"post\">";
        echo "User: <input name=\"towho\" format=\"*x\" maxlength=\"15\"/>
      ";
        echo "Message: <input name=\"pmtext\" maxlength=\"500\"/>
      ";  
        echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
        echo "<postfield name=\"pmtou\" value=\"$(towho)\"/>";
        echo "<postfield name=\"pmitem\" value=\"$items[0]\"/>";
        echo "<input type=\"submit\" value=\"submit\"/>";
        echo "</form>
      ";
      
        
        }else{
        echo "[b][u]Oops, you can&#39;t send this item.[/u][/b]
      ";
        }
        
        
        echo "</p>";
        
        echo "
      
      "; 
        
        echo "</p>";
        ////// UNTILL HERE >> 
        echo "<p align=\"center\">";
        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=="sendto")
      {
        
        echo "<p align=\"center\">";
        $pmtou = $_POST["pmtou"];
        $pmtext = $_POST["pmtext"];
        $pmitme = $_POST["pmitem"];
        
        $who = getuid_nick($pmtou);
      $nick = getnick_sid($sid);
          if($who==0)
          {
            echo "<img src=\"images/notok.gif\" alt=\"x\"/>User Does Not exist
      ";
          }else{
        $whonick = getnick_uid($who);
        $byuid = getuid_sid($sid);
        $tm = time();
        $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid=&#39;".$byuid."&#39;"));
        $pmfl = $lastpm[0]+getpmaf();
        if($pmfl<$tm)
        {
          if(!isblocked($pmtext,$byuid))
          {
          if((!isignored($byuid, $who))&&(!istrashed($byuid)))
          {
        $pmitemtext = "$nick have just send you a * $pmitme *[br/]$pmtext";
        $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmitemtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
        }else{
          $res = true;
        }
        if($res)
        {
          echo "<img src=\"images/ok.gif\" alt=\"O\"/>";
          echo "Item was sent successfully to $whonick
      
      ";
          echo parsepm($pmitemtext, $sid);
          $itemidd = mysql_fetch_array(mysql_query("SELECT itemid FROM ibwf_shop WHERE itemname=&#39;".$pmitme."&#39;"));
          $delitem = mysql_query("DELETE FROM ibwf_shop_Inventory WHERE uid=&#39;".$byuid."&#39; and itemid=&#39;".$itemidd[0]."&#39;");
          $reg = mysql_query("INSERT INTO ibwf_shop_Inventory SET uid=&#39;".$who."&#39;, itemid=&#39;".$itemidd[0]."&#39;, time=&#39;".time()."&#39;");  
      
        }else{
          echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
          echo "Can&#39;t Send Item to $whonick
      
      ";
        }
        }
        }
      
          }
        
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
        echo "</p>";
          echo "</body>";
      }
      
      else
      {
        addonline(getuid_sid($sid),"Lost in Shop","");
        
        echo "<p align=\"center\">";
        echo "I don&#39;t know how did you get into here, but there&#39;s nothing to show
      
      ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p></body>";
      }
      ?>
      </html>
      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


        #4
        here it&#39;s what i found
        Attached Files
        Hate romains that take codes from here and tell to all that they had made that

        Comment


          #5
          sweetangel u can post the whole shop wml script?:D hihi
          Hate romains that take codes from here and tell to all that they had made that

          Comment


            #6
            I have the wml code...any1 have the xhtml of this version???
            tnks[/b]
            thanks sweetangel

            where is sql for it
            sigpic

            WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

            Comment


              #7
              lol the codes displayed arent safe
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment

              Working...
              X