📄 index.php
字号:
<?php
require_once("configs/Configs.php");//加载配置文件
require_once("functions/login_flag.php");//是否已经登录
require_once("functions/func_common.php");
require_once("functions/class_mysql.php");//加载数据库类文件
require_once("../give_cashmoney2.php");
if($_GET['city_id']){
$cid3 = $_GET['city_id'];
}else{
$cid3 = $_COOKIE['CityId'];
}
//城市类别
$query=$db->query("select c_name,c_type,c_area,c_area_x from city where `u_id`='".$_COOKIE['UserId']."' and `c_id`='".$cid3."'");
$c_type=$db->fetch_array($query);
setcookie("city_type",$c_type['c_type'],time()+$cookie_times,"/");
$_COOKIE['city_type'] = $c_type['c_type'];
////////////////////////////城市转换////////////////////////////////////
if($_GET['action']=="city_jump" and $_GET['city_id']){
setcookie("CityId","",time()-$cookie_times,"/");
setcookie("CityArea","",time()-$cookie_times,"/");
$_COOKIE["CityId"]="";
$_COOKIE["CityArea"]="";
$query=$db->query("select * from city where `u_id`='".$_COOKIE['UserId']."' and `c_id`='".$_GET['city_id']."'");
$temp_result=$db->fetch_array($query);
setcookie("CityId",$temp_result['c_id'],time()+$cookie_times,"/");
setcookie("CityArea",$temp_result['c_area']."|".$temp_result['c_area_x'],time()+$cookie_times,"/");
$_COOKIE["CityId"]=$temp_result['c_id'];
$_COOKIE["CityArea"]=$temp_result['c_area']."|".$temp_result['c_area_x'];
echomsg("","?");
}
if($c_type['c_name']=="") echomsg("","cityname_setting.php?c_id=".$cid3."&area=".$c_type['c_area']."&x=".$c_type['c_area_x']."&y=".$c_type['c_area_y']);
//判断是否登录过
$query=$db->query("select status from `player_info` where `u_id`='".$_COOKIE['UserId']."'");
$is_login=$db->fetch_array($query);
?>
<? include('../configs/configs.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><? echo $webgamesitename; ?> - 网页网络游戏</title>
<link href="css/id.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="bs_online/css/cs.css" rel="stylesheet" type="text/css">
<script src="js/window.js"></script>
<style type="text/css">
<!--
body {
background-image: url(images/zb_0.jpg);
}
-->
</style>
</head>
<body style="overflow-x:hidden;" <?php if(!$is_login['status']) { ?>onload="showalert1();"<?php } ?> oncontextmenu="return false" onselectstart="return false" ondragstart="return false" >
<!--
<iframe frameborder="0" marginheight="0" marginwidth="yes" scrolling="no" id="function_area" name="function_area" width="1004" height="134" src="function_area.php" style="margin-top:0px; margin-left:auto; margin-right:auto;"></iframe>
-->
<iframe frameborder="0" marginheight="0" marginwidth="yes" scrolling="no" id="infomation" name="infomation" width="1004" height="238" src="infomation.php" style="margin-top:0px; margin-left:auto; margin-right:auto;"></iframe>
<div id="main_body">
<div id="tc_01">
<div id="mc_001"><a href="war_info.php?build_page=produce" target="main"><img src="images/mc_001.gif" border="0" /></a></div>
<div id="mc_002"><a href="build.php?build_page=produce" target="main"><img src="images/mc_002.gif" border="0" /></a></div>
<div id="mc_003"><a href="soldier_educate.php?build_page=army" target="main"><img src="images/mc_003.gif" border="0" /></a></div>
<div id="mc_004"><a href="study.php?build_page=study" target="main"><img src="images/mc_004.gif" border="0" /></a></div>
<div id="mc_005"><a href="my_gen.php?build_page=my_gen" target="main"><img src="images/mc_005.gif" border="0" /></a></div>
<div id="mc_007"><a href="local_market.php?build_page=market" target="main"><img src="images/mc_007.gif" border="0" /></a></div>
<div id="mc_008"><a href="world_map.php?build_page=world_map" target="main"><img src="images/mc_008.gif" border="0" /></a></div>
<div id="mc_009"><a href="union.php?build_page=union" target="main"><img src="images/mc_009.gif" border="0" /></a></div>
</div>
<div id="tc_03"><?php if(!$is_login['status']) {?>
<iframe frameborder="0" marginheight="0" marginwidth="yes" scrolling="no" id="main" name="main" width="719" src="<?php if(isset($_COOKIE['temp_filename']) and $_COOKIE['temp_filename']<>"index.php" and $_COOKIE['temp_filename']<>"index.php?" and $_COOKIE['temp_filename']<>"?" and $_COOKIE['temp_filename']<>"resource_auto_grow.php" and $_COOKIE['temp_filename']<>"infomation.php" and $_COOKIE['temp_filename']<>"UpdateResource.php" and $_COOKIE['temp_filename']<>"cityname_setting.php" and $_COOKIE['temp_filename']<>"function_area.php") echo $_COOKIE['temp_filename'];else echo "welcome.php";?>" style="HEIGHT: 100%; VISIBILITY: inherit; Z-INDEX: 1" onload="document.all['main'].style.height=main.document.body.scrollHeight"></iframe>
<?}else{?>
<iframe frameborder="0" marginheight="0" marginwidth="yes" scrolling="no" id="main" name="main" width="719" src="<?php if(isset($_COOKIE['temp_filename']) and $_COOKIE['temp_filename']<>"index.php" and $_COOKIE['temp_filename']<>"index.php?" and $_COOKIE['temp_filename']<>"?" and $_COOKIE['temp_filename']<>"resource_auto_grow.php" and $_COOKIE['temp_filename']<>"infomation.php" and $_COOKIE['temp_filename']<>"UpdateResource.php" and $_COOKIE['temp_filename']<>"cityname_setting.php" and $_COOKIE['temp_filename']<>"function_area.php") echo $_COOKIE['temp_filename'];else echo "war_info.php";?>" style="HEIGHT: 100%; VISIBILITY: inherit; Z-INDEX: 1" onload="document.all['main'].style.height=main.document.body.scrollHeight"></iframe>
<?}?>
</div>
</div>
<!--<script language="javascript" type="text/javascript" src="js/new.js"></script>-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -