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

📄 bescherming.php

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

  include("_include-jail.php");

/* ------------------------- */ ?>
<html>

<head>
<title>[( Elite Avengers )]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">

</head>


<body>
<table width=100%>
  <tr><td class="subTitle"><b>Protection</b></td></tr>
  <tr><td class="mainTxt">
<table class="menu" width=180 cellpadding=197 cellspacing=0>
        <tr><td>
			<table width=180 cellpadding=184 cellspacing=0>
	</table>
	<table width=180 cellpadding=0 cellspacing=0 ID="control">
<?php /* ------------------------- */

if($data->clanlevel >= 8) {
    $dbres				= mysql_query("SELECT `name`,`info`,UNIX_TIMESTAMP(`started`) AS `started` FROM `[clans]` WHERE `name`='{$data->clan}'");
    $clan				= mysql_fetch_object($dbres);
    $protection				= round($clan->started/3600-time()/3600) + 24;


 if(isset($_POST['protection']) && $clan->started+24*60*60 > time()) {
    mysql_query("UPDATE `[clans]` SET `started`=FROM_UNIXTIME(UNIX_TIMESTAMP(`started`)-24*60*60-1) WHERE `name`='{$data->clan}'");
  }


if($protection > 0)
   print "	<form method=\"post\"><i>You're <b>$protection</b> hour under protection.</i><br><br><input type=\"submit\" name=\"protection\" value=\"Take my protection away!\"></form>\n";
 else
   print "	You aren't under protection!\n";
}
/* ------------------------- */ ?>
</td></tr>
</table>

</body>


</html>

⌨️ 快捷键说明

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