| [ Index ] |
PHP Cross Reference of TikiWiki Release 1.9 |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 3 # enable/disable .htaccess files 4 5 OLD=_htaccess 6 NEW=.htaccess 7 ACTION=activating 8 9 if [ "$1" = "off" ]; then 10 OLD=.htaccess 11 NEW=_htaccess 12 ACTION=deactivating 13 fi 14 15 ENTRIES=". `/bin/ls -Rd *`" 16 for ENTRY in $ENTRIES} 17 do 18 # only work on directories: 19 if [ -d "$ENTRY" ]; then 20 # do nothing if $NEW already available 21 if [ ! -e $ENTRY}/$NEW} ]; then 22 # if $OLD available, rename it 23 if [ -e $ENTRY}/$OLD} ]; then 24 echo "$ACTION} $ENTRY}/.htaccess" 25 chmod 644 $ENTRY}/$OLD} 26 mv $ENTRY}/$OLD} $ENTRY}/$NEW} 27 fi 28 fi 29 fi 30 done
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Nov 19 02:01:02 2008 | Cross-referenced by PHPXref 0.6 |