<?php

/*
 * ----------------------------------------------------
 * 程序名称: 牛叉广告管理系统(NiuXams)
 * 程序功能: 实现专业的广告投放、管理和统计等管理系统！
 * 程序开发: 牛叉软件(NiuXSoft.com)
 * 版权所有: [NiuXams] (C)2013-2099 NiuXSoft.com
 * 官方网站: www.niuxsoft.com  Email: niuxsoft@163.com
 * ----------------------------------------------------
 * 使用条款:
 * 1.为构建创新型经济社会,请尊重保护知识产权！
 * 2.该软件个人非商业用途免费使用.
 * 3.免费使用禁止修改版权信息和官方推广链接.
 * 4.禁止任何衍生版本.禁止任何非法修改源代码贩卖.
 * ----------------------------------------------------
 */

defined('NIUX_INCLUDED') or exit('Access Denied.');
$title = '控制面板首页';
$mainGGdata = insou(file_get_contents('./data/maingg.html'));
($ifr = cifr()) && ccifr();
require './mo_head.php';
?>
<style>
    .tt{
        padding:.5em 1em;
    }
    .cc{
        padding:.2em;
        margin:.4em;
    }
    .cp{
        margin:.7em 1em;
    }
    td.left {
        width:10em;
        text-align:right;
    }
    td{
        padding: .5em 0;
    }
</style>
<script>
    $(function () {
        $("#authorization").click(function () {
            $.get('main.php?menu=ck&ac=nowgo');
        });
    });
</script>
<div class="fullScreen">

    <div class="ptb hd ui-widget-content">
        <h2><?php echo $title ?></h2>
    </div>

    <div class="fw mtb">
        <div class="hfw">
            <div class="cc ui-widget-content ui-corner-all">
                <p class="tt ui-widget-header ui-corner-all">系统环境信息</p>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="left">管理员名：</td>
                        <td><?php echo adminName() ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">服务器主机名：</td>
                        <td><?php echo $_SERVER['SERVER_NAME'] ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">服务器端口：</td>
                        <td><?php echo $_SERVER['SERVER_PORT'] ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">服务器操作系统：</td>
                        <td><?php echo php_uname() ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">服务器解译引擎：</td>
                        <td><?php echo $_SERVER['SERVER_SOFTWARE'] ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">服务器语言：</td>
                        <td><?php echo getenv("HTTP_ACCEPT_LANGUAGE") ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">PHP版本：</td>
                        <td><?php echo phpversion() ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">MySQL版本：</td>
                        <td><?php echo $nxsql->server_info ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">NiuXams版本：</td>
                        <td><?php echo NIUXAMS_VER ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">PHP运行方式：</td>
                        <td><?php echo PHP_SAPI ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">PHP时钟：</td>
                        <td><?php echo date("Y-m-d H:i:s") ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">mysqli扩展：</td>
                        <td><?php echo function_exists("mysqli_init") ? '√' : '×' ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">打开远程文件：</td>
                        <td><?php echo get_cfg_var("allow_url_fopen") ? '√' : '×' ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">Cookie支持：</td>
                        <td><?php echo isset($_COOKIE) ? '√' : '×' ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">Session支持：</td>
                        <td><?php echo function_exists("session_start") ? '√' : '×' ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">自动字符串转义：</td>
                        <td><?php echo get_cfg_var("magic_quotes_gpc") ? '√' : '×' ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">上传文件最大限制：</td>
                        <td><?php echo get_cfg_var("upload_max_filesize") ?>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">脚本超时时间：</td>
                        <td><?php echo get_cfg_var("max_execution_time") ?>秒&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="left">脚本占用最大内存：</td>
                        <td><?php echo get_cfg_var("memory_limit") ?>&nbsp;</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="hfw">
            <div class="cc ui-widget-content ui-corner-all">
                <p class="tt ui-widget-header ui-corner-all">商业授权查询</p>
                <p class="cp">如果您已购买NiuXams产品商业使用授权，您可以在我们的授权中心查询到授权信息，获得应得功能。</p>
                <p class="cp tr"><a href="http://www.niuxsoft.com/authorization/?action=query&class=niuxams&domain=<?php echo $_SERVER['SERVER_NAME'] ?>" target="_blank" class="button" id="authorization">商业授权查询</a></p>
            </div>
            <div class="cc ui-widget-content ui-corner-all<?php echo $ifr ? ' hide' : '' ?>">
                <p class="tt ui-widget-header ui-corner-all">赞助商链接（<a href="http://www.niuxsoft.com/ad/" target="_blank">说明</a>）</p>
                <div class="cp"><?php echo $mainGGdata ?></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>

</div>
<?php
require './mo_foot.php';
