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

📄 game.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
📖 第 1 页 / 共 2 页
字号:
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr><td bgcolor=<?=$article_color1?> height="22" align="center" <?=$skinbg?>>管理员资料<br><?=$usericon?><br><?=$username?><br>金钱:<?=$userin[24]?><br>威望:<?=$userin[16]/10?><br>发贴:<?=$userin[13]?>
			  </td></tr>
          <tr><td height="1"></td></tr></table>
			  </td><td>
<?php
if ($step==2){
	$newgame=trim($newgame);
$newgameimg=trim($newgameimg);
if ($newgame=="" || $newgamename==""|| $newgameimg==""){
echo " 有一项为空!返回填写!";
if (strrpos($newgamename,"|")!==false || strrpos($newgameimg,"|")!==false|| strrpos($newgame,"|")!==false){
	echo "你所填的游戏内容有不可接受字符 | ,请修改!";
}
?>
		</td> </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
<?
require_once("footer.php");
exit;
}

if (!eregi("\.swf$",$newgame)){
		echo '<center><br><br>状态:发生错误,游戏必须是 SWF 格式!<ul><br><br><li><a href="javascript:history.back(1)">返回前页</a></li></ul></center>';
?>
	</td> </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
<?
require_once("footer.php");
exit;
}
$gameofstar="$newgame|$newgameimg|$newgamename|$timestamp|\n";
writetofile("userdata/game/game.dat",$gameofstar,"a+");

echo "添加游戏成功!<br><br>按<a href=game.php?action=mgame&job=add>这里继续添加</a><br><br>";
echo "按<a href=game.php?action=mgame>这里返回总台管理</a>";
		 }else{				
			  ?>
 <FORM METHOD=POST ACTION="game.php?action=mgame&job=add&step=2"><br>
			  
			  游戏名字:&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="text" NAME="newgamename" size=30><br>
			  游戏路径:&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="text" NAME="newgame" size=60><br>
			  游戏图片地址:<INPUT TYPE="text" NAME="newgameimg" size=60><br>
			 <input type=submit value="确认提交" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">  <input type=reset value="清除重写" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="reset"><br><br>
			  如果要删除游戏,请到<a href=game.php?action=pay>付费游戏列表</a><br>
			  注意:请填写完整的游戏路径,如:http://jielee.com/liuxing/game/9.swf <br>
			  格式可以是:swf 图片地址如http://jielee.com/liuxing/game/9.gif
 </FORM>
<?php
		 }
?>			  
		  </td>

			</tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>

<?
require("footer.php");echo"$footertp";
exit;
}
?>
	<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27><B class=title>◆ 
</B><FONT color=<?=$titlefontcolor?>>这是<?=$bbs_title?>游戏管理程式,管理员<?=$username?>(ofstar程式)</FONT></TD></TR></table>
<table width=<?=$tablewidth?> border=0 cellspacing=1 cellpadding=5 bgcolor=F0F0F0 align=center>
<tr bgcolor=FFFFFF><td width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr><td bgcolor=<?=$article_color1?> height="22" align="center" <?=$skinbg?>>管理员资料<br><?=$usericon?><br><?=$username?><br>金钱:<?=$userin[24]?><br>威望:<?=$userin[16]/10?><br>发贴:<?=$userin[13]?>
			  </td></tr>
          <tr><td height="1"></td></tr></table>
			  </td><td>
		◆<a href=game.php?action=pay><font color=red>付费游戏</font></a>    (查看现有游戏列表)<br><br>
		◆<a href=game.php?action=mgame&job=add><font color=red>增加游戏</font></a>     (增加一个游戏)<br><br>
        ◆<a href=game.php?action=mgamefree><font color=red>免费游戏管理</font></a>    (查看现有游戏列表)<br><br>
		◆<a href=dj.php><font color=red>进入DJ管理</font></a>    (同时你也是DJ管理员)<br><br>
		注意:如果要删除游戏,请到<a href=game.php?action=pay>付费游戏列表</a><br>
		  </td>
			  </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
<?}
if($action==mgamefree){
	$check_user=0;
if (($dj_user && in_array($username,$dj_user)) || $username==$manager)
$check_user=1; 
if ($check_user==0) {
		$title="您没有权利进行操作,请您以合适的身份登录";
$content="<ul><br><br><li><a href=\"javascript:history.back(1)\">返回前页</a></li><br><br><li><a href=game.php?action=free>回到游戏</a></li><br><br></ul>";
msg_box($title,$content);
		require("footer.php");echo"$footertp";
		exit;
}
if ($job=="del"){
if(!$flag){
$title="确认继续吗?";
$content="<ul><br><br><li><a href=\"javascript:history.back(1)\">返回前页</a></li><br><br><li><a href=game.php?action=mgamefree&job=del&flag=2&id=$id>确认删除</a></li><br><br></ul>";
msg_box($title,$content);
require("footer.php");echo"$footertp";
}else{
$notelist=file("userdata/game/gamefree.dat");
            unset($notelist[$id]);
            $notelist=implode("",$notelist);
            $f=fopen("userdata/game/gamefree.dat","w");
            fputs($f,$notelist);
			jump_page("game.php?action=free","删除成功","游戏已经成功删除! <br><br>程式已经为您自动登录<br><br>如果程式无法登陆首页请点击这<br><ul><li><a href=game.php?action=free>点击这里进入管理</a></li></ul>");
}
exit;
}
if ($job=="add"){
?>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27><B class=title>◆
</B><FONT color=<?=$titlefontcolor?>>这是<?=$bbs_title?>游戏管理程式,管理员<?=$username?>(ofstar程式)</FONT></TD></TR></table>
<table width=<?=$tablewidth?> border=0 cellspacing=1 cellpadding=5 bgcolor=F0F0F0 align=center>
<tr bgcolor=FFFFFF><td width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr><td bgcolor=<?=$article_color1?> height="22" align="center" <?=$skinbg?>>管理员资料<br><?=$usericon?><br><?=$username?><br>金钱:<?=$userin[24]?><br>威望:<?=$userin[16]/10?><br>发贴:<?=$userin[13]?>
			  </td></tr>
          <tr><td height="1"></td></tr></table>
			  </td><td>
<?php
if ($step==2){
$newgame=trim($newgame);
$newgameimg=trim($newgameimg);
if ($newgame=="" || $newgamename==""|| $newgameimg==""){
echo " 有一项为空!返回填写!";
if (strrpos($newgamename,"|")!==false || strrpos($newgameimg,"|")!==false|| strrpos($newgame,"|")!==false){
	echo "你所填的游戏内容有不可接受字符 | ,请修改!";
}
?>
		</td> </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
<?
require_once("footer.php");
exit;
}

if (!eregi("\.swf$",$newgame)){
		echo '<center><br><br>状态:发生错误,游戏必须是 SWF 格式!<ul><br><br><li><a href="javascript:history.back(1)">返回前页</a></li></ul></center>';
?>
	</td> </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
<?
require_once("footer.php");
exit;
}
$gameofstar="$newgame|$newgameimg|$newgamename|$timestamp|\n";
writetofile("userdata/game/gamefree.dat",$gameofstar,"a+");

echo "添加游戏成功!<br><br>按<a href=game.php?action=mgamefree&job=add>这里继续添加</a><br><br>";
echo "按<a href=game.php?action=mgamefree>这里返回总台管理</a>";
		 }else{				
			  ?>
 <FORM METHOD=POST ACTION="game.php?action=mgamefree&job=add&step=2"><br>
			  
			  游戏名字:&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="text" NAME="newgamename" size=30><br>
			  游戏路径:&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="text" NAME="newgame" size=60><br>
			  游戏图片地址:<INPUT TYPE="text" NAME="newgameimg" size=60><br>
			 <input type=submit value="确认提交" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">  <input type=reset value="清除重写" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="reset"><br><br>
			  如果要删除游戏,请到<a href=game.php?action=free>免费游戏列表</a><br>
			  注意:请填写完整的游戏路径,如:http://jielee.com/liuxing/game/9.swf <br>
			  格式必须是:swf 图片地址如http://jielee.com/liuxing/game/9.gif
 </FORM>
<?php
		 }
?>			  
		  </td>

			</tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>

<?
require("footer.php");echo"$footertp";
exit;
}
?>
	<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27><B class=title>◆ 
</B><FONT color=<?=$titlefontcolor?>>这是<?=$bbs_title?>游戏管理程式,管理员<?=$username?>(ofstar程式)</FONT></TD></TR></table>
<table width=<?=$tablewidth?> border=0 cellspacing=1 cellpadding=5 bgcolor=F0F0F0 align=center>
<tr bgcolor=FFFFFF><td width="30%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr><td bgcolor=<?=$article_color1?> height="22" align="center" <?=$skinbg?>>管理员资料<br><?=$usericon?><br><?=$username?><br>金钱:<?=$userin[24]?><br>威望:<?=$userin[16]/10?><br>发贴:<?=$userin[13]?>
			  </td></tr>
          <tr><td height="1"></td></tr></table>
			  </td><td>
		◆<a href=game.php?action=free><font color=red>免费游戏</font></a>    (查看现有游戏列表)<br><br>
		◆<a href=game.php?action=mgamefree&job=add><font color=red>增加游戏</font></a>     (增加一个游戏)<br><br>
		◆<a href=game.php?action=mgame><font color=red>付费游戏管理</font></a>    (查看现有游戏列表)<br><br>
        ◆<a href=dj.php><font color=red>进入DJ管理</font></a>    (同时你也是DJ管理员)<br><br>
		注意:如果要删除游戏,请到<a href=game.php?action=free>免费游戏列表</a><br>
		  </td>
			  </tr></table>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 align=center>
         <TR>
 <TD bgColor=<?=$titlecolor?> height=27></TD></TR></table>
 <?}require("footer.php");echo"$footertp";?>

⌨️ 快捷键说明

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