no_inside_telnet = !(CAN_ANONYMOUS_INSIDE_DOMAIN_TELNET); no_outside_telnet = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_TELNET); #ifndef DISABLE_NEWS no_inside_news = !(CAN_ANONYMOUS_INSIDE_DOMAIN_READ_NEWS); no_outside_news = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_READ_NEWS);
if (no_shell) { no_goto_lynxexec = TRUE; no_goto_lynxprog = TRUE; no_goto_lynxcgi = TRUE; #ifdef EXEC_LINKS local_exec_on_local_files = TRUE;
PUBLIC void parse_restrictions ARGS1(	CONST char *,	s){      CONST char *p;      CONST char *word;      int i;      if (STREQ("all", s)) {	   /* set all restrictions */	  for (i=0; restrict_flag[i]; i++)	      *restrict_flag[i] = TRUE;	  return;      }      if (STREQ("default", s)) {	   /* set all restrictions */	  for (i=0; restrict_flag[i]; i++)	      *restrict_flag[i] = TRUE;	     /* reset these to defaults */	     no_inside_telnet = !(CAN_ANONYMOUS_INSIDE_DOMAIN_TELNET);	    no_outside_telnet = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_TELNET);#ifndef DISABLE_NEWS	       no_inside_news = !(CAN_ANONYMOUS_INSIDE_DOMAIN_READ_NEWS);	      no_outside_news = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_READ_NEWS);#endif		no_inside_ftp = !(CAN_ANONYMOUS_INSIDE_DOMAIN_FTP);	       no_outside_ftp = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_FTP);	     no_inside_rlogin = !(CAN_ANONYMOUS_INSIDE_DOMAIN_RLOGIN);	    no_outside_rlogin = !(CAN_ANONYMOUS_OUTSIDE_DOMAIN_RLOGIN);		      no_goto = !(CAN_ANONYMOUS_GOTO);		  no_goto_cso = !(CAN_ANONYMOUS_GOTO_CSO);		 no_goto_file = !(CAN_ANONYMOUS_GOTO_FILE);#ifndef DISABLE_FINGER	       no_goto_finger = !(CAN_ANONYMOUS_GOTO_FINGER);#endif		  no_goto_ftp = !(CAN_ANONYMOUS_GOTO_FTP);#ifndef DISABLE_GOPHER	       no_goto_gopher = !(CAN_ANONYMOUS_GOTO_GOPHER);#endif		 no_goto_http = !(CAN_ANONYMOUS_GOTO_HTTP);		no_goto_https = !(CAN_ANONYMOUS_GOTO_HTTPS);	      no_goto_lynxcgi = !(CAN_ANONYMOUS_GOTO_LYNXCGI);	     no_goto_lynxexec = !(CAN_ANONYMOUS_GOTO_LYNXEXEC);	     no_goto_lynxprog = !(CAN_ANONYMOUS_GOTO_LYNXPROG);	       no_goto_mailto = !(CAN_ANONYMOUS_GOTO_MAILTO);#ifndef DISABLE_NEWS		 no_goto_news = !(CAN_ANONYMOUS_GOTO_NEWS);		 no_goto_nntp = !(CAN_ANONYMOUS_GOTO_NNTP);#endif	       no_goto_rlogin = !(CAN_ANONYMOUS_GOTO_RLOGIN);#ifndef DISABLE_NEWS		no_goto_snews = !(CAN_ANONYMOUS_GOTO_SNEWS);#endif	       no_goto_telnet = !(CAN_ANONYMOUS_GOTO_TELNET);	       no_goto_tn3270 = !(CAN_ANONYMOUS_GOTO_TN3270);		 no_goto_wais = !(CAN_ANONYMOUS_GOTO_WAIS);	       no_telnet_port = !(CAN_ANONYMOUS_GOTO_TELNET_PORT);		      no_jump = !(CAN_ANONYMOUS_JUMP);		      no_mail = !(CAN_ANONYMOUS_MAIL);		     no_print = !(CAN_ANONYMOUS_PRINT);#if defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)		      no_exec = LOCAL_EXECUTION_LINKS_ALWAYS_OFF_FOR_ANONYMOUS;#endif /* EXEC_LINKS || EXEC_SCRIPTS */	  return;      }      p = s;      while (*p) {	  p = LYSkipCBlanks(p);	  if (*p == '\0')	      break;	  word = p;	  while (*p != ',' && *p != '\0')	      p++;	  for (i=0; restrict_name[i]; i++) {	     if (STRNEQ(word, restrict_name[i], p-word)) {		 *restrict_flag[i] = TRUE;		 break;	     }	  }	  if (*p)	      p++;      }      return;}