Line | |
---|
1 | #file=cross_post_list_ftyp |
---|
2 | #on entry: $menu_opt=...List=xxx&...Ftypo=yyy&...Fcomo=zzz&... (POST method) |
---|
3 | #on exit: defines $list=xxx if List is defined |
---|
4 | # $list="" otherwise |
---|
5 | # $ftypo=yyy if Ftypo is defined |
---|
6 | # $ftypo="" otherwise |
---|
7 | # $fcomo=zzz if Fcomo is defined |
---|
8 | # $fcomo="" otherwise |
---|
9 | ifs=$IFS;IFS="&";list=;ftypo=;for s in $menu_opt;do |
---|
10 | l=`expr "$s" : 'Style=\(.*\)'`;[ "$l" ]&&style="$l" |
---|
11 | l=`expr "$s" : 'List=\(.*\)'`;[ "$l" ]&&list="$l" |
---|
12 | l=`expr "$s" : 'Ftypo=\(.*\)'`;[ "$l" ]&&ftypo="$l" |
---|
13 | l=`expr "$s" : 'Fcomo=\(.*\)'`;[ "$l" ]&&fcomo="$l" |
---|
14 | done;IFS=$ifs |
---|
Note: See
TracBrowser
for help on using the repository browser.