Line | |
---|
1 | #file=geisa_post_getfname |
---|
2 | #on entry: $menu_opt=...Fnam=xxx&... (POST method) |
---|
3 | #on exit: $filelen |
---|
4 | ifs=$IFS;IFS="&";fnami=;for s in $menu_opt;do |
---|
5 | l=`expr "$s" : 'Fnam=\(.*\)'`;[ "$l" ]&&fnami="$l" |
---|
6 | done |
---|
7 | [ "$fnami" = "^M" ]&&fnami=; |
---|
8 | [ "$fnami" ]|| |
---|
9 | { |
---|
10 | echo "<em>" |
---|
11 | echol "Erreur: Le fichier source n'est pas spécifié" "Error: The source filename was not specified" |
---|
12 | echo ".</em><br>" |
---|
13 | error=1 |
---|
14 | } |
---|
15 | IFS=$ifs;read filelen |
---|
16 | [ "$fnami" -a "$filelen" = "0" ]&& |
---|
17 | { |
---|
18 | echo "<em>" |
---|
19 | echol "Erreur: Le fichier source </em>$fnami<em> est inexistant ou vide" "The source file was not found or is empty" |
---|
20 | echo ".</em><br>" |
---|
21 | error=1 |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.