⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shop-sms.php

📁 还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep
💻 PHP
字号:
<?php /* ------------------------- */

  include("_include-jail.php");

/* ------------------------- */ ?>
<title>[( Elite Avengers )]</title>
<body>

<link rel="stylesheet" type="text/css" href="css-v1.css">

<table align=center width=100%>
  <tr><td class=subTitle><font color="black"><b>Shop</b></td></tr>
</table>
<table align=center width=100%>
<?PHP
  $dbres				= mysql_query("SELECT * FROM `[users]` WHERE `login`='{$data->login}'");
    $clan				= mysql_fetch_object($dbres);
if (isset($_GET['x'])) { 
           if($_GET['x'] == "10credits") {
	   $genoegcash = "3000";
	   if($genoegcash <= $data->cash) {
$insert = "UPDATE `[users]` set `smstegoed`=`smstegoed`+10, `cash`=`cash`-2000 WHERE `login`='{$data->login}'";
$insert_now = mysql_query($insert) or die("FOUT in query "); 
    print "  <tr><td class=\"mainTxt\">You bought 10 SMS-credits.</td></tr>\n";
}
else {
    print "  <tr><td class=\"mainTxt\">You haven't got enough money to buy SMS-credits.</td></tr>\n";
}
}
}
?>
<?PHP
  $dbres				= mysql_query("SELECT * FROM `[users]` WHERE `login`='{$data->login}'");
    $clan				= mysql_fetch_object($dbres);
if (isset($_GET['x'])) { 
           if($_GET['x'] == "30credits") {
	   $genoegcash = "5000";
	   if($genoegcash <= $data->cash) {
$insert = "UPDATE `[users]` set `smstegoed`=`smstegoed`+30, `cash`=`cash`-3000 WHERE `login`='{$data->login}'";
$insert_now = mysql_query($insert) or die("FOUT in query "); 
    print "  <tr><td class=\"mainTxt\">You bought 30 SMS-credits.</td></tr>\n";
}
else {
    print "  <tr><td class=\"mainTxt\">You haven't got enough money to buy SMS-credits.</td></tr>\n";
}
}
}
?></table><br>
<table align=center width=100%>
<html>
<tr><td class=mainTxt>


<table height="90" cellSpacing="0" cellPadding="0" width="100%">
  <tr>
    <td height="70"><font color="black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SMS Tegoed<br><img src="http://members.lycos.nl/michelo70/images/item-smscredit.gif" width="190" height="154">
      </td>
    <td vAlign="top" align="right" height="70">
    <table height="100%" width="100%">
      <tr>
        <td vAlign="top">&nbsp;</td>
      </tr>
      <tr>
        <td vAlign="bottom">
        <table width="100%">
          <tr>
            <td width="75"><font color="black">Credits:</td>
            <td><font color="black">10</td>
          </tr>
          <tr>
            <td vAlign="top" width="75"><font color="black">Explanation:</td>
            <td><font color="black">10 Credits. You need those credits to SMS to other people.</td>
          </tr>
          <tr>
            <td width="75"><font color="black">Price:</td>
            <td><font color="black">$3000</td>
          </tr>
        </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="19">&nbsp;</td>
    <td align="right" height="19">
    <?PHP
	$genoegcash = "3000";
	   if($genoegcash <= $data->cash) {
	   echo "<a style=\"COLOR: #FFFFFF\" href=\"shop-sms.php?x=10credits\">
    <b>Buy</b></a>";
	   }
	   else {
	   echo "<a style=\"COLOR: #000000\" href=\"shop-sms.php?x=10credits\">
    Buy</a>";
    

	}
	
	?>
	
	</table></td>
  </tr>

<table align=center width=100%>
<tr><td class=mainTxt>


<table height="90" cellSpacing="0" cellPadding="0" width="100%">
  <tr>
    <td height="70"><font color="black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SMS-credits<br><img src="http://members.lycos.nl/michelo70/images/item-smscredit.gif" width="190" height="154">
      </td>
    <td vAlign="top" align="right" height="70">
    <table height="100%" width="100%">
      <tr>
        <td vAlign="top">&nbsp;</td>
      </tr>
      <tr>
        <td vAlign="bottom">
        <table width="100%">
          <tr>
            <td width="75"><font color="black">Credits:</td>
            <td><font color="black">30</td>
          </tr>
          <tr>
            <td vAlign="top" width="75"><font color="black">Omschrijving:</td>
            <td><font color="black">30 Credits. You need those credits to SMS to other people.</td>
          </tr>
          <tr>
            <td width="75"><font color="black">Price:</td>
            <td><font color="black">$5000</td>
          </tr>
        </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="19">&nbsp;</td>
    <td align="right" height="19">
    <?PHP
	$genoegcash = "5000";
	   if($genoegcash <= $data->cash) {
	   echo "<a style=\"COLOR: #FFFFFF\" href=\"shop-sms.php?x=30credits\">
    <b>Koop</b></a>";
	   }
	   else {
	   echo "<a style=\"COLOR: #000000\" href=\"shop-sms.php?x=30credits\">
    Koop</a>";
    

	}
	
	?>
	
	</table></td></tr>

      
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -