function loginfo($status)
{
    include '../comm.fc/sys-config.php';
    //全局设置
    include '../comm.fc/gb-head.php';
    //公用HTML头部
    include '../prog.fc/dialog.php';
    //对话框函数
    print '<!DOCTYPE html>';
    print '<!FC-SYSTEM> <!-- MARKED BY FC-SYSTEM -->';
    print '<html>';
    if ($status == 1) {
        $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
        if ($filename != "syslogin.php") {
            echo '<SCRIPT>window.location.href="syslogin.php"</SCRIPT>';
        }
        print '<body class="dialogbody"><center><form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
        dialogbegin('系统验证');
        print '<table border="0">
                <tr><td>用户名:</td><td><input name="FC_USER" type="text" size="50" /></td></tr>
                <tr><td>密 码:</td><td><input name="FC_PW" type="password" size="50" /></td></tr>
                </table>';
        dialogend('<input name="loginbut" type="submit" class="buttonface" value="登录" />');
        print '</form></center></body>';
    } else {
        if ($status == 2) {
            $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
            if ($filename != "syslogin.php") {
                echo '<SCRIPT>window.location.href="syslogin.php"</SCRIPT>';
            }
            print '<body class="dialogbody"><center>';
            dialogbegin('登录失败');
            print '用户名或者密码错误,重新登陆请重新打开浏览器';
            dialogend('FC-System Computer Inc');
            print '</center></body>';
        } else {
            $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
            if ($filename != "syslogin.php") {
                echo '<SCRIPT>window.location.href="syslogin.php"</SCRIPT>';
            }
            print '<body class="dialogbody"><center>';
            dialogbegin('登录失败');
            print '未知错误';
            dialogend('FC-System Computer Inc');
            print '</center></body>';
        }
    }
    print '</html>';
}
"/></td></tr>
                <tr><td>MySQL服务:</td><td><input name="mysqlservice" type="text" class="text" size="55" value="<?php 
echo $service->item(0)->getElementsByTagName("mysql")->item(0)->nodeValue;
?>
"/></td></tr>
                <tr><td>FileZilla:</td><td><input name="filezillaservice" type="text" class="text" size="55" value="<?php 
echo $service->item(0)->getElementsByTagName("filezilla")->item(0)->nodeValue;
?>
"/></td></tr>
            </table>
        <?php 
dialogend('请继续下一步设定');
?>
        <br/>
        <?php 
dialogbegin('MySQL环境配置');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>服务器地址:</td><td><input name="mysqlserver" type="text" class="text" size="55" value="<?php 
echo $sqluser->item(0)->getElementsByTagName("server")->item(0)->nodeValue;
?>
"/></td></tr>
                <tr><td>服务器端口:</td><td><input name="mysqlport" type="text" class="text" size="55" value="<?php 
echo $sqluser->item(0)->getElementsByTagName("port")->item(0)->nodeValue;
?>
"/></td></tr>
                <tr><td>用户名:</td><td><input name="mysqluser" type="text" class="text" size="55" value="<?php 
echo $sqluser->item(0)->getElementsByTagName("user")->item(0)->nodeValue;
?>
"/></td></tr>
                <tr><td>MySQL支持:</td><td colspan="2"><?php 
echo function_exists(mysql_close) ? "支持MySQL数据库" : "不支持MySQL数据库";
?>
</td></tr>
                <tr><td>引擎:</td><td colspan="2"><?php 
echo $_SERVER['SERVER_SOFTWARE'];
?>
</td></tr>
            </table>
        <?php 
dialogend('FC-System Computer Inc');
?>
   
        <br/> 
        <?php 
dialogbegin('服务器网络信息');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>服务器地址:</td><td><?php 
echo $_SERVER["HTTP_HOST"];
?>
 端口:<?php 
echo $_SERVER['SERVER_PORT'];
?>
</td></tr>
                <tr><td>客户机IP地址:</td><td><?php 
echo GetHostByName($_SERVER['REMOTE_ADDR']);
?>
</td></tr>
                <tr><td>服务器用户域:</td><td><?php 
//创建DOM指定编码
$xmlDoc->load('../comm.fc/server-users.xml');
//载入XML配置文件
$usertotal = $xmlDoc->getElementsbyTagName('usertotal')->item(0)->nodeValue;
//读取用户总数
$user = $xmlDoc->getElementsbyTagName('user');
//user节点读入
?>
<body class="dialogbody"><center>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="post">
        <input name="update" type="hidden" value="go" />
        <?php 
dialogbegin('查看用户');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>用户列表:</td><td><select name="userid">
                    <?php 
