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/lang/ drwxr-xr-x |
Viewing file: sort_lang.sh (1.97 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/bin/sh # $Id: sort_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ ## # Shell script to make each language file neat and tidy # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## specialsort() { in=$1 out=$2 STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for i in $STRINGORDER; do egrep '^\$str'$i $in | sort >> $out echo >> $out done } sortlang() { f=$1 targetdir=tmp-$f mkdir -p $targetdir TRANSLATIONSTRING='//.*translate.*$' STRINGSTRING='^\$str[[:alnum:]_]+' WHITESPACE='^[[:blank:]]*$' CVSID='/\* \$Id: sort_lang.sh,v 2.1 2003/11/26 20:42:58 nijel Exp $ \*/' echo -n "Extracting:" echo -n " head" egrep -i -v $TRANSLATIONSTRING $f | \ egrep -v "$STRINGSTRING|$CVSID|\?>|<\?php" >> $targetdir/head echo -n " cvs" egrep "$CVSID" $f >>$targetdir/cvs echo -n " strings" egrep -i -v "$WHITESPACE|$TRANSLATIONSTRING" $f | \ egrep $STRINGSTRING > $targetdir/tmp-tosort echo -n " pending_translations" egrep -i "$STRINGSTRING.*$TRANSLATIONSTRING" $f > $targetdir/tmp-translate echo echo -n "Building:" echo -n " strings" specialsort $targetdir/tmp-tosort $targetdir/sort echo -n " pending_translations" if [ -s $targetdir/tmp-translate ] ; then echo '// To translate:' > $targetdir/translate specialsort $targetdir/tmp-translate $targetdir/translate else echo -n > $targetdir/translate fi echo echo "Assembling final" echo "<?php" > $f cat $targetdir/cvs $targetdir/head $targetdir/sort $targetdir/translate \ | uniq >> $f echo "?>" >> $f rm -rf $targetdir } echo "-------------------------------------------------------------------" for i in "$@"; do if [ ! -f $i ] ; then echo "$i is not a file, skipping" else echo "Sorting $i" sortlang $i fi echo "-------------------------------------------------------------------" done; |
:: 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.0092 ]-- |