- remove uniserver.

This commit is contained in:
wangchunsheng
2013-01-18 02:20:10 +00:00
parent 8f0d651d9c
commit a47628eba5
7 changed files with 0 additions and 1732 deletions
@@ -1,411 +0,0 @@
<?php
/*
####################################################################
# Name: The Uniform Server Language System Array 1.1
# Developed By: The Uniform Server Development Team
# Modified Last By: Olajide Olaolorun (empirex)
# Web: http://www.uniformserver.com
####################################################################
*/
# Beta Feature, Currently For Debugging Only
#require_once 'array.php';
$US = array(
'title' => 'Uniform Server',
'apanel' => '管理面板',
'dev-team' => 'The Uniform Server Development Team',
//--------------------------------------------------------------------------------------------
// Source Code
//--------------------------------------------------------------------------------------------
'code-show' => '查看源代码',
'code-source' => '查看源代码',
'code-back' => '关闭查看',
//--------------------------------------------------------------------------------------------
// Navigation
//--------------------------------------------------------------------------------------------
// Basic
'nav-home' => '主页',
'nav-web' => 'Uniform Server Website',
'nav-secure' => '服务器安全性',
'nav-phpinfo' => 'PHP信息',
'nav-cgienv' => 'Perl环境',
'nav-status' => 'Apache运行状态',
'nav-info' => 'Apache信息',
'nav-update' => '检查更新',
// Server Control
'nav-start' => '服务器控制面板',
// Server Control - Service
'nav-uservers' => '卸载服务',
'nav-rapaches' => '重新启动Apache服务',
'nav-rmysqls' => '重新启动MySQL服务',
// Server Control - Standard Program
'nav-sserver' => '关闭所有服务',
'nav-rmysql' => '运行MySQL',
'nav-smysql' => '关闭MySQL',
// 配置s
'nav-config' => '配置',
'nav-aconfig' => 'Apache 配置',
'nav-pconfig' => 'PHP 配置',
'nav-vhost' => '管理虚拟机',
'nav-apsetup' => '管理面板配置',
'nav-psetup' => 'Private Server 配置',
'nav-sslpsetup' => 'Private Secure Server Config',
'nav-mqsetup' => 'MySQL Server 配置',
// Tools Navigation
'nav-tools' => '工具',
'nav-pma' => 'phpMyAdmin',
'nav-elog' => '错误日志查看器',
'nav-u2w' => 'windows到unix转换器',
'nav-smig' => 'Server Migration',
'nav-key' => '服务器私钥和证书生成',
'nav-mysqlrestore' => '重置MySQL密码',
// Plugins Navigation
'nav-plugins' => '插件管理',
'nav-pear' => '安装Pear',
'nav-eaccelerator' => 'eAccelerator控制面板',
// Misc Navigation
'nav-misc' => '其他杂项',
'nav-sup' => '在线支持',
// Documentation
'nav-docs1' => '文档',
'nav-sdoc' => '本机文档',
'nav-docs2' => '在线文档',
'nav-udoc' => '用户指南',
'nav-wiki' => 'WIKI',
'nav-phdoc' => 'PHP文档',
'nav-mydoc' => 'MySQL文档',
'nav-pedoc' => 'Perl文档',
// Languages
'nav-langs' => 'Languages',
//--------------------------------------------------------------------------------------------
// Home
//--------------------------------------------------------------------------------------------
'main-head' => '管理面板'. $us_apanel_version .'',
'main-text' => '
欢迎使用 Uniform Server '. $us_version .'!. <br />
您现在访问的是管理面板,通过它你可以控制你的Apache、PHP、MySQL服务。虽然我们一直持续的为它增加新的功能,改进,并修复Bug,但它是稳定并且功能完整的,使用起来也非常的简单友好。
<br />
如果发现了Bug,请反馈给我们:<a href="http://forum.uniformserver.com/" target="_forum">forum</a>.
<br />
<br />
鸣谢:
<br />
<a href="http://www.uniformserver.com/" target="_home">Uniform Server开发团队</a>',
'main-secure' => '系统安全检查列表',
'main-text-0' => '修改管理面板的用户名和密码<a href="apsetup.php">点击这里</a>',
'main-text-1' => 'Change the username/password for the server <a href="psetup.php">点击这里</a>',
'main-text-2' => 'Change the root password for mysql by editing <a href="mqsetup.php">点击这里</a>',
'main-text-3' => 'Run the <a href="security.php">Security Console</a> and see if everything is OK.',
'main-text-4' => 'Change the username/password for the SSL server <a href="sslpsetup.php">点击这里</a>',
//--------------------------------------------------------------------------------------------
// Update
//--------------------------------------------------------------------------------------------
'update-head' => 'Uniform Server Version Check',
'update-check' => 'Checking Version...',
'update-notfound' => '
Version file could not be found on the Uniform Server!
<br />
Or
<br />
The Unifrom Server is off-line!
<br />
Or
<br />
You are not connected to the Internet!
<br />',
'update-true' => '
Installed version of the Uniform Server is the latest one.
<br />
You don\'t need to update it.
<br />',
'update-false' => 'A Newer version of the Uniform Server is available!',
'update-new' => 'New Version',
'update-yours' => 'Installed Version',
'update-get' => 'You can get the newer version from our website by clicking the link below.',
//--------------------------------------------------------------------------------------------
// Server Control - Standard program
//--------------------------------------------------------------------------------------------
'server-stop-head1' => 'Stop Servers',
'server-stop-head2' => 'Stopping servers',
'server-stop-txt1' => 'This script will stop Apache and MySQL servers',
'server-stop-txt2' => 'The Servers are stopping please wait for a beep to confirm!',
'server-stop-txt3' => 'Thank you for using <a href="http://www.uniformserver.com/">The Uniform Server</a>.',
'server-confirm-button' => 'Confirm',
'start-mysql-head1' => 'Start MySQL Server',
'start-mysql-head2' => 'Starting the MySQL server.',
'start-mysql-txt1' => 'This script will start the MySQL server.',
'start-mysql-txt2' => 'MySQL server already running.',
'start-mysql-txt3' => 'The MySQL server was started you can continue using the server.',
'start-mysql-button' => 'Start MySQL Server',
'stop-mysql-head1' => 'Stop MySQL Server',
'stop-mysql-head2' => 'Stopping the MySQL server.',
'stop-mysql-txt1' => 'This script will stop the MySQL server.',
'stop-mysql-txt2' => 'The MySQL server was stopped.',
'stop-mysql-txt3' => 'MySQL server not running.',
'stop-mysql-button' => 'Stop MySQL Server',
//--------------------------------------------------------------------------------------------
// Server Control - Services
//--------------------------------------------------------------------------------------------
'service-apache-head1' => 'Restart Apache Service',
'service-apache-head2' => 'Restarting Apache service',
'service-apache-txt1' => 'This script will restart the Apache service.',
'service-apache-txt2' => 'It will take a some time',
'service-apache-txt3' => 'The Apache service is restarting please wait <br /> Between 2-10 seconds!' ,
'service-apache-txt4' => 'Apanel will reload to reflect any server configuration changes.',
'service-mysql-head1' => 'Restart MySQL Service',
'service-mysql-head2' => 'The MySQL service was restarted.',
'service-mysql-txt1' => 'This script will restart the MySQL service.',
'service-mysql-txt2' => 'It will take some time',
'service-mysql-txt3' => 'The MySQL service was restarted you can continue using the server.',
'service-confirm-button' => 'Confirm',
//--------------------------------------------------------------------------------------------
// Apache 配置
//--------------------------------------------------------------------------------------------
'aconfig-head' => 'Apache 配置',
'aconfig-conf' => 'Configure Apache',
'aconfig-sname' => 'Server Name',
'aconfig-wemail' => 'Server Admin Email',
'aconfig-difiles' => 'Directory Index Files',
'aconfig-ssi' => 'Server Side Includes',
'aconfig-ssig' => 'Server Signature',
'aconfig-listen' => 'Listen',
'aconfig-text-0' => 'something',
'aconfig-text-1' => '
The changes have been successfully saved. <br /> Changes will take effect after server restart!',
'aconfig-save' => 'Save',
'aconfig-module' => 'At the moment PHP is loaded as Apache module.',
'aconfig-cgi' => 'At the moment PHP scripts are executed though Apache CGI interface.',
'aconfig-help' => '?',
//--------------------------------------------------------------------------------------------
// PHP 配置
//--------------------------------------------------------------------------------------------
'pconfig-head' => 'PHP 配置',
'pconfig-conf' => 'Configure PHP',
'pconfig-smode' => 'Safe Mode',
'pconfig-rg' => 'Register Globals',
'pconfig-mtexec' => 'Maximum Script Execute Time (s.)',
'pconfig-mmexec' => 'Maximum Memory Amount (MB)',
'pconfig-ssig' => 'Show PHP In Server Signature',
'pconfig-perror' => 'Print Errors',
'pconfig-mpsize' => 'Maximum Post Size',
'pconfig-musize' => 'Maximum Upload Size',
'pconfig-text-0' => 'something',
'pconfig-text-1' => '
The changes have been successfully saved. <br /> Changes will take effect after server restart!',
'pconfig-save' => 'Save',
'pconfig-module' => 'At the moment PHP is loaded as Apache module.',
'pconfig-cgi' => 'At the moment PHP scripts are executed though Apache CGI interface.',
'pconfig-help' => '?',
//--------------------------------------------------------------------------------------------
// VHost Manager
//--------------------------------------------------------------------------------------------
'vhost-head' => 'Virtual Host',
'vhost-setup' => 'Virtual Host Setup',
'vhost-settings' => 'Virtual Host Settings',
'vhost-text-0' => 'You have',
'vhost-text-1' => 'hosts in your httpd.conf file:',
'vhost-text-2' => 'Error in hosts file:',
'vhost-text-3' => 'All hostnames exist in hosts file!',
'vhost-new' => '
Use this new and cool tool to add more virtual hosts to your server without having to edit
the httpd.conf file yourself.',
'vhost-new-ex' => '(ex. newhost.localhost)',
'vhost-name' => 'Name:',
'vhost-path' => 'Path to DocumentRoot:',
'vhost-path-ex' => '(ex. c:/www/newhost)',
'vhost-opt' => 'Optional additions:',
'vhost-opt-ex' => '(ex. error_log etc.)',
'vhost-dne' => 'does not exist',
'vhost-make' => 'Create VHost',
'vhost-error-1' => 'Error in path to your hosts-file!',
'vhost-error-2' => 'Error in path to your httpd.conf!',
'vhost-text-4' => 'Safe_mode is On, so restart Apache manually!',
'vhost-credit' => 'Script By Sukos',
//--------------------------------------------------------------------------------------------
// Error Log Viewer
//--------------------------------------------------------------------------------------------
'elog-viewer-head1' => 'Error Log Viewer',
'elog-viewer-head2' => 'Viewing Error Log File',
//--------------------------------------------------------------------------------------------
// Win to Unix Converter
//--------------------------------------------------------------------------------------------
'w2u-head1' => 'Windows to Unix Converter',
'w2u-head2' => 'Convert Windows Perl Files',
'w2u-head3' => 'Converted Windows Perl Files',
'w2u-txt1' => 'If you have problems executing your cgi scripts on Unix.<br />
This program will convert cgi scripts from Windows to Unix format Dec(#10#13=>#13).<br>Hex 0D0A to 0A',
'w2u-txt2' => 'Instruction: <br />After execution you can pick up scripts ready for execution
on a Unix machine from the \\cgi-bin-unix\\ directory.<br />',
'w2u-txt3' => 'Files converted: <br />They are located in folder \\cgi-bin-unix\\ ',
'w2u-convert-button' => 'Convert',
//--------------------------------------------------------------------------------------------
// Server Certificate and Key Generation
//--------------------------------------------------------------------------------------------
'cert-head1' => 'Server Certificate and Key Generation',
'cert-head2' => 'Verify Generation',
'cert-head3' => 'Unable to run Certificate and Key Generation.',
'cert-head4' => 'Certificate and Key Generation Complete.',
'cert-txt1' => 'Click on Generate! and follow instructions.',
'cert-txt2' => 'Services are not allowed to interact with the desktop. <br />You need to run this script manually:',
'cert-txt3' => 'Alternatively use UniTray.',
'cert-txt4' => 'Cirtificate location:',
'cert-txt5' => 'Key location:',
'cert-confirm-button' => 'Generate',
//--------------------------------------------------------------------------------------------
// MySQL restore password
//--------------------------------------------------------------------------------------------
'mysql-head1' => 'MySQL restore password',
'mysql-head2' => 'Verify Restore',
'mysql-head3' => 'MySQL password restored.',
'mysql-txt1' => 'Click on Restore! Restore will take several seconds.',
'mysql-txt2' => 'Password restored you can continue using the server..',
'mysql-confirm-button' => 'Restore MySQL Password',
//--------------------------------------------------------------------------------------------
// Server Security Console
//--------------------------------------------------------------------------------------------
'secure1-head' => 'Security Alert!',
'secure1-sub' => 'Possible Attack',
'secure1-text-0' => 'IP ADDRESS is not 127.0.0.1, but',
'secure1-text-1' => 'Note: HTTP_REFERER is',
'secure1-text-2' => 'To disable this warning set $unisecure to 0 in: /home/admin/www/includes/config.inc.php',
//--------------------------------------------------------------------------------------------
// Admin Panel Setup
//--------------------------------------------------------------------------------------------
'apsetup-head' => 'Admin Panel 配置',
'apsetup-sub-0' => 'User Management',
'apsetup-text-0' => 'Setup the username and password for the Admin Panel here. Please note that you might have
to activate this feature in the /home/admin/www/.htaccess file.',
'apsetup-user' => 'Username',
'apsetup-pass' => 'Password',
'apsetup-change' => 'Change',
'apsetup-success' => 'The Admin Panel username/password has been changed to the new values:',
//--------------------------------------------------------------------------------------------
// Private Server Setup
//--------------------------------------------------------------------------------------------
'psetup-head' => 'Private Server 配置',
'psetup-sub-0' => 'User Management',
'psetup-text-0' => 'Setup the username and password for your Private Server here. Please note that you might have
to activate this feature in the /www/.htaccess file.',
'psetup-user' => 'Username',
'psetup-pass' => 'Password',
'psetup-change' => 'Change',
'psetup-success' => 'Your Private Server username/password has been changed to the new values:',
//--------------------------------------------------------------------------------------------
// Private Secure Server Setup (SSL)
//--------------------------------------------------------------------------------------------
'sslpsetup-head' => 'Private Secure Server 配置 (SSL)',
'sslpsetup-sub-0' => 'User Management',
'sslpsetup-text-0' => 'Setup the username and password for your Private Secure Server here. Please note that you might have
to activate this feature in the /ssl/.htaccess file.',
'sslpsetup-user' => 'Username',
'sslpsetup-pass' => 'Password',
'sslpsetup-change' => 'Change',
'sslpsetup-success' => 'Your Private Secure Server username/password has been changed to the new values:',
//--------------------------------------------------------------------------------------------
// MySQL Setup
//--------------------------------------------------------------------------------------------
'mqsetup-head' => 'MySQL Server 配置',
'mqsetup-sub-0' => 'User Management',
'mqsetup-text-0' => 'Setup the MySQL password here. After changing the MySQL password, please note that you <b>
must shutdown the server using the Stop.bat</b> file and then start the server over again.',
'mqsetup-pass' => 'MySQL Password',
'mqsetup-change' => 'Change',
'mqsetup-success' => 'Your MySQL password has been changed to the new value:',
//--------------------------------------------------------------------------------------------
// Server Security Center
//--------------------------------------------------------------------------------------------
'secure-head' => 'Security Center',
'secure-sub-0' => 'User Management Security',
'secure-sub-1' => 'Server Security',
'secure-text-0' => 'This part of the security center will check all user management settings to make sure that
everything is set. It will tell you if something needs to be changed.',
'secure-text-1' => 'SECURITY MSG',
'secure-text-2' => 'STATUS',
'secure-text-3' => 'Admin Panel',
'secure-text-X' => 'If the username/password is still set to root, then you probably need to change this
by clicking the UNSECURE link.',
'secure-text-sslX' => 'Unsecure indicates you do not have a server certificate or key. Create new ones by clicking the UNSECURE link.',
'secure-secure' => 'SECURE',
'secure-unsecure' => 'UNSECURE',
'secure-text-7' => 'If the password is still set to root, then you probably need to change this by clicking the UNSECURE link.',
'secure-text-8' => 'This part of the security center will check and make sure the server settings are appropriate and set corectly.',
'secure-text-9' => 'PHP Safe Mode',
'secure-text-10' => 'This checks to see if PHP is running in SAFE MODE. Now, PHP does not have to run in SAFE MODE, but
if you want the extra security, you can set it by clicking on the UNSECURE link.',
'secure-text-p' => 'Personal Server',
'secure-text-sslp' => 'Personal Secure Server (SSL)',
'secure-text-sslcertp' => 'Server Certificate and Key (SSL)',
'secure-text-s' => 'MySQL Server',
'secure-text-11' => 'Admin Panel Access',
'secure-text-12' => 'Server Access',
'secure-text-12ssl' => 'Server Access (SSL)',
'secure-text-13' => 'While this is another feature that is not throughly important as other features are in place against
outside access to the Admin Panel, this checks to see if your Admin Panel is secured using the Auth method. Please change this
by editing the '.$us_apanel.'/.htaccess file.',
'secure-text-14' => 'If you are running your server in Production Mode, Skip this one. If not and you would like to
add more security to the server by blocking it using the Auth method, then change this in by editing the '.$us_www.'/.htaccess file.',
'secure-text-14ssl' => 'If you are running your server in Production Mode, Skip this one. If not and you would like to
add more security to the server by blocking it using the Auth method, then change this in by editing the '.$us_ssl.'/.htaccess file.',
'secure-view' => 'Local View',
'secure-look' => 'Due to the fact that some PC\'s have a different hostname set rather than localhost, we use the IP method here. This
checks to make sure that you are viewing the Admin Panel (this) from local.',
);
# Beta Feature, Currently For Debugging Only
#array2table($US, true);
?>
@@ -1,7 +0,0 @@
Options +FollowSymLinks +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)$ /zentao/index.php/$1 [L]
</IfModule>
-14
View File
@@ -1,14 +0,0 @@
使用注意事项:
1. 不能解压缩到含有中文和空格的路径中。
2. 启动:
2.1 双击运行start.exe。 软件会有一个提示,然后缩放到桌面的右下角,为一个蓝色的图标。
2.2 左键单击该图标,然后选择第一个菜单,"启动Apache和MySQL进程"。
2.3 如果想开机自动运行,则可以选择“将apache和mysql安装为服务运行”。
3. 访问: http://localhost/zentao/ 管理用户:admin,密码 123456
如果你下载的88端口的包,请使用http://localhost:88/zentao来访问。
4. 数据库的用户名和密码为:root root
5. apache的配置文件在:usr/local/apache2/conf/httpd.conf
6. mysql的数据库文件在:usr/local/mysql/data/zentao
7. zentao的程序文件在:home/zentao/
8. 如何备份:将整个禅道目录备份即可。
@@ -1,165 +0,0 @@
[Config]
ID=UniTrayController1
ImageList=menu_icons.dat
ServiceGlyphRunning=2
ServiceGlyphPaused=18
ServiceGlyphStopped=18
;TrayIconAllRunning=9
;TrayIconSomeRunning=10
;TrayIconNoneRunning=11
AboutHeader=UniTray UniServer V5-Nano
AboutVersion=V5.0
;TrayIcon=tray_image_1.dat
TrayIcon=zentao.dat
[AboutText]
UniTray is a small tray icon for the Uniform Server. The main system, Aestan Tray Icon was developed by Onno Broekmans using Borland Delphi for another server and as since then being licensed under the Creative Commons for Public Domain.
UniTray packs most of the functionality that Admin Panel provides into a single Tray Icon! UniTray is fully customisable allowing you to tailor it to your own requirements.
[Variables]
;Type: prompt; Name: PUserName; PromptCaption: "Uniform Server"; PromptText: "Please enter the name of the user whose credentials you want to change/add:"; DefaultValue: "Guest"
; The next line contains the declaration of the %USRoot% variable; it should
; point to the root directory of the Uniform Server package
; Gets the root path as specified on the command line
Type: commandline; Name: top; ParamName: "ustop"
Type: static; Name: USRoot; Value: "%top%"; Flags: ispath
Type: static; Name: LocalRoot; Value: "%top%\usr\local"
Type: static; Name: UsrRoot; Value: "%top%\usr"
Type: static; Name: ServerRoot; Value: "%top%\www"
Type: static; Name: PHP; Value: "%top%\usr\local\php"
Type: static; Name: ServerCon; Value: "%top%\unicon"
Type: static; Name: ServerConMain; Value: "%top%\unicon\main"
Type: static; Name: UniTray; Value: "%top%\unicon\tray_menu"
[Menu.Left.Settings]
AutoLineReduction=no
AutoHotKeys=no
BarVisible=yes
BarPictureHorzAlignment=center
BarPictureOffsetX=0
BarPictureOffsetY=0
BarPicturePicture=menu_image_left.dat
BarPictureTransparent=no
BarPictureVertAlignment=middle
BarBorder=clNone
BarSide=left
BarSpace=0
BarWidth=50
SeparatorsAlignment=center
[Menu.Right.Settings]
AutoLineReduction=no
AutoHotKeys=no
BarVisible=yes
BarPictureHorzAlignment=center
BarPictureOffsetX=0
BarPictureOffsetY=0
BarPicturePicture=menu_image_right.dat
BarPictureTransparent=no
BarPictureVertAlignment=middle
BarBorder=clNone
BarSide=left
BarSpace=0
BarWidth=50
SeparatorsAlignment=center
[DoubleClickAction]
Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 1";
;=== LEFT MENU ============
[Menu.Left]
Type: item; Caption: "启动Apache和MySQL进程"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\start_servers.php 7";ShowCmd: hidden; Glyph: 9
Type: item; Caption: "停止Apache和MySQL进程"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\stop_servers.php 7";ShowCmd: hidden; Glyph: 11
Type: separator
Type: item; Caption: "安装Apache和MySQL为服务并运行"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_install_run.php 7";ShowCmd: hidden; Glyph: 0
Type: item; Caption: "停止Apache和MySQL并移除服务"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_stop_uninstall.php 7";ShowCmd: hidden; Glyph: 1
Type: separator
Type: item; Caption: "检查UniServer运行状态"; Action: multi; Actions: ServerStatus; Glyph: 14
Type: submenu; Caption: "Apache和MySQL高级管理"; SubMenu: Individual_unicontrol; Glyph: 3
Type: submenu; Caption: "Apache和MySQL信息及日志"; SubMenu: ServerInfo; Glyph: 14
Type: submenu; Caption: "Apache、MySQL和PHP配置"; SubMenu: Advanced; Glyph: 7
Type: separator
Type: item; Caption: "访问本机禅道"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 8";ShowCmd: hidden; Glyph: 4
Type: item; Caption: "禅道官方网站"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 9";ShowCmd: hidden; Glyph: 4
Type: separator
Type: item; Caption: "访问管理面板"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 1";ShowCmd: hidden; Glyph: 4
Type: item; Caption: "访问phpMyAdmin"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 2";ShowCmd: hidden; Glyph: 4
Type: item; Caption: "访问本机首页"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 3";ShowCmd: hidden; Glyph: 4
Type: separator
Type: item; Caption: "重载加载菜单"; Action: readconfig; Glyph: 15
Type: item; Caption: "UniServer帮助"; Action: run; FileName: "%ServerCon%\docs\Run.bat"; ShowCmd: hidden; Glyph: 18
Type: item; Caption: "关于UniServer"; Action: about; Glyph: 14
Type: separator
Type: item; Caption: "退出"; Action: exit; Glyph: 16
[Individual_unicontrol]
Type: item; Caption: "启动Apache进程"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\start_servers.php 1"; Glyph: 9
Type: item; Caption: "停止Apache进程"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\stop_servers.php 1"; Glyph: 11
Type: separator
Type: item; Caption: "启动MySQL进程"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\start_servers.php 2"; Glyph: 9
Type: item; Caption: "停止MySQL进程"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\stop_servers.php 2"; Glyph: 11
Type: separator
Type: item; Caption: "安装Apache为服务并运行"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_install_run.php 1"; Glyph: 0
Type: item; Caption: "停止Apache并移除服务"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_stop_uninstall.php 1"; Glyph: 1
Type: separator
Type: item; Caption: "安装MySQL为服务并运行"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_install_run.php 2"; Glyph: 0
Type: item; Caption: "停止MySQL并移除服务"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %ServerConMain%\service_stop_uninstall.php 2"; Glyph: 1
;=== RIGHT MENU ============
[Menu.Right]
Type: item; Caption: "退出"; Action: exit; Glyph: 16
;=== COMMON LEFT RIGHT =======
[Advanced]
Type: item; Caption: "检查Apache配置"; Action: multi; Actions: ApacheSyntaxCheck; Glyph: 14
Type: item; Caption: "修改Apache配置"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\apache2\conf\httpd.conf"; Glyph: 7
Type: separator
Type: item; Caption: "恢复MySQL密码"; Action: run; FileName: "%ServerCon%\restore_mysql_password\Run_restore.bat"; Glyph: 9
Type: item; Caption: "修改MySQL配置"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\mysql\my.ini"; Glyph: 7
Type: separator
Type: item; Caption: "修改生产环境所用的php.ini"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\php\php.ini_production_nano"; Glyph: 7
Type: item; Caption: "修改开发环境所用的php.ini"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\php\php.ini_delvelopment_nano"; Glyph: 7
Type: separator
Type: item; Caption: "切换php到生产环境配置"; Action: shellexecute; FileName: "%ServerCon%\php_dev_production\Switch_production.bat"; Parameters: " pro"; Glyph: 9
Type: item; Caption: "切换php到开发环境配置"; Action: shellexecute; FileName: "%ServerCon%\php_dev_production\Switch_Development.bat"; Parameters: " dev"; Glyph: 9
;Type: separator
;Type: item; Caption: "Start Portable Cron"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\start_servers.php 16"; Glyph: 9
;Type: item; Caption: "Stop Portable Cron"; Action: shellexecute; FileName: "%PHP%\php-win.exe"; Parameters: " -n %ServerConMain%\stop_servers.php 16"; Glyph: 11
; Server information and Logs
[ServerInfo]
Type: item; Caption: "Apache服务信息"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 5";ShowCmd: hidden; Glyph: 4
Type: item; Caption: "Apache服务状态"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 6";ShowCmd: hidden; Glyph: 4
Type: item; Caption: "PHP环境信息"; Action: shellexecute; FileName: "%PHP%\php.exe"; Parameters: " -n %UniTray%\unitray_info.php 7";ShowCmd: hidden; Glyph: 4
Type: separator
Type: item; Caption: "Apache错误日志"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\apache2\logs\error.log"; Glyph: 18
Type: item; Caption: "Apache访问日志"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\apache2\logs\access.log"; Glyph: 18
;Type: separator
;Type: item; Caption: "Apache SSL Error Log"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\apache2\logs\error_ssl.log"; Glyph: 18
;Type: item; Caption: "Apache SSL Access Log"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\apache2\logs\access_ssl.log"; Glyph: 18
Type: separator
Type: item; Caption: "MySQL错误日志"; Action: shellexecute; FileName: "%Windows%\Notepad.exe"; Parameters: "%LocalRoot%\mysql\data\mysql.err"; Glyph: 18
[ServerStatus]
Action: run; FileName: "%ServerConMain%\server_status.bat"
[ApacheSyntaxCheck]
Action: run; FileName: "%ServerConMain%\apache_syntax_check.bat"
@@ -1,98 +0,0 @@
<?php
/*
###############################################################################
# Name: unitray_info.php
# Developed By: The Uniform Server Development Team
# Modified Last By: Mike Gleaves (Ric)
# Unitray Support file
# Displays server information. Ports read from configuration files
# V1.0 3-12-2009
###############################################################################
*/
//error_reporting(0); // Disable PHP errors and warnings
// Comment to Enable for testing
chdir(dirname(__FILE__)); // Change wd to this files location
include_once "../main/includes/config.inc.php";
include_once "../main/includes/functions.php";
run_location_tracker(); // Have servers moved if moved update configuration
print"\n";
//=== If no parameters passed use defaults from config.inc.php
if($argc == 2){ // Was a parameter passed
$information = $argv[1] ; // yes:
}
else{
exit; // no: Give up
}
$mysql_port = get_mysql_port();
$apache_port = get_apache_port();
$ssl_port = get_apache_ssl_port();
//=== Display Admin Panel in browser ==========================================
if($information == 1){
$command = "start http://localhost:$apache_port/apanel/"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display phpMyAdmin in browser ==========================================
if($information == 2){
$command = "start http://localhost:$apache_port/apanel/phpmyadmin/"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display WWW Root in browser ==============================================
if($information == 3){
$command = "start http://localhost:$apache_port/"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display SSL Root in browser ==============================================
if($information == 4){
$command = "start https://localhost:$ssl_port/"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display Apache Server Information in browser ============================
if($information == 5){
$command = "start http://localhost:$apache_port/server-info"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display Apache Server Status in browser =================================
if($information == 6){
$command = "start http://localhost:$apache_port/server-status"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display PHP Info in browser =================================
if($information == 7){
$command = "start http://localhost:$apache_port/apanel/phpinfo.php"; // display index page
exec($command,$dummy,$return); // run command
exit;
}
//=== Display ZenTao browser =================================
if($information == 8){
$command = "start http://localhost:$apache_port/zentao/"; //
exec($command,$dummy,$return); // run command
exit;
}
//=== Display ZenTao site browser =================================
if($information == 9){
$command = "start http://www.ZenTaoPMS.com/"; //
exec($command,$dummy,$return); // run command
exit;
}
exit;
?>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

File diff suppressed because it is too large Load Diff