if ($_POST['search'] == "查询") {
    for ($i = 1; $i <= $usertotal; $i++) {
        if ($user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue == $_POST['userid']) {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
                print '<option value="' . $user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue . '" selected>' . $user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue . ' - [' . $user->item($i - 1)->getElementsByTagName("domain")->item(0)->nodeValue . ']</option>';
            }
        } else {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
<!DOCTYPE html>
<!FC-SYSTEM> <!-- MARKED BY FC-SYSTEM -->
<!-- =========================================
样本文件:对话框样本文件
文本版本:1, 0, 0, 1
字符编码:Unicode UTF-8
程序语言:PHP
编写人员:dfc643(北极光.Norckon)
                         http://www.fcsys.us
========================================== -->
<html>
<?php 
include '../comm.fc/sys-config.php';
//全局设置
include '../comm.fc/gb-head.php';
//公用HTML头部
include '../prog.fc/dialog.php';
//对话框函数
?>
  
<body class="dialogbody"><center>
 <?php 
dialogbegin('系统提示');
print '<h1>请重启您的Chrome方可退出登陆!</h1>                           <!-- ┎─────┒ -->';
print '<hr/>                                           <!-- ┃对话框内容┃ -->';
print '下次登陆请重新启动您的Chrome浏览器!                        <!-- ┖─────┚ -->';
dialogend('FC-System Computer Inc');
?>
    
</center></body>
</html>
<html>
<?php 
include '../comm.fc/sys-config.php';
//全局设置
include '../comm.fc/gb-head.php';
//公用HTML头部
include '../prog.fc/dialog.php';
//对话框函数
include '../prog.fc/daolian.php';
//防盗链功能
?>
  
<body class="dialogbody"><center>
    <form action="Sample.action" enctype="multipart/form-data" method="post">
        <?php 
dialogbegin('欢迎来到Kitty的世界!');
?>
     <!--   对话框标题   -->
            <h1>Hello Kitty!</h1>                           <!-- ┎─────┒ -->
            <hr/>                                           <!-- ┃对话框内容┃ -->
            FC-System Computer Inc.                         <!-- ┖─────┚ -->
        <?php 
dialogend('
            <input name="Custom1" type="button" class="button" value="自定义按钮1">      <!-- ┎─────┒ -->
            <input name="Custom2" type="button" class="button" value="自定义按钮2">      <!-- ┃按钮区内容┃ -->
            <input name="forDetail" type="button" class="button" value="现在就去了解">   <!-- ┖─────┚ -->
        ');
?>
    
    </form>
</center></body>
include '../prog.fc/dialog.php';
//对话框函数
include '../prog.fc/daolian.php';
//防盗链功能
include 'syslogin.php';
//用户验证功能
?>
  

<body class="dialogbody"><center>
<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post">
<?php 
dialogbegin('退出系统');
?>
     <!--   对话框标题   -->
    真的要退出系统吗?
<?php 
dialogend('<input name="syslogout" type="submit" class="buttonface" value="退出系统"/>');
?>
<br/>
<center>This System Designed by <a href="http://www.fcsys.us/">FC-System Computer Inc</a></center>
</form>
</center></body>

<?php 
if ($_POST['syslogout'] == "退出系统") {
    unset($_SESSION['FC_GOODJOU']);
    echo '<SCRIPT>window.top.location.href="syslogout-other.php"</SCRIPT>';
//创建DOM指定编码
$xmlDocs->load("../comm.fc/server-config.xml");
//载入XML配置文件
$appPath = $xmlDocs->getElementsByTagName("path");
//path节点读入
$sqluser = $xmlDocs->getElementsByTagName("mysqluser");
//mysqluser节点读入
?>
<body class="dialogbody"><center>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="POST">
        <input name="update" type="hidden" value="go" />
        <?php 
dialogbegin('添加用户');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>用户ID:</td><td><?php 
echo $usertotal + 1;
?>
</td></tr>
                <tr><td>用户名:</td><td><input name="username" type="text" class="input" size="50" value="由字母开头,仅允许字母数字下划线"/></td></tr>
                <tr><td>密码:</td><td><input name="password" type="password" class="input" size="50"/></td></tr>
                <tr><td>域名:</td><td><input name="domain" type="text" class="input" size="50" value="多个域名空格隔开"/></td></tr>
                <tr><td>数据库:</td><td>用户名_mysql (由系统指定)</td></tr>
                <tr><td>根目录:</td><td><?php 
echo $appPath->item(0)->getElementsByTagName("wwwroot")->item(0)->nodeValue;
?>
\用户名 (由系统指定)</td></tr>
function loginfo($status)
{
    include 'config/config.php';
    //全局设置
    include 'config/gb-head.php';
    //公用HTML头部
    include 'config/dialog.php';
    //对话框函数
    if ($status == 1) {
        $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
        if ($filename != "login.php") {
            echo '<SCRIPT>window.location.href="login.php"</SCRIPT>';
        }
        print '<body class="dialogbody"><center><form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
        dialogbegin('系统登录');
        print '<table border="0">
                <tr><td>用户名:</td><td><input name="FC_USER" type="text" size="25" /></td></tr>
                <tr><td>密 码:</td><td><input name="FC_PW" type="password" size="25" /></td></tr>
                </table>';
        dialogend('<input name="loginbut" type="submit" class="buttonface" value="登陆" />');
        print '</form></center></body>';
    } else {
        if ($status == 2) {
            $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
            if ($filename != "login.php") {
                echo '<SCRIPT>window.location.href="login.php"</SCRIPT>';
            }
            print '<body class="dialogbody"><center>';
            dialogbegin('登录失败');
            print '用户名或者密码错误,请重试!';
            dialogend('FC-System Computer Inc');
            print '</center></body>';
        } else {
            $filename = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
            if ($filename != "login.php") {
                echo '<SCRIPT>window.location.href="login.php"</SCRIPT>';
            }
            print '<body class="dialogbody"><center>';
            dialogbegin('登录失败');
            print '未知错误';
            dialogend('FC-System Computer Inc');
            print '</center></body>';
        }
    }
    print '</html>';
}
$appPath = $xmlDoc2->getElementsByTagName("path");
//path节点读入
$service = $xmlDoc2->getElementsByTagName("service");
//path节点读入
$sqluser = $xmlDoc2->getElementsByTagName("mysqluser");
//mysqluser节点读入
?>

<body class="dialogbody"><center>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="POST">
        <input name="update" type="hidden" value="go" />
        <?php 
dialogbegin('编辑用户');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>用户列表:</td><td><select name="userid">
                    <?php 
if ($_POST['search'] == "读入信息" || $_POST['search'] == "修改") {
    for ($i = 1; $i <= $usertotal; $i++) {
        if ($user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue == $_POST['userid']) {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
                print '<option value="' . $user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue . '" selected>' . $user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue . ' - [' . $user->item($i - 1)->getElementsByTagName("domain")->item(0)->nodeValue . ']</option>';
            }
        } else {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
$appPath = $xmlDoc2->getElementsByTagName("path");
//path节点读入
$service = $xmlDoc2->getElementsByTagName("service");
//path节点读入
$sqluser = $xmlDoc2->getElementsByTagName("mysqluser");
//mysqluser节点读入
?>

<body class="dialogbody"><center>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="POST">
        <input name="update" type="hidden" value="go" />
        <?php 
dialogbegin('删除用户');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr><td>用户列表:</td><td><select name="userid">
                    <?php 
if ($_POST['search'] == "读入信息" || $_POST['search'] == "删除用户") {
    for ($i = 1; $i <= $usertotal; $i++) {
        if ($user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue == $_POST['userid']) {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
                print '<option value="' . $user->item($i - 1)->getElementsByTagName("userid")->item(0)->nodeValue . '" selected>' . $user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue . ' - [' . $user->item($i - 1)->getElementsByTagName("domain")->item(0)->nodeValue . ']</option>';
            }
        } else {
            if ($user->item($i - 1)->getElementsByTagName("username")->item(0)->nodeValue == "") {
            } else {
<?php 
$xmlDoc = new DOMDocument('1.0', 'UTF-8');
//创建DOM指定编码
$xmlDoc->load("../comm.fc/server-config.xml");
//载入XML配置文件
$service = $xmlDoc->getElementsByTagName("service");
//services节点读入
?>

<body class="dialogbody"><center>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="post">
        <?php 
dialogbegin('服务控制');
?>
     <!--   对话框标题   -->
            <table border="0">
                <tr>
                    <td>nginx服务:</td>
                    <td>
                        <input name="nginx" type="submit" class="buttonface" value="启动">
                        <input name="nginx" type="submit" class="buttonface" value="停止">
                        <input name="nginx" type="submit" class="buttonface" value="重启">  
                    </td>
                </tr>
                <tr>
                    <td>MySQL服务:</td>
                    <td>
                        <input name="mysql" type="submit" class="buttonface" value="启动">
//公用HTML头部
include '../prog.fc/dialog.php';
//对话框函数
include '../prog.fc/daolian.php';
//防盗链功能
include 'syslogin.php';
//用户验证功能
?>
  
<body class="dialogbody"><center>
    <script>
        function fcsystem()
        {
            window.location.href="http://www.fcsys.us/";
        }
    </script>
    <?php 
dialogbegin('关于 虚拟主机管理系统');
?>
     <!--   对话框标题   -->
        <h1 style="margin-top:10px;">虚拟主机管理系统<font size="2"><small>版本:1.2 build131009</small></font></h1>
        <hr/>
        本程序完美与nginx, Mysql, Php, Filezilla相兼容,运行于微软Windows系列服务器家族操作系统当中,是一款集中化管理虚拟主机的应用程序。<br/><br/>
        程序是开源软件,由FC-System Computer Inc开发与维护,主要项目人(dfc643[北极光.Norckon])参与程序开发与设计。相关源代码可于FC-System官网下载。
    <?php 
dialogend('<input name="fcsystem" type="button" class="buttonface" onclick="fcsystem()" value="访问 FC-SYSTEM"/>');
?>
    <br/>
    <center>This System Designed by <a href="http://www.fcsys.us/">FC-System Computer Inc</a></center>
</center></body>
</html>