Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/phpmyadmin/lang/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # $Id$ # # Shell script that adds a message to all message files (Lem9) # # Example: add_message.sh '$strNewMessage' 'new message contents' # if [ $# -ne 2 ] ; then echo "usage: add_message.sh '\$strNewMessage' 'new message contents'" exit 1 fi for file in *.inc.php do echo $file " " grep -v '?>' ${file} > ${file}.new case $file in english*) echo "$1 = '"$2"';" >> ${file}.new ;; *) echo "$1 = '"$2"'; //to translate" >> ${file}.new ;; esac echo "?>" >> ${file}.new rm $file mv ${file}.new $file done ./sort_lang.sh english* echo " " echo "Message added to all message files (including english)" |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0152 ]-- |