Methos Shop Xhtm

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

6 replies · 563 views · started 18 years ago · 1 min read

5 participants
learner Lead · 587 posts #2

here shop.php

<?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('Content-type: application/vnd.wap.xhtml+xml'); 
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='".$uid."'"));
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$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='2' AND ipadd='".$uip."' AND browserm='".$ubr."' 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: '*x'\" 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&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='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
      $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&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='2'";

    $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&itemid=$item[0]&sid=$sid\">[b]Buy Item[/b]</a>[/size]

";
       
    }
    }

        
  
  echo "</p>";
  ////// UNTILL HERE >> 
  echo "<p align=\"center\">";
  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=="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='3'";

    $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&itemid=$item[0]&sid=$sid\">[b]Buy Status[/b]</a>[/size]

";
       
    }
    }
  
  echo "</p>";
  ////// UNTILL HERE >> 
  echo "<p align=\"center\">";
  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=="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&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't know how did you get into here, but there's nothing to show

";
  echo "<a href=\"index.php?action=main&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!!

BEST MOBILE ADVERTISER

External image (may be gone)

learner Lead · 587 posts #3

here the func php

<?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('Content-type: application/vnd.wap.xhtml+xml'); 
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='".$uid."'"));
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$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='2' AND ipadd='".$uip."' AND browserm='".$ubr."' 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: '*x'\" 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&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='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
      $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='".$who."'"));
  $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc, avail FROM ibwf_shop WHERE itemid='".$itemid."'"));
  

  echo "[b][u]$items[0][/u][/b]
";

  echo "</p>";
  echo "

";  
  
  if($items[3]>0){
  
  if($items[1]>$credits[0]){
  echo "You don't have enough credits to buy this itme.
";
  }else{
  
  $reg = mysql_query("INSERT INTO ibwf_shop_Inventory SET uid='".$who."', itemid='".$itemid."', time='".time()."'");  
  
  $ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
  $ugpl = $ugpl[0] - $items[1];
  mysql_query("UPDATE ibwf_users SET plusses='".$ugpl."' WHERE id='".$who."'");
  
  $totitems = mysql_fetch_array(mysql_query("SELECT avail FROM ibwf_shop WHERE itemid='".$itemid."'"));
  $totitems = $totitems[0] - 1;
  mysql_query("UPDATE ibwf_shop SET avail='".$totitems."' WHERE itemid='".$itemid."'");
  
  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&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='".$itemid."'"));  
  $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid='".$who."' and itemid='".$itemid."'"));  
  
  if($numberitems[0]>0)
  {  
 
  
  echo "[b][u]Use $items[0][/u][/b]
";
  
  echo "<a href=\"mshops-func.php?action=sendtom&sid=$sid&itemid=$itemid\">Send to Member</a>
";
  echo "Use Yourself";

  }else{
  echo "[b][u]You don'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&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='".$who."'"));
  $items = mysql_fetch_array(mysql_query("SELECT itemname, itmeprice, itemdesc FROM ibwf_shop WHERE itemid='".$itemid."'"));
  
  $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid='".$who."' and itemid='".$itemid."'"));
  
  if($numberitems[0]>0)
  {  
  
  echo "[b][u]Use $items[0][/u][/b]
";
  
  echo "<a href=\"mshops-func.php?action=changest&sid=$sid&itemid=$itemid\">Change Status</a>";

  }else{
  echo "[b][u]You don'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&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='".$itemid."'"));  
  $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid='".$who."' and itemid='".$itemid."'"));  
  
  if($numberitems[0]>0)
  {    
  
  $res = mysql_query("UPDATE ibwf_users SET shopssid='".$itemid."' WHERE id='".$who."'");
  if($res){
  echo "Your new Status is $items[0]";
  $itemidd = mysql_fetch_array(mysql_query("SELECT itemid FROM ibwf_shop WHERE itemname='".$items[0]."'"));
  $delitem = mysql_query("DELETE FROM ibwf_shop_Inventory WHERE uid='".$who."' and itemid='".$itemidd[0]."'");
  }else{
  echo "[b][u]Oops, you can't use this status.[/u][/b]
";
  }
  }else{
  echo "[b][u]Oops, you can't use this status.[/u][/b]
";
  }
  
  
  echo "</p>";
  
  echo "

"; 
  
  echo "</p>";
  ////// UNTILL HERE >> 
  echo "<p align=\"center\">";
  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=="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='".$itemid."'"));  
  $numberitems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop_Inventory WHERE uid='".$who."' and itemid='".$itemid."'"));  
  
  if($numberitems[0]>0)
  {    

  echo "Send [i]$items[0][/i] to:
";
  echo "<form action=\"mshops-func.php?action=sendto&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't send this item.[/u][/b]
";
  }
  
  
  echo "</p>";
  
  echo "

"; 
  
  echo "</p>";
  ////// UNTILL HERE >> 
  echo "<p align=\"center\">";
  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")
{
  
  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='".$byuid."'"));
  $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='".$pmitemtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
  }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='".$pmitme."'"));
    $delitem = mysql_query("DELETE FROM ibwf_shop_Inventory WHERE uid='".$byuid."' and itemid='".$itemidd[0]."'");
    $reg = mysql_query("INSERT INTO ibwf_shop_Inventory SET uid='".$who."', itemid='".$itemidd[0]."', time='".time()."'");  

  }else{
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
    echo "Can't Send Item to $whonick

";
  }
  }
  }

    }
  
  echo "<a href=\"index.php?action=main&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't know how did you get into here, but there's nothing to show

";
  echo "<a href=\"index.php?action=main&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!!

BEST MOBILE ADVERTISER

External image (may be gone)

ionutxp Developer · 137 posts #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 External image (may be gone)

thunderwap Developer · 169 posts #6

I have the wml code...any1 have the xhtml of this version??? tnks:)

thanks sweetangel

where is sql for it

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close