<?php
/*
'**************************************************************************************************
' 软件名称: 搜一次 Content Management System
' 版本编号: Version 1.X
' 官方网站: http://www.syccms.com
' 官方论坛：http://bbs.syccms.com
' 版权所有: 搜一次运营团队
' 法律顾问: 杭州市元茂律师事务所 严飞律师
' 郑重声明:
'    1、任何个人或组织不得在未经授权的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    2、搜一次网络事业部保留此软件的法律追究权利
'**************************************************************************************************
*/
include "admin_loginstate.php";
include "../include/conn.php";
include "../include/function.php";
include "admin_version.php";
function get_gd_info($name) { $gd_info = gd_info(); return $gd_info[$name]; }

?><!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>系统设置</title>
<script src="js/jquery.js"></script>
<script language="javascript">
	function checkver(){
	$.get("js/ajaxfun.php?action=getver",function(R){
		$("#lastver").html(R);									  
	});	
	}
	function checkup(){
	$.get("js/ajaxfun.php?action=checkupdate",function(R){
		$("#updateinfo").html(R);											   
		});
	}
	document.getElementById("news_time").innerHTML='';
</script>
<link  href="images/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>
<body>

<div class="r_main">
	<div class="r_content">
		<div class="r_content_1">
            <div class="v_info">&nbsp;程序版本信息</div>
			<div class="v_show">&nbsp;版本检测：&nbsp;&nbsp;<strong>当前版本：<font color='#ff0000'><?php echo $S_Version?></font>，最新版本为</strong><strong><span id="lastver" style="color:red;"><a onclick="checkver()" style="cursor:pointer;">[点击检测]</a></span></strong></div>
            <div class="v_show">&nbsp;升级检测：&nbsp;&nbsp;<span id="updateinfo" style="color:red;"><a onclick="checkup()" style="cursor:pointer;">[点击检测]</a></span><strong></strong></div>
			<div class="v_show">&nbsp;您上次登陆的IP地址为：&nbsp;&nbsp;<?php echo $_SESSION['S_PreIP']?>&nbsp;[<a href="http://www.ip138.com/ips.asp?ip=<?php echo $_SESSION['S_PreIP']?>" target="_blank">查询归属地</a>]&nbsp;&nbsp;
			您本次登陆的IP为：&nbsp;<?php echo $_SESSION['S_UIP']?></div>
            <div class="S_info">&nbsp;官方最新消息</div>
            <div class="s_inewlist" id="news_time">
            <script type="text/javascript" charset="utf-8" src="http://yiciserver.sinaapp.com/notice/news/?format=html"></script>
            </div>
	   <div  style="clear:left"></div>
            <div class="S_info">&nbsp;服务器信息</div>
            <div class="S_info2">
             <div class="S_list">&nbsp;&nbsp;服务器IP：<?php echo $_SERVER["REMOTE_ADDR"];?></div>
            <div class="S_list">服务器名：<span class="forumRow"><?php echo $_SERVER['SERVER_NAME']?></span></div>
            <div class="S_list" style="overflow:hidden">&nbsp;&nbsp;服务器软件：<?php echo $_SERVER['SERVER_SOFTWARE']?></div>
            <div class="S_list" style="overflow:hidden;">站点物理路径：<?php echo $_SERVER['DOCUMENT_ROOT']?></div>
            <div class="S_list">&nbsp;&nbsp;MySQL 支持：<?php echo function_exists('mysql_close')?"<font color=green>[√]</font>".' /版本:'.mysql_get_client_info() :"<font color=red>×</font>"?></div>
            <div class="S_list"><span class="forumRow">PHP 运行方式：<?php echo PHP_SAPI?></span></div>
            <div class="S_list">&nbsp;&nbsp;GD library:<?php echo function_exists('gd_info') ? "<font color=green>[√]</font>/版本:".get_gd_info('GD Version') : "<font color=red>[×]Off</font>";?></div>    
			<div class="S_list">PHP版本 ：<?php echo phpversion()?></div>
			<div class="S_list" style="width:100%;">&nbsp;&nbsp;allow_url_fopen:<?php echo ini_get('allow_url_fopen') ? "<font color=green>[√]</font>" : "<font color=red>[×]Off</font>";?>&nbsp;&nbsp;(不符合要求将导致采集、远程资料本地化等功能无法应用)
</div>        
			<div class="S_list" style="width:100%;">&nbsp;&nbsp;safe_mode :<?php echo (ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>');?>&nbsp;&nbsp;(本系统不支持在非win主机的安全模式下运行)</div>  			<div class="S_list" style="width:100%;">&nbsp;&nbsp;curl_init:<?php echo function_exists('curl_init') ? "<font color=green>[√]</font>": "<font color=red>[×]Off</font>";?>&nbsp;&nbsp;(不符合要求将导致采集、远程资料本地化等功能无法应用)
			</div>                 
            </div>
            

		</div>
	</div>
</div>

<?php include "admin_bottom.php" ?>
</body>
</html>
