1 Star 0 Fork 4

moli/wap_game_development

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
game.php 4.30 KB
一键复制 编辑 原始数据 按行查看 历史
单薄 提交于 2019-01-20 18:40 . 2.1.0 b1
<?php
//error_reporting(0);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// echo "游戏正在重构中,请耐心等待<br/>";
//require_once 'class/player.php';
require_once 'class/game.php';
$sess = new \main\sess();
$sess->startSession();
$game = new \main\game();
$arr_data = (object)[];
if ( !isset($_SESSION['sid']) ){
header("refresh:1;url=index.php");
exit("长时间未操作,请重新登录");
}
if ( !isset( $_GET['c']) ){
$arr_data->cmd = 'mid';
$cmd2 = 'gonowmid';
$cc = "";
}else{
$cc = $_GET['c'];
if ( !isset($_SESSION[ $cc ]) ){
$data = $_SESSION[ 'ccc' ];
}else{
$data = $_SESSION[ $cc ];
}
parse_str($data,$arr_data);//
$arr_data = (object)$arr_data;
}
$token_sys = $_SESSION['token'] ;
$sid_sys = $_SESSION['sid'] ;
$uid_sys = $_SESSION['uid'] ;
$_SESSION = array();
$_SESSION['sid'] = $sid_sys;
$_SESSION['token'] = $token_sys;
$_SESSION['uid'] = $uid_sys;
if (isset($data)){
$_SESSION['ccc'] = $data;
}
if ( isset( $data) && isset($cc)) {
$_SESSION[$cc] = $data;
}
if ( !isset($sid_sys) ){
header("refresh:1;url=index.php");
}
if ( !isset($c) || !isset($a)){
$c = 0;
$a = 0;
}
$player = $game->player_get_uinfo();
$game->player_update_sfzx(1);
$变量_系统 = (object)[
"颜色_红色" => '<span id="ys_red">' ,
"颜色_绿色" => '<span id="ys_green">',
"颜色_紫色" => '<span id="ys_purple">' ,
"颜色_亮橙色" => '<span id="ys_亮橙色">' ,
"颜色_颜色完" => "</span>",
'界面_空行'=>" ",
"游戏名称" => $game->get_system_config("系统","游戏名称"),
"链接_返回首页" => $game->create_url('cmd=jump&cmd2=index','返回首页'),
"链接_返回游戏" => $game->create_url_nowmid_obj(),
'链接_回复活点' =>$game->create_url_goremid(),
'链接_包裹' => $game->create_url('cmd=bagzb&cmd2=bagzb','包裹'),
'链接_任务' => $game->create_url("cmd=playertask","任务"),
'链接_查看地图' => $game->create_url("cmd=allmap&cmd2=allmap","所有地图"),
'链接_状态' => $game->create_url("cmd=zhuangtai&cmd2=zhuangtai","状态"),
'链接_聊天' => $game->create_url("cmd=liaotian&ltlx=all","聊天"),
'链接_排行' => $game->create_url("cmd=paihang","排行"),
'链接_修炼' => $game->create_url("cmd=xiulian&cmd2=xiulian","修炼"),
'链接_坊市' => $game->create_url("cmd=fangshi_zb","坊市"),
'链接_门派' => $game->create_url("cmd=club&canshu=into_club","门派"),
'链接_好友' => $game->create_url("cmd=","好友"),
'链接_兑换码' => $game->create_url("cmd=duihuan","兑换码"),
'链接_宠物' => $game->create_url("cmd=chongwu","宠物"),
'任务_数量' => count($game->rw_get_player_wwc()),
'装备1位置' => $game->get_system_config("游戏","装备1"),
'装备2位置' => $game->get_system_config("游戏","装备2"),
'装备3位置' => $game->get_system_config("游戏","装备3"),
'装备4位置' => $game->get_system_config("游戏","装备4"),
'装备5位置' => $game->get_system_config("游戏","装备5"),
'装备6位置' => $game->get_system_config("游戏","装备6"),
"链接_装备" => $game->create_url("cmd=bagzb&cmd2=bagzb","装备"),
"链接_道具" => $game->create_url("cmd=bagdj&cmd2=bagdj","道具"),
"链接_药品" => $game->create_url("cmd=bagyp&cmd2=bagyp","药品"),
"链接_技能" => $game->create_url("cmd=bagjn&cmd2=bagyp","技能"),
];
$ym = "./game/{$arr_data->cmd}.php";
$time = time();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" >
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title><?php echo $变量_系统->游戏名称 ?></title>
<link rel="stylesheet" href="css/gamecss.css?ver=<?php echo $time ?>">
</head>
<body>
<div class="h5ui-page spacing-cell">
<?php
if ( !$ym == '' ){
include "$ym";
}?>
<!-- jQuery -->
<script src="./js/jquery.min.js"></script>
<!-- H5UI JS -->
<script src="./js/h5ui.min.js"></script>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/moli97/wap_game_development.git
git@gitee.com:moli97/wap_game_development.git
moli97
wap_game_development
wap_game_development
master

搜索帮助