Rev 14941 | Rev 15276 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14941 | Rev 15130 | ||
---|---|---|---|
Line 902... | Line 902... | ||
902 | } |
902 | } |
903 | 903 | ||
904 | /* Create form refering to the page. */ |
904 | /* Create form refering to the page. */ |
905 | void exec_form(char *p) |
905 | void exec_form(char *p) |
906 | { |
906 | { |
907 | char *s, *p1, *p2, *a, *m, *opt, st[128], *wn=""; |
907 | char *s, *p1, *p2, *a, *m, *opt, st[128], *wn="", *form_id; |
908 | char abuf[128]; |
908 | char abuf[128], idbuf[128]; |
909 | int i, new=0; |
909 | int i, new=0; |
910 | if(!outputing) return; |
910 | if(!outputing) return; |
911 | href_find_target(p); |
911 | href_find_target(p); |
912 | s=getvar("wims_ref_target"); |
912 | s=getvar("wims_ref_target"); |
913 | if(href_target[0]!=0) s=href_target; |
913 | if(href_target[0]!=0) s=href_target; |
Line 931... | Line 931... | ||
931 | force_setvar("wims_form_method",""); |
931 | force_setvar("wims_form_method",""); |
932 | } |
932 | } |
933 | else m=default_form_method; |
933 | else m=default_form_method; |
934 | } |
934 | } |
935 | else m=default_form_method; |
935 | else m=default_form_method; |
- | 936 | ||
936 | if(strstr(session_prefix,"_check")!=NULL) { |
937 | if(strstr(session_prefix,"_check")!=NULL) { |
937 | output("<form action=\"NON_EXISTING_PAGE\" onsubmit=\"window.close();\" %s>\n", |
938 | output("<form action=\"NON_EXISTING_PAGE\" onsubmit=\"window.close();\" %s>\n", |
938 | opt); |
939 | opt); |
939 | return; |
940 | return; |
940 | } |
941 | } |
- | 942 | ||
- | 943 | form_id=getvar("wims_form_id"); |
|
- | 944 | if(form_id==NULL || *form_id==0 || isspace(*form_id)){ |
|
- | 945 | form_id=""; |
|
- | 946 | } else { |
|
- | 947 | snprintf(idbuf,sizeof(idbuf),"id=\"%s\"",find_word_start(form_id));form_id=idbuf; |
|
- | 948 | } |
|
- | 949 | force_setvar("wims_form_id",""); |
|
- | 950 | ||
941 | output("<form action=\"%s%s\"%s method=\"%s\" %s>\n |
951 | output("<form action=\"%s%s\"%s method=\"%s\" %s %s>\n<div class='wims_form'>%s",ref_name,a,st,m,opt,form_id,wn); |
942 | if(a!=abuf && a[0]) force_setvar("wims_ref_anchor",""); |
952 | if(a!=abuf && a[0]) force_setvar("wims_ref_anchor",""); |
943 | for(i=0;i<follow_no;i++) { |
953 | for(i=0;i<follow_no;i++) { |
944 | if(robot_access && follow_list[i]==ro_session) continue; |
954 | if(robot_access && follow_list[i]==ro_session) continue; |
945 | if(!new && follow_list[i]!=ro_session |
955 | if(!new && follow_list[i]!=ro_session |
946 | && follow_list[i]!=ro_module && follow_list[i]!=ro_lang) |
956 | && follow_list[i]!=ro_module && follow_list[i]!=ro_lang) |