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>服务器端口:</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>密码:</td><td><input name="mysqlpassword" type="text" class="text" size="55" value="<?php echo $sqluser->item(0)->getElementsByTagName("password")->item(0)->nodeValue; ?> "/></td></tr> </table> <?php dialogend('确认填写无误后:<input type="submit" class="buttonface" value="存储设定"/>'); ?> <br/> <center>This System Designed by <a href="http://www.fcsys.us/">FC-System Computer Inc</a></center> </form> <?php if ("go" == $_POST['update']) { $appPath->item(0)->getElementsByTagName("nginx")->item(0)->nodeValue = $_POST['nginxpath']; $appPath->item(0)->getElementsByTagName("php")->item(0)->nodeValue = $_POST['phppath']; $appPath->item(0)->getElementsByTagName("mysql")->item(0)->nodeValue = $_POST['mysqlpath']; $appPath->item(0)->getElementsByTagName("wwwroot")->item(0)->nodeValue = $_POST['wwwrootpath']; $appPath->item(0)->getElementsByTagName("filezilla")->item(0)->nodeValue = $_POST['filezillapath']; $service->item(0)->getElementsByTagName("nginx")->item(0)->nodeValue = $_POST['nginxservice']; $service->item(0)->getElementsByTagName("mysql")->item(0)->nodeValue = $_POST['mysqlservice']; $service->item(0)->getElementsByTagName("filezilla")->item(0)->nodeValue = $_POST['filezillaservice']; $sqluser->item(0)->getElementsByTagName("server")->item(0)->nodeValue = $_POST['mysqlserver'];
<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 echo $_SERVER['USERDOMAIN'] == "" ? "服务器没有设置Windows域" : $_SERVER['USERDOMAIN']; ?> </td></tr> </table> <?php dialogend('FC-System Computer Inc'); ?> <br/> <center>This System Designed by <a href="http://www.fcsys.us/">FC-System Computer Inc</a></center> </form> </center></body> </html>
?> </select> </td></tr> <tr><td>用户ID:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("userid")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>用户名:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("username")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>域名:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("domain")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>数据库:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("database")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>根目录:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("wwwroot")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> </table> <?php dialogend('<input name="search" type="submit" class="buttonface" value="查询">'); ?> </form> </center></body> </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> </html>
//防盗链功能 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>'; } ?> </html>
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>'; }
</td></tr> <tr><td>域名:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("domain")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>数据库:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("database")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> <tr><td>根目录:</td><td><?php echo $_POST['update'] == "go" ? $user->item($_POST['userid'] - 1)->getElementsByTagName("wwwroot")->item(0)->nodeValue : "暂无结果"; ?> </td></tr> </table> <?php dialogend('<input name="search" type="submit" class="buttonface" onclick="return confirm(\'真的要删除该用户吗?\')" value="删除用户">'); ?> <?php if ("删除用户" == $_POST['search']) { echo '正在向系统发起删除用户请求...[ OK ]<BR/>正在删除用户目录...'; system('rd /s /q "' . $appPath->item(0)->getElementsByTagName("wwwroot")->item(0)->nodeValue . '\\' . $user->item($_POST['userid'] - 1)->getElementsByTagName("username")->item(0)->nodeValue . '"'); echo '[ OK ]<BR/>正在删除Nginx虚拟主机文件...'; $file = $appPath->item(0)->getElementsByTagName("nginx")->item(0)->nodeValue . '\\vhost\\' . $user->item($_POST['userid'] - 1)->getElementsByTagName("domain")->item(0)->nodeValue . '.ini'; system('del /f /s /q "' . $file . '"'); echo '[ OK ]<BR/>正在删除MySQL中用户数据库...'; if (function_exists(mysql_close)) { $con = mysql_connect($sqluser->item(0)->getElementsByTagName("server")->item(0)->nodeValue . ":" . $sqluser->item(0)->getElementsByTagName("port")->item(0)->nodeValue, $sqluser->item(0)->getElementsByTagName("user")->item(0)->nodeValue, $sqluser->item(0)->getElementsByTagName("password")->item(0)->nodeValue) or die("数据库连接失败"); if (!$con) { die('MYSQL连接出错: ' . mysql_error()); }
//公用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>