Changeset 10094
- Timestamp:
- 08/05/08 16:02:16 (5 years ago)
- Location:
- src/router/httpd
- Files:
-
- 6 edited
-
httpd.c (modified) (1 diff)
-
httpd.h (modified) (1 diff)
-
modules/broadcom.c (modified) (4 diffs)
-
modules/callvalidate.c (modified) (3 diffs)
-
visuals/ejs.c (modified) (4 diffs)
-
visuals/status.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/httpd.c
r9924 r10094 105 105 106 106 #define DEFAULT_HTTP_PORT 80 107 #ifdef HAVE_HTTPS108 int do_ssl;109 #endif110 107 int server_port; 111 108 char pid_file[80]; 112 109 char *server_dir = NULL; 113 110 #ifdef HAVE_HTTPS 111 int do_ssl=0; 112 #endif 114 113 #ifdef SAMBA_SUPPORT 115 114 extern int smb_getlock; -
src/router/httpd/httpd.h
r10093 r10094 133 133 int Pdo_ssl; 134 134 #endif 135 int Pgozila_action;136 int Pbrowser_method;137 135 }; 138 136 -
src/router/httpd/modules/broadcom.c
r10093 r10094 53 53 54 54 55 int gozila_action = 0;56 55 int debug_value = 0; 57 int browser_method = 0;58 56 59 57 //static char * rfctime(const time_t *timep); … … 942 940 struct gozila_action *act; 943 941 944 gozila_action = 1;942 nvram_set("gozila_action","1"); 945 943 my_next_page[0] = '\0'; 946 944 submit_button = websGetVar (wp, "submit_button", NULL); /* every html must have the name */ … … 1017 1015 websDone (wp, 200); 1018 1016 1019 gozila_action = 0; //reset gozila_action1017 nvram_set("gozila_action","0"); 1020 1018 nvram_set("generate_key","0"); 1021 1019 nvram_set("clone_wan_mac","0"); … … 1158 1156 ("lan_ipaddr", "lan_netmask", 1159 1157 nvram_safe_get ("http_client_ip")) == TRUE) 1160 browser_method = USE_LAN;1158 nvram_set("browser_method","USE_LAN"); 1161 1159 else 1162 browser_method = USE_WAN;1160 nvram_set("browser_method","USE_WAN"); 1163 1161 1164 1162 /********** get all webs var **********/ -
src/router/httpd/modules/callvalidate.c
r10093 r10094 88 88 char *GOZILA_GET(webs_t wp,char *name) 89 89 { 90 return gozila_action? websGetVar(wp, name, NULL) : nvram_safe_get(name);90 return nvram_match("gozila_action","1") ? websGetVar(wp, name, NULL) : nvram_safe_get(name); 91 91 } 92 92 … … 142 142 //extern struct wl_client_mac *wl_client_macs; 143 143 144 extern int gozila_action;145 extern int browser_method;146 144 extern char *live_translate (char *tran); 147 145 … … 178 176 env->Pwfflush = wfflush; 179 177 env->PwebsRomPageIndex = websRomPageIndex; 180 env->Pgozila_action = gozila_action;181 env->Pbrowser_method = browser_method;182 178 env->Plive_translate = live_translate; 183 179 env->PGOZILA_GET = GOZILA_GET; -
src/router/httpd/visuals/ejs.c
r10093 r10094 48 48 int do_ssl; 49 49 #endif 50 int gozila_action;51 int browser_method;52 50 53 51 void … … 83 81 cprintf ("set websrompageindex\n"); 84 82 websRomPageIndex = env->PwebsRomPageIndex; 85 cprintf ("set gozila_action\n");86 gozila_action = env->Pgozila_action;87 cprintf ("set browser_method\n");88 browser_method = env->Pbrowser_method;89 83 cprintf ("set live_translate\n"); 90 84 live_translate = env->Plive_translate; … … 277 271 #endif 278 272 name = argv[0]; 279 if ( gozila_action)273 if (nvram_match("gozila_action","1")) 280 274 { 281 275 char *buf = websGetVar (wp, name, NULL); … … 984 978 strcpy (http, "http"); 985 979 986 if ( browser_method == USE_LAN)980 if (nvram_match("browser_method","USE_LAN")) 987 981 { // Use LAN to browser 988 982 if (nvram_match ("restore_defaults", "1") -
src/router/httpd/visuals/status.c
r9812 r10094 259 259 /* press [ Connect | Disconnect ] button */ 260 260 /* set retry count */ 261 if ( gozila_action)261 if (nvram_match("gozila_action","1")) 262 262 retry_count = STATUS_RETRY_COUNT; // retry 3 times 263 263 … … 279 279 { 280 280 if (retry_count == 0 281 || (!submit_type && !wan_link && gozila_action))281 || (!submit_type && !wan_link && nvram_match("gozila_action","1"))) 282 282 { //After refresh 2 times, if the status is disconnect, show Alert message. 283 283 websWrite (wp, "ShowAlert(\"TIMEOUT\");");
Note: See TracChangeset
for help on using the changeset viewer.
