Changeset 10094


Ignore:
Timestamp:
08/05/08 16:02:16 (5 years ago)
Author:
BrainSlayer
Message:

fix some other bad persistence vars

Location:
src/router/httpd
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/httpd.c

    r9924 r10094  
    105105 
    106106#define DEFAULT_HTTP_PORT 80 
    107 #ifdef HAVE_HTTPS 
    108 int do_ssl; 
    109 #endif 
    110107int server_port; 
    111108char pid_file[80]; 
    112109char *server_dir = NULL; 
    113  
     110#ifdef HAVE_HTTPS 
     111int do_ssl=0; 
     112#endif 
    114113#ifdef SAMBA_SUPPORT 
    115114extern int smb_getlock; 
  • src/router/httpd/httpd.h

    r10093 r10094  
    133133  int Pdo_ssl; 
    134134#endif 
    135   int Pgozila_action; 
    136   int Pbrowser_method; 
    137135}; 
    138136 
  • src/router/httpd/modules/broadcom.c

    r10093 r10094  
    5353 
    5454 
    55 int gozila_action = 0; 
    5655int debug_value = 0; 
    57 int browser_method = 0; 
    5856 
    5957//static char * rfctime(const time_t *timep); 
     
    942940  struct gozila_action *act; 
    943941 
    944   gozila_action = 1; 
     942  nvram_set("gozila_action","1"); 
    945943  my_next_page[0] = '\0'; 
    946944  submit_button = websGetVar (wp, "submit_button", NULL);       /* every html must have the name */ 
     
    10171015  websDone (wp, 200); 
    10181016 
    1019   gozila_action = 0;            //reset gozila_action 
     1017  nvram_set("gozila_action","0"); 
    10201018  nvram_set("generate_key","0"); 
    10211019  nvram_set("clone_wan_mac","0"); 
     
    11581156      ("lan_ipaddr", "lan_netmask", 
    11591157       nvram_safe_get ("http_client_ip")) == TRUE) 
    1160     browser_method = USE_LAN; 
     1158    nvram_set("browser_method","USE_LAN"); 
    11611159  else 
    1162     browser_method = USE_WAN; 
     1160    nvram_set("browser_method","USE_WAN"); 
    11631161 
    11641162  /**********   get all webs var **********/ 
  • src/router/httpd/modules/callvalidate.c

    r10093 r10094  
    8888char *GOZILA_GET(webs_t wp,char *name) 
    8989{ 
    90 return gozila_action ? websGetVar(wp, name, NULL) : nvram_safe_get(name); 
     90return nvram_match("gozila_action","1") ? websGetVar(wp, name, NULL) : nvram_safe_get(name); 
    9191} 
    9292 
     
    142142//extern struct wl_client_mac *wl_client_macs; 
    143143 
    144 extern int gozila_action; 
    145 extern int browser_method; 
    146144extern char *live_translate (char *tran); 
    147145 
     
    178176  env->Pwfflush = wfflush; 
    179177  env->PwebsRomPageIndex = websRomPageIndex; 
    180   env->Pgozila_action = gozila_action; 
    181   env->Pbrowser_method = browser_method; 
    182178  env->Plive_translate = live_translate; 
    183179  env->PGOZILA_GET = GOZILA_GET; 
  • src/router/httpd/visuals/ejs.c

    r10093 r10094  
    4848int do_ssl; 
    4949#endif 
    50 int gozila_action; 
    51 int browser_method; 
    5250 
    5351void 
     
    8381  cprintf ("set websrompageindex\n"); 
    8482  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; 
    8983  cprintf ("set live_translate\n"); 
    9084  live_translate = env->Plive_translate; 
     
    277271#endif 
    278272  name = argv[0]; 
    279   if (gozila_action) 
     273  if (nvram_match("gozila_action","1")) 
    280274    { 
    281275      char *buf = websGetVar (wp, name, NULL); 
     
    984978    strcpy (http, "http"); 
    985979 
    986   if (browser_method == USE_LAN) 
     980  if (nvram_match("browser_method","USE_LAN")) 
    987981    {                           // Use LAN to browser 
    988982      if (nvram_match ("restore_defaults", "1") 
  • src/router/httpd/visuals/status.c

    r9812 r10094  
    259259          /* press [ Connect | Disconnect ] button */ 
    260260          /* set retry count */ 
    261           if (gozila_action) 
     261          if (nvram_match("gozila_action","1")) 
    262262            retry_count = STATUS_RETRY_COUNT;   // retry 3 times 
    263263 
     
    279279        { 
    280280          if (retry_count == 0 
    281               || (!submit_type && !wan_link && gozila_action)) 
     281              || (!submit_type && !wan_link && nvram_match("gozila_action","1"))) 
    282282            {                   //After refresh 2 times, if the status is disconnect, show Alert message. 
    283283              websWrite (wp, "ShowAlert(\"TIMEOUT\");"); 
Note: See TracChangeset for help on using the changeset viewer.