Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
+51
-50
@@ -3,7 +3,7 @@ cd lampp
|
||||
|
||||
# rm useless files.
|
||||
rm -fr RELEASENOTES
|
||||
rm -fr error
|
||||
rm -fr error
|
||||
rm -fr icons
|
||||
rm -fr licenses
|
||||
rm -fr logs/*
|
||||
@@ -12,8 +12,17 @@ rm -fr cgi-bin
|
||||
rm -fr libexec
|
||||
rm -fr phpmyadmin
|
||||
rm -fr php
|
||||
rm -fr tmp/*
|
||||
chmod -R 777 tmp
|
||||
rm -fr temp/*
|
||||
rm -fr apache2
|
||||
rm -fr ctlscript.sh
|
||||
rm -fr manager-linux.run
|
||||
rm -fr pear
|
||||
rm -fr proftpd
|
||||
rm -fr properties.ini
|
||||
rm -fr uninstall*
|
||||
rm -fr mysql
|
||||
rm -fr img
|
||||
chmod -R 777 temp
|
||||
|
||||
# rm useless settings.
|
||||
rm -fr etc/proftpd.conf
|
||||
@@ -45,14 +54,14 @@ cp ../php.ini etc/php.ini
|
||||
mv bin bin.bak
|
||||
mkdir bin
|
||||
cd bin.bak
|
||||
cp htpasswd apachectl my_print_defaults mysql mysql.server mysqld_safe mysqldump php php-config phpize httpd ../bin/
|
||||
cp htpasswd apachectl my_print_defaults mysql mysql.server mysqld_safe mysqldump php php-config phpize httpd gettext ../bin/
|
||||
cd ../
|
||||
rm -fr bin.bak
|
||||
|
||||
# fix bug of the mysqld_safe
|
||||
sed -e 's/\/opt\/lampp\/\/opt\/lampp\/sbin/\/opt\/lampp\/sbin/g' bin/mysqld_safe > bin/mysqld_safe.new
|
||||
mv bin/mysqld_safe.new bin/mysqld_safe
|
||||
chmod a+rx bin/mysqld_safe
|
||||
#sed -e 's/\/opt\/lampp\/\/opt\/lampp\/sbin/\/opt\/lampp\/sbin/g' bin/mysqld_safe > bin/mysqld_safe.new
|
||||
#mv bin/mysqld_safe.new bin/mysqld_safe
|
||||
#chmod a+rx bin/mysqld_safe
|
||||
|
||||
# rm useless binaries at sbin directory, keep mysqld.
|
||||
mv sbin sbin.bak
|
||||
@@ -65,49 +74,40 @@ mv share share.bak
|
||||
mkdir share
|
||||
mv share.bak/english share/
|
||||
mv share.bak/lampp share
|
||||
echo >share/lampp/allons
|
||||
mv share.bak/xampp share
|
||||
rm -fr share.bak
|
||||
|
||||
rm -fr share/lampp/alladdons
|
||||
touch share/lampp/alladdons
|
||||
chmod a+rx share/lampp/alladdons
|
||||
|
||||
# process lib directory.
|
||||
mkdir libnew
|
||||
cp lib/VERSION libnew/
|
||||
cp lib/ioncube.so libnew/
|
||||
cp lib/libapr-1.so.0 libnew/
|
||||
cp lib/libaprutil-1.so.0 libnew/
|
||||
cp lib/libc-client.so libnew/
|
||||
cp lib/libcrypto.so.1.0.0 libnew/
|
||||
cp lib/libct.so.3 libnew/
|
||||
cp lib/libcurl.so.4 libnew/
|
||||
cp lib/libexpat.so.0 libnew/
|
||||
cp lib/libexslt.so.0 libnew/
|
||||
cp lib/libfreetype.so.6 libnew/
|
||||
cp lib/libgcc_s.so.1 libnew/
|
||||
cp lib/libgdbm.so.2 libnew/
|
||||
cp lib/libiconv.so.2 libnew/
|
||||
cp lib/libicudata.so.42 libnew/
|
||||
cp lib/libicui18n.so.42 libnew/
|
||||
cp lib/libicuio.so.42 libnew/
|
||||
cp lib/libicuuc.so.42 libnew/
|
||||
cp lib/libintl.so.2 libnew/
|
||||
cp lib/libjpeg.so.62 libnew/
|
||||
cp lib/liblber-2.4.so.2 libnew/
|
||||
cp lib/libldap-2.4.so.2 libnew/
|
||||
cp lib/libmcrypt.so.4 libnew/
|
||||
cp lib/libncurses.so.5 libnew/
|
||||
cp lib/libpcre.so.0 libnew/
|
||||
cp lib/libpng12.so.0 libnew/
|
||||
cp lib/libpq.so.4 libnew/
|
||||
cp lib/libsqlite3.so.0 libnew/
|
||||
cp lib/libssl.so.1.0.0 libnew/
|
||||
cp lib/libstdc++.so.5 libnew/
|
||||
cp lib/libsybdb.so.5 libnew/
|
||||
cp lib/libxml2.so.2 libnew/
|
||||
cp lib/libxslt.so.1 libnew/
|
||||
cp lib/libz.so.1 libnew/
|
||||
cp lib/VERSION libnew/
|
||||
cp lib/libapr-1.so.0 libnew/
|
||||
cp lib/libaprutil-1.so.0 libnew/
|
||||
cp lib/libcrypto.so.1.0.0 libnew/
|
||||
cp lib/libcurl.so.4 libnew/
|
||||
cp lib/libexslt.so.0 libnew/
|
||||
cp lib/libfreetype.so.6 libnew/
|
||||
cp lib/libgcc_s.so.1 libnew/
|
||||
cp lib/libiconv.so.2 libnew/
|
||||
cp lib/liblber-2.4.so.2.5.4 libnew/
|
||||
cp lib/libmcrypt.so.4 libnew/
|
||||
cp lib/libncurses.so.5 libnew/
|
||||
cp lib/libpcre.so.0 libnew/
|
||||
cp lib/libsqlite3.so.0 libnew/
|
||||
cp lib/libssl.so.1.0.0 libnew/
|
||||
cp lib/libstdc++.so.5 libnew/
|
||||
cp lib/libsybdb.so.5 libnew/
|
||||
cp lib/libxml2.so.2 libnew/
|
||||
cp lib/libxslt.so.1 libnew/
|
||||
cp lib/libz.so.1 libnew/
|
||||
cp lib/libct.so.4 libnew/
|
||||
cp lib/libpng15.so.15 libnew/
|
||||
cp lib/libjpeg.so.8 libnew/
|
||||
cp lib/libbz2.so libnew/
|
||||
cp lib/libicui18n.so.48 libnew/
|
||||
cp lib/libicuuc.so.48 libnew/
|
||||
cp lib/libicudata.so.48 libnew/
|
||||
cp lib/libicuio.so.48 libnew/
|
||||
cp lib/libbz2.so libnew/
|
||||
|
||||
rm -fr lib
|
||||
mv libnew lib
|
||||
@@ -117,6 +117,7 @@ rm -fr var/perl
|
||||
rm -fr var/proftpd*
|
||||
rm -fr var/mysql/cdcol
|
||||
rm -fr var/mysql/*.err
|
||||
rm -fr var/mysql/*.pid
|
||||
rm -fr var/mysql/ib*
|
||||
rm -fr var/mysql/test
|
||||
rm -fr var/mysql/phpmyadmin
|
||||
@@ -199,7 +200,7 @@ cp ../Makefile .
|
||||
cp ../start .
|
||||
cp ../start88 .
|
||||
cp ../stop .
|
||||
cp ../lamppctl ./lampp
|
||||
#cp ../lamppctl ./lampp
|
||||
cp ../../windows/index.php htdocs/
|
||||
|
||||
# make the auth file
|
||||
@@ -208,8 +209,7 @@ touch auth/users
|
||||
cp ../adduser.sh auth/
|
||||
|
||||
# process the phpmyadmin
|
||||
7z x $1/phpmyadmin.7z
|
||||
mv phpMyAdmin-3.5.5-all-languages phpmyadmin
|
||||
tar xvf $1/phpmyadmin.tar.gz
|
||||
mv phpmyadmin/locale phpmyadmin/locale.bak
|
||||
mkdir phpmyadmin/locale
|
||||
mv phpmyadmin/locale.bak/en_GB phpmyadmin/locale
|
||||
@@ -221,6 +221,7 @@ rm -fr phpmyadmin/js/openlayers
|
||||
rm -fr phpmyadmin/libraries/tcpdf
|
||||
rm -fr phpmyadmin/Documentation*
|
||||
rm -fr phpmyadmin/themes/original
|
||||
rm -fr phpmyadmin/doc
|
||||
|
||||
# copy the ioncube loader.
|
||||
cp ../ioncube_loader_lin_5.4.so lib/
|
||||
cp ../*.so lib/
|
||||
|
||||
@@ -1,600 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# For RedHat (thanks to Sudhaker Raj):
|
||||
# chkconfig: 345 95 05
|
||||
# description: Starts and stops the XAMPP \
|
||||
# used to control Apache, MySQL, ProFTPD.
|
||||
# For SuSE:
|
||||
### BEGIN INIT INFO
|
||||
# Provides: apache2 httpd2 xampp
|
||||
# Required-Start: $local_fs $remote_fs $network
|
||||
# Required-Stop: $local_fs $remote_fs $network
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: XAMPP
|
||||
# Description: Starts and stops XAMPP
|
||||
### END INIT INFO
|
||||
###############################################################################
|
||||
# Copyright 2002-2005 by Kai 'Oswald' Seidler, oswald@apachefriends.org, GPL-licensed
|
||||
|
||||
function testport() {
|
||||
if netstat -an | egrep ":$1 .*LISTEN" > /dev/null
|
||||
then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function testrun() {
|
||||
if test -f $1
|
||||
then
|
||||
pid=`cat $1`
|
||||
if ps ax 2>/dev/null | egrep "^ *$pid.*$2" > /dev/null
|
||||
then
|
||||
return 0
|
||||
else
|
||||
rm $1
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function osguess() {
|
||||
if test -f /etc/redhat-release
|
||||
then
|
||||
if egrep "9 " /etc/redhat-release > /dev/null
|
||||
then
|
||||
if egrep "Fedora" /etc/redhat-release > /dev/null
|
||||
then
|
||||
echo "unknown"
|
||||
return 0
|
||||
fi
|
||||
echo "rh9"
|
||||
return 0
|
||||
fi
|
||||
else
|
||||
echo "unknown"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
de="false"
|
||||
case $LANG in
|
||||
de*) de="true";;
|
||||
esac
|
||||
|
||||
|
||||
# we need root to run
|
||||
if test "`id -u`" -ne 0
|
||||
then
|
||||
$de && echo "XAMPP muss als root aufgerufen werden!"
|
||||
$de || echo "You need to start XAMPP as root!"
|
||||
exit
|
||||
fi
|
||||
|
||||
# XAMPP is currently 32 bit only
|
||||
case `uname -m` in
|
||||
*_64)
|
||||
if /opt/lampp/bin/php -v > /dev/null 2>&1
|
||||
then
|
||||
:
|
||||
else
|
||||
$de && echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein System."
|
||||
$de || echo "XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system."
|
||||
$de || echo "For centos, rhel or fedora systems, please try 'sudo yum install glibc.i686 libgcc.i686 libstdc++.i686'."
|
||||
$de || echo "For ubuntu, debian systems, please try 'sudo apt-get install 'sudo apt-get install ia32-libs'."
|
||||
exit
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# do we have that new red hat linux 9 with posix native threads?
|
||||
if test "`osguess`" = "rh9"
|
||||
then
|
||||
# for now disable PNTL. if PNTL gets more popular we will support it. - oswald [8apr3]
|
||||
export LD_ASSUME_KERNEL=2.2.5
|
||||
#echo "XAMPP: DISABLE PNTL..."
|
||||
fi
|
||||
|
||||
# Thanks to drosenbe! - oswald [3sep10]
|
||||
if test -z $LD_LIBRARY_PATH
|
||||
then
|
||||
export LD_LIBRARY_PATH=/opt/lampp/lib
|
||||
else
|
||||
export LD_LIBRARY_PATH=/opt/lampp/lib:$LD_LIBRARY_PATH
|
||||
fi
|
||||
|
||||
# Do we use Oracle? If yes, add Oracle's lib directory to LD_LIBRARY_PATH - oswald [6jul5]
|
||||
if test -f /opt/lampp/etc/lampp/oraclelib
|
||||
then
|
||||
export LD_LIBRARY_PATH=`cat /opt/lampp/etc/lampp/oraclelib`:$LD_LIBRARY_PATH
|
||||
fi
|
||||
|
||||
iswebmin="false";
|
||||
if test -d /opt/lampp/webmin
|
||||
then
|
||||
iswebmin="true";
|
||||
fi
|
||||
|
||||
version=`cat /opt/lampp/lib/VERSION`
|
||||
bon="[1m"
|
||||
boff="[m"
|
||||
lc="/opt/lampp/etc/lampp"
|
||||
|
||||
# Hack to let XAMPP run with SELinux (for Fedora)
|
||||
/opt/lampp/share/lampp/selinux
|
||||
|
||||
case $1 in
|
||||
"start")
|
||||
$de && echo "Starte XAMPP fuer Linux $version..."
|
||||
$de || echo "Starting XAMPP for Linux $version..."
|
||||
|
||||
/opt/lampp/share/lampp/nogroupcheck
|
||||
|
||||
$0 startapache %
|
||||
$0 startmysql %
|
||||
$0 startftp %
|
||||
$iswebmin && $0 startwebmin %
|
||||
|
||||
/opt/lampp/share/lampp/alladdons start
|
||||
|
||||
$de && echo "XAMPP fuer Linux gestartet."
|
||||
$de || echo "XAMPP for Linux started."
|
||||
;;
|
||||
|
||||
"reload")
|
||||
$0 reloadapache
|
||||
$0 reloadmysql
|
||||
$0 reloadftp
|
||||
|
||||
/opt/lampp/share/lampp/alladdons reload
|
||||
;;
|
||||
|
||||
"stopssl")
|
||||
if test -f $lc/startssl
|
||||
then
|
||||
if test -f /opt/lampp/logs/httpd.pid
|
||||
then
|
||||
$0 stopapache
|
||||
rm $lc/startssl
|
||||
$0 startapache
|
||||
else
|
||||
$de && echo "XAMPP: XAMPP-Apache laeuft gar nicht."
|
||||
$de || echo "XAMPP: XAMPP-Apache is not running."
|
||||
rm $lc/startssl
|
||||
fi
|
||||
else
|
||||
$de && echo "XAMPP: SSL laeuft nicht!"
|
||||
$de || echo "XAMPP: SSL isn't running!"
|
||||
fi
|
||||
;;
|
||||
|
||||
"startssl")
|
||||
if testrun /opt/lampp/logs/httpd.pid httpd
|
||||
then
|
||||
if test -f $lc/startssl
|
||||
then
|
||||
$de && echo "XAMPP: SSL laeuft bereits!"
|
||||
$de || echo "XAMPP: SSL is already running!"
|
||||
else
|
||||
$0 stopapache
|
||||
touch $lc/startssl
|
||||
$0 startapache
|
||||
fi
|
||||
else
|
||||
touch $lc/startssl
|
||||
$0 startapache
|
||||
fi
|
||||
;;
|
||||
|
||||
"startapache")
|
||||
if testrun /opt/lampp/logs/httpd.pid httpd
|
||||
then
|
||||
$de && echo "XAMPP: XAMPP-Apache laeuft bereits."
|
||||
$de || echo "XAMPP: XAMPP-Apache is already running."
|
||||
else
|
||||
if testport 80
|
||||
then
|
||||
$de && echo "XAMPP: Ein anderer Webserver laeuft bereits."
|
||||
$de || echo "XAMPP: Another web server daemon is already running."
|
||||
else
|
||||
case `$0 phpstatus` in
|
||||
5*) xampp_apachedefine="$xampp_apachedefine -DPHP5"
|
||||
$de && phpextra="(und PHP5)"
|
||||
$de || phpextra="(and PHP5)"
|
||||
;;
|
||||
4*) xampp_apachedefine="$xampp_apachedefine -DPHP4"
|
||||
$de && phpextra="(und PHP4)"
|
||||
$de || phpextra="(and PHP4)"
|
||||
;;
|
||||
esac
|
||||
if test -f $lc/startssl
|
||||
then
|
||||
if testport 443
|
||||
then
|
||||
$de && echo "XAMPP: Ein anderer Webserver mit SSL laeuft bereits."
|
||||
$de || echo "XAMPP: Another web server daemon with SSL is already running."
|
||||
else
|
||||
$de && echo "XAMPP: Starte Apache mit SSL $phpextra..."
|
||||
$de || echo "XAMPP: Starting Apache with SSL $phpextra..."
|
||||
/opt/lampp/bin/apachectl -k start -DSSL $xampp_apachedefine -E /opt/lampp/logs/error_log
|
||||
fi
|
||||
else
|
||||
$de && echo "XAMPP: Starte Apache..."
|
||||
$de || echo "XAMPP: Starting Apache..."
|
||||
/opt/lampp/bin/apachectl -k start $xampp_apachedefine -E /opt/lampp/logs/error_log
|
||||
fi
|
||||
error=$?
|
||||
if test $error -gt 0
|
||||
then
|
||||
$de && echo "XAMPP: ${bon}Fehler $error beim Starten vom Apache!${boff}"
|
||||
$de || echo "XAMPP: ${bon}Error $error! Couldn't start Apache!${boff}"
|
||||
/opt/lampp/share/lampp/diagnose apache
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
"startmysql")
|
||||
if testrun /opt/lampp/var/mysql/`/bin/hostname`.pid mysqld
|
||||
then
|
||||
$de && echo "XAMPP: XAMPP-MySQL laeuft bereits."
|
||||
$de || echo "XAMPP: XAMPP-MySQL is already running."
|
||||
else
|
||||
if testport 3306
|
||||
then
|
||||
$de && echo "XAMPP: Ein anderer MySQL daemon laeuft bereits."
|
||||
$de || echo "XAMPP: Another MySQL daemon is already running."
|
||||
else
|
||||
$de && echo "XAMPP: Starte MySQL..."
|
||||
$de || echo "XAMPP: Starting MySQL..."
|
||||
/opt/lampp/bin/mysql.server start > /dev/null
|
||||
if test $? -ne 0
|
||||
then
|
||||
$de && echo "XAMPP: MySQL konnte nicht gestartet werden!"
|
||||
$de || echo "XAMPP: Couldn't start MySQL!"
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
"startwebmin")
|
||||
if $iswebmin
|
||||
then
|
||||
if test "$2" != "%"
|
||||
then
|
||||
touch $lc/startwebmin
|
||||
fi
|
||||
if test -f $lc/startwebmin
|
||||
then
|
||||
if testrun /opt/lampp/var/webmin/miniserv.pid miniserv
|
||||
then
|
||||
$de && echo "XAMPP: Webmin laeuft bereits."
|
||||
$de || echo "XAMPP: Webmin is already running."
|
||||
else
|
||||
$de && echo "XAMPP: Starte Webmin..."
|
||||
$de || echo "XAMPP: Starting Webmin..."
|
||||
/opt/lampp/etc/webmin/start quiet
|
||||
fi
|
||||
fi
|
||||
else
|
||||
$de && echo "XAMPP: Webmin ist nicht installiert."
|
||||
$de || echo "XAMPP: Webmin isn't installed."
|
||||
fi
|
||||
;;
|
||||
|
||||
"stopwebmin")
|
||||
if $iswebmin
|
||||
then
|
||||
if test -f $lc/startwebmin
|
||||
then
|
||||
if testrun /opt/lampp/var/webmin/miniserv.pid miniserv
|
||||
then
|
||||
$de && echo "XAMPP: Stoppe Webmin..."
|
||||
$de || echo "XAMPP: Stopping Webmin..."
|
||||
/opt/lampp/etc/webmin/stop quiet
|
||||
else
|
||||
$de && echo "XAMPP: XAMPP-Webmin laeuft gar nicht."
|
||||
$de || echo "XAMPP: XAMPP-Webmin is not running."
|
||||
fi
|
||||
if test "$2" != "%"
|
||||
then
|
||||
rm $lc/startwebmin 2> /dev/null
|
||||
fi
|
||||
fi
|
||||
else
|
||||
$de && echo "XAMPP: Webmin ist nicht installiert."
|
||||
$de || echo "XAMPP: Webmin isn't installed."
|
||||
fi
|
||||
;;
|
||||
|
||||
"startftp")
|
||||
if test "$2" != "%"
|
||||
then
|
||||
touch $lc/startftp
|
||||
fi
|
||||
if test -f $lc/startftp
|
||||
then
|
||||
if testrun /opt/lampp/var/proftpd.pid proftpd
|
||||
then
|
||||
$de && echo "XAMPP: XAMPP-ProFTPD laeuft bereits."
|
||||
$de || echo "XAMPP: XAMPP-ProFTPD is already running."
|
||||
else
|
||||
if testport 21
|
||||
then
|
||||
$de && echo "XAMPP: Ein anderer FTP daemon laeuft bereits."
|
||||
$de || echo "XAMPP: Another FTP daemon is already running."
|
||||
else
|
||||
$de && echo "XAMPP: Starte ProFTPD..."
|
||||
$de || echo "XAMPP: Starting ProFTPD..."
|
||||
/opt/lampp/sbin/proftpd > /opt/lampp/var/proftpd/start.err 2>&1
|
||||
error=$?
|
||||
if test $error -gt 0
|
||||
then
|
||||
echo "XAMPP: `cat /opt/lampp/var/proftpd/start.err`"
|
||||
$de && echo "XAMPP: ${bon}Fehler $error beim Starten von ProFTPD!${boff}"
|
||||
$de || echo "XAMPP: ${bon}Error $error! Couln't start ProFTPD!${boff}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
"stop")
|
||||
$de && echo "Stoppe XAMPP fuer Linux $version..."
|
||||
$de || echo "Stopping XAMPP for Linux $version..."
|
||||
|
||||
$0 stopapache %
|
||||
$0 stopmysql %
|
||||
$0 stopftp %
|
||||
$iswebmin && $0 stopwebmin %
|
||||
|
||||
/opt/lampp/share/lampp/alladdons stop
|
||||
|
||||
$de && echo "XAMPP beendet."
|
||||
$de || echo "XAMPP stopped."
|
||||
;;
|
||||
|
||||
"stopapache")
|
||||
if test -f /opt/lampp/logs/httpd.pid
|
||||
then
|
||||
if test -f $lc/startssl
|
||||
then
|
||||
$de && echo "XAMPP: Stoppe Apache mit SSL..."
|
||||
$de || echo "XAMPP: Stopping Apache with SSL..."
|
||||
else
|
||||
$de && echo "XAMPP: Stoppe Apache..."
|
||||
$de || echo "XAMPP: Stopping Apache..."
|
||||
fi
|
||||
|
||||
|
||||
# Thanks to Emilio Paolini <ep@im-netz.de> for the next 12 lines - Oswald, 30sep04
|
||||
|
||||
case `$0 phpstatus` in
|
||||
5*) xampp_apachedefine="$xampp_apachedefine -D PHP5"
|
||||
$de && phpextra="(und PHP5)"
|
||||
$de || phpextra="(and PHP5)"
|
||||
;;
|
||||
4*) xampp_apachedefine="$xampp_apachedefine -D PHP4"
|
||||
$de && phpextra="(und PHP4)"
|
||||
$de || phpextra="(and PHP4)"
|
||||
;;
|
||||
esac
|
||||
|
||||
/opt/lampp/bin/apachectl $xampp_apachedefine -k stop > /dev/null
|
||||
|
||||
sleep 2
|
||||
#test -f /opt/lampp/logs/httpd.pid && rm /opt/lampp/logs/httpd.pid
|
||||
else
|
||||
$de && echo "XAMPP: XAMPP-Apache laeuft gar nicht."
|
||||
$de || echo "XAMPP: XAMPP-Apache is not running."
|
||||
fi
|
||||
;;
|
||||
|
||||
"reloadapache")
|
||||
if test -f /opt/lampp/logs/httpd.pid
|
||||
then
|
||||
kill -USR1 `cat /opt/lampp/logs/httpd.pid`
|
||||
$de && echo "XAMPP: Aktualisiere Apache..."
|
||||
$de || echo "XAMPP: Reload Apache..."
|
||||
else
|
||||
$de && echo "XAMPP: Apache laeuft nicht..."
|
||||
$de || echo "XAMPP: Apache isn't running..."
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
"stopmysql")
|
||||
if test -f /opt/lampp/var/mysql/`/bin/hostname`.pid
|
||||
then
|
||||
/opt/lampp/bin/mysql.server stop > /dev/null 2>&1 &
|
||||
$de && echo "XAMPP: Stoppe MySQL..."
|
||||
$de || echo "XAMPP: Stopping MySQL..."
|
||||
sleep 2
|
||||
test -f /opt/lampp/var/mysql/`/bin/hostname`.pid && rm /opt/lampp/var/mysql/`/bin/hostname`.pid
|
||||
else
|
||||
$de && echo "XAMPP: XAMPP-MySQL laeuft gar nicht."
|
||||
$de || echo "XAMPP: XAMPP-MySQL is not running."
|
||||
fi
|
||||
;;
|
||||
|
||||
"reloadmysql")
|
||||
if test -f /opt/lampp/var/mysql/`/bin/hostname`.pid
|
||||
then
|
||||
h="`/bin/hostname`"
|
||||
kill -HUP `cat /opt/lampp/var/mysql/$h.pid`
|
||||
$de && echo "XAMPP: Aktualisiere MySQL..."
|
||||
$de || echo "XAMPP: Reload MySQL..."
|
||||
else
|
||||
$de && echo "XAMPP: MySQL laeuft nicht..."
|
||||
$de || echo "XAMPP: MySQL isn't running..."
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
"stopftp")
|
||||
if test -f /opt/lampp/var/proftpd.pid
|
||||
then
|
||||
kill `cat /opt/lampp/var/proftpd.pid`
|
||||
$de && echo "XAMPP: Stoppe ProFTPD..."
|
||||
$de || echo "XAMPP: Stopping ProFTPD..."
|
||||
else
|
||||
if test -f $lc/startftp
|
||||
then
|
||||
$de && echo "XAMPP: XAMPP-ProFTPD laeuft gar nicht."
|
||||
$de || echo "XAMPP: XAMPP-ProFTPD is not running."
|
||||
fi
|
||||
fi
|
||||
if test "$2" != "%"
|
||||
then
|
||||
rm $lc/startftp 2> /dev/null
|
||||
fi
|
||||
;;
|
||||
|
||||
"reloadftp")
|
||||
if test -f /opt/lampp/var/proftpd.pid
|
||||
then
|
||||
kill -HUP `cat /opt/lampp/var/proftpd.pid`
|
||||
$de && echo "XAMPP: Aktualisiere ProFTPD..."
|
||||
$de || echo "XAMPP: Reload ProFTPD..."
|
||||
else
|
||||
$de && echo "XAMPP: ProFTPD laeuft gar nicht..."
|
||||
$de || echo "XAMPP: ProFTPD isn't running..."
|
||||
fi
|
||||
;;
|
||||
|
||||
"wizard")
|
||||
/opt/lampp/bin/php /opt/lampp/share/lampp/wizard.php
|
||||
;;
|
||||
|
||||
"restartapache")
|
||||
$0 stopapache
|
||||
sleep 4
|
||||
$0 startapache
|
||||
;;
|
||||
|
||||
"restart")
|
||||
$0 stop
|
||||
sleep 4
|
||||
$0 start
|
||||
;;
|
||||
|
||||
"security")
|
||||
/opt/lampp/share/lampp/checkall
|
||||
;;
|
||||
|
||||
"oci8")
|
||||
/opt/lampp/share/lampp/oci8install
|
||||
;;
|
||||
|
||||
"backup")
|
||||
/opt/lampp/share/lampp/backup $2
|
||||
;;
|
||||
|
||||
"php4")
|
||||
/opt/lampp/share/lampp/activatephp 4
|
||||
;;
|
||||
|
||||
"php5")
|
||||
/opt/lampp/share/lampp/activatephp 5.4.7
|
||||
;;
|
||||
|
||||
"phpstatus")
|
||||
/opt/lampp/share/lampp/phpstatus
|
||||
;;
|
||||
|
||||
"panel")
|
||||
exec /opt/lampp/share/xampp-control-panel/xampp-control-panel
|
||||
;;
|
||||
|
||||
"status")
|
||||
. /opt/lampp/share/lampp/status
|
||||
;;
|
||||
|
||||
"statusraw")
|
||||
. /opt/lampp/share/lampp/statusraw
|
||||
;;
|
||||
|
||||
start*|stop*|reload*|status*|restart*)
|
||||
/opt/lampp/share/lampp/addons $*
|
||||
;;
|
||||
|
||||
"version")
|
||||
$de && echo "Version: XAMPP fuer Linux $version"
|
||||
$de || echo "Version: XAMPP for Linux $version"
|
||||
;;
|
||||
|
||||
*) if $de
|
||||
then
|
||||
echo "Aufruf: $0 <Aktion>"
|
||||
echo ""
|
||||
echo " start Starte XAMPP (Apache, MySQL und evtl. weitere)"
|
||||
echo " startapache Starte nur den Apache"
|
||||
echo " startssl Starte nur die SSL-Unterstuetzung des Apache"
|
||||
echo " startmysql Starte nur den MySQL"
|
||||
echo " startftp Starte nur den ProFTPD"
|
||||
$iswebmin && echo " startwebmin Starte nur Webmin"
|
||||
echo ""
|
||||
echo " stop Stoppe XAMPP (Apache, MySQL und evtl. weitere)"
|
||||
echo " stopapache Stoppe nur den Apache"
|
||||
echo " stopssl Stoppe nur die SSL-Unterstuetzung des Apache"
|
||||
echo " stopmysql Stoppe nur den MySQL"
|
||||
echo " stopftp Stoppe nur den ProFTPD"
|
||||
$iswebmin && echo " stopwebmin Stoppe nur Webmin"
|
||||
echo ""
|
||||
echo " reload Aktualisiere XAMPP (Apache, MySQL und evtl. weitere)"
|
||||
echo " reloadapache Aktualisiere nur den Apache"
|
||||
echo " reloadmysql Aktualisiere nur den MySQL"
|
||||
echo " reloadftp Aktualisiere nur den ProFTPD"
|
||||
echo ""
|
||||
echo " restart Stoppe und starte XAMPP"
|
||||
echo " security Überpruefe XAMPPs Sicherheit"
|
||||
echo ""
|
||||
echo " php5 Aktiviere PHP5"
|
||||
##echo " php4 Aktiviere PHP4"
|
||||
echo " phpstatus Welches PHP ist aktiv?"
|
||||
echo ""
|
||||
echo " backup Backup der XAMPP-Konfig, Logs und Daten erstellen"
|
||||
echo " panel Startet das grafische XAMPP control panel"
|
||||
echo ""
|
||||
else
|
||||
echo "Usage: $0 <action>"
|
||||
echo ""
|
||||
echo " start Start XAMPP (Apache, MySQL and eventually others)"
|
||||
echo " startapache Start only Apache"
|
||||
echo " startssl Start only SSL support"
|
||||
echo " startmysql Start only MySQL"
|
||||
echo " startftp Start only ProFTPD"
|
||||
$iswebmin && echo " startwebmin Start only Webmin"
|
||||
echo ""
|
||||
echo " stop Stop XAMPP (Apache, MySQL and eventually others)"
|
||||
echo " stopapache Stop only Apache"
|
||||
echo " stopssl Stop only SSL support"
|
||||
echo " stopmysql Stop only MySQL"
|
||||
echo " stopftp Stop only ProFTPD"
|
||||
$iswebmin && echo " stopwebmin Stop only Webmin"
|
||||
echo ""
|
||||
echo " reload Reload XAMPP (Apache, MySQL and eventually others)"
|
||||
echo " reloadapache Reload only Apache"
|
||||
echo " reloadmysql Reload only MySQL"
|
||||
echo " reloadftp Reload only ProFTPD"
|
||||
echo ""
|
||||
echo " restart Stop and start XAMPP"
|
||||
echo " security Check XAMPP's security"
|
||||
echo ""
|
||||
echo " php5 Activate PHP5"
|
||||
##echo " php4 Activate PHP4"
|
||||
echo " phpstatus Which version of PHP is active?"
|
||||
echo ""
|
||||
echo " backup Make backup file of your XAMPP config, log and data files"
|
||||
echo " panel Starts graphical XAMPP control panel"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
;;
|
||||
esac
|
||||
+19
-1
@@ -1,4 +1,6 @@
|
||||
zend_extension = /opt/lampp/lib/ioncube_loader_lin_5.4.so
|
||||
[ioncube]
|
||||
zend_extension = /opt/lampp/lib/php_ioncube.so
|
||||
|
||||
[PHP]
|
||||
engine = On
|
||||
|
||||
@@ -69,11 +71,14 @@ upload_max_filesize = 50M
|
||||
allow_url_fopen = On
|
||||
allow_url_include = Off
|
||||
default_socket_timeout = 60
|
||||
|
||||
[Date]
|
||||
date.timezone = Europe/Berlin
|
||||
|
||||
[Pdo_mysql]
|
||||
pdo_mysql.cache_size = 2000
|
||||
pdo_mysql.default_socket=
|
||||
|
||||
[MySQL]
|
||||
mysql.allow_local_infile = On
|
||||
mysql.allow_persistent = On
|
||||
@@ -87,6 +92,7 @@ mysql.default_user =
|
||||
mysql.default_password =
|
||||
mysql.connect_timeout = 60
|
||||
mysql.trace_mode = Off
|
||||
|
||||
[MySQLi]
|
||||
mysqli.max_persistent = -1
|
||||
mysqli.max_links = -1
|
||||
@@ -97,9 +103,11 @@ mysqli.default_host =
|
||||
mysqli.default_user =
|
||||
mysqli.default_pw =
|
||||
mysqli.reconnect = Off
|
||||
|
||||
[mysqlnd]
|
||||
mysqlnd.collect_statistics = On
|
||||
mysqlnd.collect_memory_statistics = On
|
||||
|
||||
[Session]
|
||||
session.save_handler = files
|
||||
session.use_cookies = 1
|
||||
@@ -125,5 +133,15 @@ session.use_trans_sid = 0
|
||||
session.hash_function = 0
|
||||
session.hash_bits_per_character = 5
|
||||
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
|
||||
|
||||
[ldap]
|
||||
ldap.max_links = -1
|
||||
|
||||
[opcache]
|
||||
zend_extension = /opt/lampp/lib/php_opcache.so
|
||||
opcache.memory_consumption=128
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=4000
|
||||
opcache.revalidate_freq=60
|
||||
opcache.fast_shutdown=1
|
||||
opcache.enable_cli=1
|
||||
|
||||
Binary file not shown.
Executable
BIN
Binary file not shown.
+3
-2
@@ -39,7 +39,7 @@ mv phpmyadmin/config.inc.php.3306 phpmyadmin/config.inc.php
|
||||
# change directory permissions.
|
||||
chmod a+rx lampp
|
||||
chown nobody -R var/mysql
|
||||
chmod 777 tmp
|
||||
chmod 777 temp
|
||||
chmod a+rx -R zentao
|
||||
chmod 777 -R zentao/tmp
|
||||
chmod 777 -R zentao/www/data
|
||||
@@ -54,4 +54,5 @@ if [ ! -f ./zentao/bin/backup.sh ]; then
|
||||
fi
|
||||
|
||||
# start apache, mysql.
|
||||
./lampp start
|
||||
./lampp startapache
|
||||
./lampp startmysql
|
||||
|
||||
+3
-3
@@ -39,14 +39,13 @@ mv phpmyadmin/config.inc.php.3308 phpmyadmin/config.inc.php
|
||||
# change directory permissions.
|
||||
chmod a+rx lampp
|
||||
chown nobody -R var/mysql
|
||||
chmod 777 tmp
|
||||
chmod 777 temp
|
||||
chmod a+rx -R zentao
|
||||
chmod 777 -R zentao/tmp
|
||||
chmod 777 -R zentao/www/data
|
||||
chmod 777 zentao/module
|
||||
find zentao/ -name ext |xargs chmod -R 777
|
||||
|
||||
# init the shells in zentao/bin
|
||||
# init the shells in zentao/bin
|
||||
if [ ! -f ./zentao/bin/backup.sh ]; then
|
||||
ip=`ifconfig |grep inet|head -n 1 |awk -F':' '{print $2}' |awk -F ' ' '{print $1}'`
|
||||
@@ -55,4 +54,5 @@ if [ ! -f ./zentao/bin/backup.sh ]; then
|
||||
fi
|
||||
|
||||
# start apache, mysql.
|
||||
./lampp start
|
||||
./lampp startapache
|
||||
./lampp startmysql
|
||||
|
||||
+2
-1
@@ -5,4 +5,5 @@ then
|
||||
exit
|
||||
fi
|
||||
|
||||
./lampp stop
|
||||
./lampp stopapache
|
||||
./lampp stopmysql
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.icon-green-task-create {padding:2px 7px 2px 10px; background:url(theme/default/images/main/zt-icons.png) -120px -200px;}
|
||||
.icon-green-task-batchCreate {padding:2px 10px 2px 10px; background:url(theme/default/images/main/zt-icons.png) -199px -200px;}
|
||||
|
||||
.icon-green-testcase-create {padding:2px 7px 2px 10px; background:url(theme/default/images/main/zt-icons.png) -80px -322px;}
|
||||
.icon-green-testcase-batchCreate {padding:2px 7px 2px 10px; background:url(theme/default/images/main/zt-icons.png) -80px -322px;}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<th class='w-hour {sorter:false}'> <?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
|
||||
<th class='w-status {sorter:false}'> <?php common::printOrderLink('stage', $orderBy, $vars, $lang->story->stageAB);?></th>
|
||||
<th class='w-50px'> <?php echo $lang->story->taskCount;?></th>
|
||||
<th class='w-120px {sorter:false}'> <?php echo $lang->actions;?></th>
|
||||
<th class='w-100px {sorter:false}'> <?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -83,7 +83,8 @@
|
||||
$lang->task->batchCreate = $lang->project->batchWBS;
|
||||
common::printIcon('task', 'batchCreate', "projectID={$project->id}&story={$story->id}", '', 'list');
|
||||
|
||||
if($productID) common::printIcon('story', 'createCase', "productID=$story->product&moduleID=0&from=¶m=0&storyID=$story->id", '', 'list', 'createCase');
|
||||
$lang->testcase->batchCreate = $lang->testcase->create;
|
||||
if($productID) common::printIcon('testcase', 'batchCreate', "productID=$story->product&moduleID=0&storyID=$story->id", '', 'list');
|
||||
|
||||
$lang->project->unlinkStory = $lang->unlink;
|
||||
common::printIcon('project', 'unlinkStory', $param, '', 'list', '', 'hiddenwin');
|
||||
|
||||
@@ -277,16 +277,16 @@ class testcase extends control
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int $moduleID
|
||||
* @param int $testcaseID
|
||||
* @param int $storyID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function batchCreate($productID, $moduleID = 0)
|
||||
public function batchCreate($productID, $moduleID = 0, $storyID = 0)
|
||||
{
|
||||
$this->loadModel('story');
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$caseID = $this->testcase->batchCreate($productID);
|
||||
$caseID = $this->testcase->batchCreate($productID, $storyID);
|
||||
if(dao::isError()) die(js::error(dao::getError()));
|
||||
die(js::locate($this->createLink('testcase', 'browse', "productID=$productID&browseType=byModule¶m=$moduleID"), 'parent'));
|
||||
}
|
||||
@@ -310,10 +310,10 @@ class testcase extends control
|
||||
$this->view->title = $title;
|
||||
$this->view->position = $position;
|
||||
$this->view->productID = $productID;
|
||||
$this->view->story = $storyID ? $this->story->getByID($storyID) : '';
|
||||
$this->view->productName = $this->products[$productID];
|
||||
$this->view->moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0);
|
||||
$this->view->currentModuleID = $currentModuleID;
|
||||
$this->view->stories = $this->story->getProductStoryPairs($productID);
|
||||
$this->view->type = $type;
|
||||
$this->view->title = $title;
|
||||
|
||||
|
||||
@@ -73,12 +73,14 @@ class testcaseModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a batch case.
|
||||
* Batch create cases.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int $storyID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function batchCreate($productID)
|
||||
function batchCreate($productID, $storyID)
|
||||
{
|
||||
$now = helper::now();
|
||||
$cases = fixer::input('post')->get();
|
||||
@@ -90,7 +92,7 @@ class testcaseModel extends model
|
||||
$data[$i]->product = $productID;
|
||||
$data[$i]->module = $cases->module[$i] == 'same' ? ($i == 0 ? 0 : $data[$i-1]->module) : $cases->module[$i];
|
||||
$data[$i]->type = $cases->type[$i] == 'same' ? ($i == 0 ? '' : $data[$i-1]->type) : $cases->type[$i];
|
||||
$data[$i]->story = $cases->story[$i] == 'same' ? ($i == 0 ? 0 : $data[$i-1]->story) : $cases->story[$i];
|
||||
$data[$i]->story = $storyID ? $storyID : ($cases->story[$i] == 'same' ? ($i == 0 ? 0 : $data[$i-1]->story) : $cases->story[$i]);
|
||||
$data[$i]->title = htmlspecialchars($cases->title[$i]);
|
||||
$data[$i]->openedBy = $this->app->user->account;
|
||||
$data[$i]->openedDate = $now;
|
||||
|
||||
@@ -16,28 +16,27 @@
|
||||
<?php js::set('productID', $productID);?>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table align='center' class='table-1 fixed'>
|
||||
<caption><?php echo $lang->testcase->batchCreate;?></caption>
|
||||
<caption><?php echo $lang->testcase->batchCreate; if($story) echo "{$lang->colon}STORY#{$story->id} $story->title";?></caption>
|
||||
<tr>
|
||||
<th class='w-20px'><?php echo $lang->idAB;?></th>
|
||||
<th class='w-300px'><?php echo $lang->testcase->module;?></th>
|
||||
<th class='w-180px'><?php echo $lang->testcase->type;?></th>
|
||||
<th><?php echo $lang->testcase->story;?></th>
|
||||
<th class='w-300px red'><?php echo $lang->testcase->title;?></th>
|
||||
<?php if(!$story) echo "<th>{$lang->testcase->story}</th>";?>
|
||||
<th class='red'><?php echo $lang->testcase->title;?></th>
|
||||
</tr>
|
||||
<?php for($i = 0; $i < $config->testcase->batchCreate; $i++):?>
|
||||
<?php $moduleOptionMenu['same'] = $lang->testcase->same; if($i != 0) $currentModuleID = 'same';?>
|
||||
<?php $lang->testcase->typeList['same'] = $lang->testcase->same; $type = ($i == 0 ? 'feature' : 'same');?>
|
||||
<?php $stories['same'] = $lang->testcase->same; $story = $i == 0 ? '' : 'same';?>
|
||||
<?php $pri = 3;?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class=select-1");?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=select-1");?></td>
|
||||
<td class='a-left'style='overflow:visible'><?php echo html::select("story[$i]", '', $story, 'class="select-1 storySelect"');?></td>
|
||||
<?php if(!$story):?><td class='a-left'style='overflow:visible'><?php echo html::select("story[$i]", '', '', 'class="select-1 storySelect"');?></td><?php endif;?>
|
||||
<td><?php echo html::input("title[$i]", '', "class='text-1'");?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
<tr><td colspan='5' class='a-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
<tr><td colspan='<?php $story ? print '4' : print '5'?>' class='a-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -58,5 +58,11 @@
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $case = $run->case; include './results.html.php'; ?>
|
||||
<?php
|
||||
ob_start();
|
||||
$case = $run->case; include './results.html.php';
|
||||
$results = ob_get_contents();
|
||||
ob_clean();
|
||||
echo preg_replace("/<h1>[\s\S]*<\/h1>|<fieldset>[\s\S]*<\/fieldset>/", "", $results);
|
||||
?>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user