MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/phpMyAdmin/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/phpMyAdmin/scripts/find_unused_messages.sh
#!/bin/sh

# Simple script to find unused message strings by Michal Čihař

phpfiles=`find . -type f -a -name '*.php' -a -not -path '*/lang/*'`

sed -n '/^\$str/ s/\$\([^ ]*\) .*/\1/p' lang/english-iso-8859-1.inc.php \
    | grep -v ^strTransformation_ \
    | while read x
        do
            echo "Checking for $x" >&2
            if [ `grep -r "\\<$x\\>" $phpfiles | wc -l` -eq 0 ] 
            then
                echo $x
            fi
        done

Anon7 - 2021