📄 index12.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");//加载数据库类文件
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">
<script src="js/window.js"></script>
<style type="text/css">
<!--
body {
background-image: url(images/zb_0.jpg);
}
-->
</style>
<script language="javascript" type="text/javascript">
<!--
function $(d){return document.getElementById(d);}
function gs(d){var t=$(d);if (t){return t.style;}else{return null;}}
function gs2(d,a){
if (d.currentStyle){
var curVal=d.currentStyle[a]
}else{
var curVal=document.defaultView.getComputedStyle(d, null)[a]
}
return curVal;
}
function ChatHidden(){gs("ChatBody").display = "none";gs("main12").top="550px";gs("main12").left="543px";}
function ChatShow(){gs("ChatBody").display = "";gs("main12").top="240px";}
function ChatClose(){gs("main12").display = "none";}
function ChatSend(obj){
var o = obj.ChatValue;
if (o.value.length>0){
$("ChatContent").innerHTML += "<strong>Akon说:</strong>"+o.value+"<br/>";
o.value='';
}
}
if (document.getElementById){
(
function(){
if (window.opera){ document.write("<input type='hidden' id='Q' value=' '>"); }
var n = 500;
var dragok = false;
var y,x,d,dy,dx;
function move(e)
{
if (!e) e = window.event;
if (dragok){
d.style.left = dx + e.clientX - x + "px";
d.style.top = dy + e.clientY - y + "px";
return false;
}
}
function down(e){
if (!e) e = window.event;
var temp = (typeof e.target != "undefined")?e.target:e.srcElement;
if (temp.tagName != "HTML"|"BODY" && temp.className != "dragclass"){
temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
}
if('TR'==temp.tagName){
temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
}
if (temp.className == "dragclass"){
if (window.opera){ document.getElementById("Q").focus(); }
dragok = true;
temp.style.zIndex = n++;
d = temp;
dx = parseInt(gs2(temp,"left"))|0;
dy = parseInt(gs2(temp,"top"))|0;
x = e.clientX;
y = e.clientY;
document.onmousemove = move;
return false;
}
}
function up(){
dragok = false;
document.onmousemove = null;
}
document.onmousedown = down;
document.onmouseup = up;
}
)();
}
-->
<!--
var IFrameHeight = 280; //方案框架的初始高度
function SetIFrameHeight()
{
try{
IFrameHeight = odds1x2.document.body.scrollHeight+10;
}
catch(e){}
setTimeout("SetIFrameHeight()",1000);
}
//-->
</script>
</head>
<body style="overflow-x:hidden;" <?php if(!$is_login['status']) { ?>onload="showalert1();"<?php } ?> oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<div id="main12" class="dragclass" style="left:543px;top:240px;z-index:8;">
<table width="460" border="0" cellpadding="0" cellspacing="0" class="mo_01" id="ChatHead">
<tr>
<td height="35" colspan="4" background="message/images/m_01.gif" bgcolor="#FFFFFF" >
<div class="mo_02"><a href="#" onclick="ChatClose();"><img src="message/images/m_02.gif" width="16" height="15" border="0" /></a></div>
<div class="mo_02"><a href="#"onclick="ChatShow();"><img src="message/images/m_03.gif" width="16" height="15" border="0" /></a></div>
<div class="mo_02"><a href="#" onclick="ChatHidden();"><img src="message/images/m_04.gif" width="16" height="15" border="0" /></a></div></td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#7777777" ></td>
</tr>
<tr><td width="460" colspan="4" >
<div id="ChatBody">
<iframe src="message/main.php" name="right" width="100%" marginheight="0" scrolling="0" frameborder="0" id="top" style="height:expression(IFrameHeight)" ></iframe></div>
</td></tr></table>
<script language="javascript">
SetIFrameHeight();
</script>
</div>
<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">
<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>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -