<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
//ini_set('date.timezone','Asia/Shanghai');
define('IN_GAME', TRUE);
define('GAME_ROOT', '');
if(PHP_VERSION < '4.3.0') {
exit('PHP version must >= 4.3.0!');
}
$action = $_POST['action'] ? $_POST['action'] : $_GET['action'];
$language = $_POST['language'] ? $_POST['language'] : $_GET['language'];
@set_time_limit(1000);
@include './config.inc.php';
switch($language) {
case 'simplified_chinese_gbk':
$dbcharset = $charset = 'gbk';
break;
case 'simplified_chinese_utf8':
$dbcharset = 'utf8';
$charset = 'utf-8';
break;
case 'traditional_chinese_big5':
$dbcharset = $charset = 'big5';
break;
case 'traditional_chinese_utf8':
$dbcharset = 'utf8';
$charset = 'utf-8';
break;
case 'english':
$dbcharset = 'utf8';
$charset = 'utf-8';
break;
default:
$language = '';
$dbcharset = 'utf8';
$charset = 'utf-8';
}
if($language) {
$languagefile = './install/'.$language.'.lang.php';
$sqlfile = './install/bra.sql';
if(!is_readable($languagefile) || !is_readable($sqlfile)) {
exit('Please upload ./install and all its files completely.');
}
require_once $languagefile;
$lockfile = './gamedata/install.lock';
if(file_exists($lockfile)) {
exit($lang['lock_exists']);
}
$fp = fopen($sqlfile, 'rb');
$sql = fread($fp, 2048000);
fclose($fp);
}
header('Content-Type: text/html; charset='.$charset);
$version = '3.0.0';
?>
<html>
<head>
<title>Bra Installation Wizard</title>
<style>
A:visited {COLOR: #3A4273; TEXT-DECORATION: none}
A:link {COLOR: #3A4273; TEXT-DECORATION: none}
A:hover {COLOR: #3A4273; TEXT-DECORATION: underline}
body,table,td {COLOR: #3A4273; FONT-FAMILY: Tahoma, Verdana, Arial; FONT-SIZE: 12px; LINE-HEIGHT: 20px; scrollbar-base-color: #E3E3EA; scrollbar-arrow-color: #5C5C8D}
input {COLOR: #085878; FONT-FAMILY: Tahoma, Verdana, Arial; FONT-SIZE: 12px; background-color: #3A4273; color: #FFFFFF; scrollbar-base-color: #E3E3EA; scrollbar-arrow-color: #5C5C8D}
.install {FONT-FAMILY: Arial, Verdana; FONT-SIZE: 20px; FONT-WEIGHT: bold; COLOR: #000000}
</style>
</head>
<?php
if(!in_array($language, array('simplified_chinese_gbk', 'simplified_chinese_utf8', 'traditional_chinese_big5', 'traditional_chinese_utf8', 'english'))) {
?>
<body bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" align="center">
<tr><td valign="middle" align="center">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr align="center" valign="middle">
<td bgcolor="#000000">
<table cellpadding="10" cellspacing="1" border="0" width="500" height="100%" align="center">
<tr>
<td valign="middle" align="center" bgcolor="#EBEBEB">
<!-- final utf8/orig <br><b>Bra Installation Wizard</b><br><br>Please choose your prefered language<br><br><center><a href="?language=simplified_chinese_gbk">[简体中文 GBK]</a> <a href="?language=simplified_chinese_utf8">[简体中文 UTF-8]</a><br><a href="?language=traditional_chinese_big5">[繁體中文 BIG5]</a> <a href="?language=traditional_chinese_utf8">[繁體中文 UTF-8]</a><br><a href="?language=english">[English]</a><br><br> -->
<br><b>Bra Installation Wizard</b><br><br>Please choose your prefered language<br><br><center> <a href="?language=simplified_chinese_utf8">[简体中文]</a><br> <a href="?language=traditional_chinese_utf8">[繁體中文]</a><br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></td></table>
</body>
</html>
<?php
exit();
} else {
?>
<body bgcolor="#3A4273" text="#000000">
<table width="95%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center">
<tr>
<td>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="install" height="30" valign="bottom"><font color="#FF0000">>></font>
<?=$lang['install_wizard']?></td>
</tr>
<tr>
<td>
<hr noshade align="center" width="100%" size="1">
</td>
</tr>
<tr>
<td align="center">
<b><?=$lang['welcome']?></b>
</td>
</tr>
<tr>
<td>
<hr noshade align="center" width="100%" size="1">
</td>
</tr>
<?
}
if(!$action) {
$discuz_license = str_replace(' ', ' ', $lang['license']);
?>
<tr>
<td><b><?=$lang['current_process']?> </b><font color="#0000EE"><?=$lang['show_license']?></font></td>
</tr>
<tr>
<td>
<hr noshade align="center" width="100%" size="1">
</td>
</tr>
<tr>
<td><b><font color="#FF0000">></font><font color="#000000"> <?=$lang['agreement']?></font></b></td>
</tr>
<tr>
<td><br>
<table width="90%" cellspacing="1" bgcolor="#000000" border="0" align="center">
<tr>
<td bgcolor="#E3E3EA">
<table width="99%" cellspacing="1" border="0" align="center">
<tr>
<td>
<?=$discuz_license?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<br>
<form method="post" action="?language=<?=$language?>">
<input type="hidden" name="action" value="config">
<input type="submit" name="submit" value="<?=$lang['agreement_yes']?>" style="height: 25">
<input type="button" name="exit" value="<?=$lang['agreement_no']?>" style="height: 25" onclick="javascript: window.close();">
</form>
</td>
</tr>
<?
} elseif($action == 'config') {
$exist_error = FALSE;
$write_error = FALSE;
if(file_exists('./config.inc.php')) {
$fileexists = result(1, 0);
} else {
$fileexists = result(0, 0);
$exist_error = TRUE;
$config_info = $lang['config_nonexistence'];
}
if(is_writeable('./config.inc.php')) {
$filewriteable = result(1, 0);
$config_info = $lang['config_comment'];
} else {
$filewriteable = result(0, 0);
$write_error = TRUE;
$config_info = $lang['config_unwriteable'];
}
?>
<tr>
<td><b><?=$lang['current_process']?> </b><font color="#0000EE"><?=$lang['configure']?></font></td>
</tr>
<tr>
<td>
<hr noshade align="center" width="100%" size="1">
</td>
</tr>
<tr>
<td><b><font color="#FF0000">></font><font color="#000000"> <?=$lang['check_config']?></font></b></td>
</tr>
<tr>
<td>config.inc.php <?=$lang['check_existence']?> <?=$fileexists?></td>
</tr>
<tr>
<td>config.inc.php <?=$lang['check_writeable']?> <?=$filewriteable?></td>
</tr>
<tr>
<td>
<hr noshade align="center" width="100%" size="1">
</td>
</tr>
<tr>
<td><b><font color="#FF0000">></font><font color="#000000"> <?=$lang['edit_config']?></font></b></td>
</tr>
<tr>
<td align="center"><br><?=$config_info?></td>
</tr>
<?
if(!$exist_error) {
if(!$write_error) {
$dbhost = 'localhost';
$dbuser = 'dbuser';
$dbpw = 'dbpw';
$dbname = 'dbname';
$tablepre = 'bra_';
$authkey = 'bra';
$moveut = 0;
$gamefounder = 'admin';
@include './config.inc.php';
$now = time();
list($nowsec,$nowmin,$now
没有合适的资源?快使用搜索试试~ 我知道了~
生存游戏源代码PHP+MYSQL
共740个文件
gif:440个
php:156个
htm:100个
5星 · 超过95%的资源 需积分: 50 58 下载量 155 浏览量
2009-11-13
21:26:01
上传
评论 1
收藏 1.85MB RAR 举报
温馨提示
安装方式跟插件版相同,执行 bra/install.php 文件 注意: 1.用户第一次登录时,即为注册 2.没有退出功能,关闭浏览器时自动注销
资源推荐
资源详情
资源评论
收起资源包目录
生存游戏源代码PHP+MYSQL (740个子文件)
style_1.css 3KB
style_10.css 3KB
style_1.css 3KB
style_10.css 3KB
help_1.gif 61KB
help_1.gif 61KB
bru.gif 35KB
bru.gif 35KB
question.gif 11KB
question.gif 11KB
m_17.gif 5KB
m_17.gif 5KB
f_4.gif 5KB
f_4.gif 5KB
f_19.gif 5KB
f_19.gif 5KB
f_40.gif 5KB
f_40.gif 5KB
f_18.gif 5KB
f_18.gif 5KB
m_16.gif 5KB
m_16.gif 5KB
i_ana.gif 5KB
i_ana.gif 5KB
f_15.gif 5KB
f_15.gif 5KB
f_13.gif 5KB
f_13.gif 5KB
f_20.gif 5KB
f_20.gif 5KB
m_10.gif 5KB
m_10.gif 5KB
f_3.gif 5KB
f_3.gif 5KB
f_35.gif 5KB
army1.gif 5KB
f_35.gif 5KB
army1.gif 5KB
m_34.gif 5KB
m_34.gif 5KB
m_18.gif 5KB
m_18.gif 5KB
f_16.gif 5KB
f_16.gif 5KB
m_21.gif 5KB
m_21.gif 5KB
n_1.gif 5KB
i_sakamochi.gif 5KB
n_1.gif 5KB
i_sakamochi.gif 5KB
f_7.gif 5KB
f_7.gif 5KB
f_5.gif 5KB
f_5.gif 5KB
i_inada.gif 5KB
i_inada.gif 5KB
boss.gif 5KB
boss.gif 5KB
f_11.gif 5KB
f_11.gif 5KB
f_12.gif 5KB
f_12.gif 5KB
m_19.gif 5KB
m_19.gif 5KB
f_6.gif 5KB
f_6.gif 5KB
m_31.gif 5KB
m_31.gif 5KB
m_7.gif 5KB
m_7.gif 5KB
f_21.gif 5KB
f_21.gif 5KB
m_12.gif 5KB
m_12.gif 5KB
i_ooki.gif 5KB
i_ooki.gif 5KB
misaki.gif 5KB
misaki.gif 5KB
i_anna.gif 5KB
i_anna.gif 5KB
f_30.gif 5KB
f_30.gif 5KB
f_14.gif 5KB
f_14.gif 5KB
i_bus.gif 5KB
i_bus.gif 5KB
m_14.gif 5KB
m_14.gif 5KB
f_1.gif 5KB
f_1.gif 5KB
f_2.gif 5KB
f_2.gif 5KB
m_3.gif 5KB
m_3.gif 5KB
m_9.gif 5KB
m_9.gif 5KB
n_11.gif 5KB
n_11.gif 5KB
f_17.gif 5KB
f_17.gif 5KB
共 740 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- win7dellxps2013-09-14很不错的源码,找了很久了。
- u0107389262013-05-18好东西0.0 但是 有木有最新的0.0
- mssff2013-12-23安装不行,哎
- demon07042013-04-28好东西,找很久了!
- Ajie_Task2015-10-29表示啥用也没有
bjackdl
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功