diff options
author | foobar <sniper@php.net> | 2005-06-20 13:37:32 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-06-20 13:37:32 +0000 |
commit | 56c1b316da080f85f55b98b2d63d93872d883adb (patch) | |
tree | 5c76aa6529e6799885a848776155e45468f63232 | |
parent | 8be61d707fbc1c819cd4eebb5d90b0a6d4aeaf97 (diff) | |
download | php-git-56c1b316da080f85f55b98b2d63d93872d883adb.tar.gz |
- Added session.hash_bits_per_character support. (3rd param)
(Changes by: waltzer at autumnweave dot com)
-rw-r--r-- | ext/session/mod_files.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/session/mod_files.sh b/ext/session/mod_files.sh index 4d6a681d9c..6d9d5d9497 100644 --- a/ext/session/mod_files.sh +++ b/ext/session/mod_files.sh @@ -9,8 +9,16 @@ if test "$2" = "0"; then exit 0 fi -for i in a b c d e f 0 1 2 3 4 5 6 7 8 9; do +hash_chars="0 1 2 3 4 5 6 7 8 9 a b c d e f" +if test "$3" -a "$3" -ge "5"; then + hash_chars="$hash_chars g h i j k l m n o p q r s t u v" + if test "$3" -eq "6"; then + hash_chars="$hash_chars w x y z 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 - ," + fi +fi + +for i in $hash_chars; do newpath="$1/$i" mkdir $newpath || exit 1 - sh $0 $newpath `expr $2 - 1` + sh $0 $newpath `expr $2 - 1 $3` done |