Subversion Repositories wimsdev

Rev

Rev 15276 | Rev 15488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15276 Rev 15277
Line 610... Line 610...
610
  setvar("wims_html_onload",wsbuf2);
610
  setvar("wims_html_onload",wsbuf2);
611
  if(wsbuf2[0]) ol=" onload="; else ol="";
611
  if(wsbuf2[0]) ol=" onload="; else ol="";
612
 
612
 
613
  output("<!DOCTYPE html>\
613
  output("<!DOCTYPE html>\
614
    \n<html lang=\"%s\"><head>\n\
614
    \n<html lang=\"%s\"><head>\n\
615
    <link rel=\"stylesheet\" href=\"html/themes/_css/robots.css\" />\n\
-
 
616
    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\"/>\n\
615
    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\"/>\n\
617
    %s\n", lang, hbuf);
616
    %s\n", lang, hbuf);
-
 
617
  if(robot_access){
-
 
618
    output("<link rel=\"stylesheet\" href=\"html/themes/_css/robots.css\" />");
-
 
619
  }
618
 
620
 
619
  _headmathjax(p);
621
  _headmathjax(p);
620
 
622
 
621
  if(ol[0]) {
623
  if(ol[0]) {
622
    output("</head>\n<body %s %s\"%s\" %s>", s2, ol, wsbuf2, bo);}
624
    output("</head>\n<body %s %s\"%s\" %s>", s2, ol, wsbuf2, bo);}
Line 815... Line 817...
815
    p3=strchr(p2,'\n'); if(p3!=NULL) *p3=0;
817
    p3=strchr(p2,'\n'); if(p3!=NULL) *p3=0;
816
    mystrncpy(b1,p1,sizeof(b1));
818
    mystrncpy(b1,p1,sizeof(b1));
817
    mystrncpy(b2,find_word_start(p2),sizeof(b2));
819
    mystrncpy(b2,find_word_start(p2),sizeof(b2));
818
    substit(b1); substit(b2);
820
    substit(b1); substit(b2);
819
  }
821
  }
820
    /* for robots: only references without defining cmd. */
822
  /* for robots: only references without defining cmd. */
821
  if(robot_access && strstr(b1,"cmd=")!=NULL &&
823
  if(robot_access && strstr(b1,"cmd=")!=NULL &&
822
      strstr(b1,"module=adm/doc")==NULL) {
824
      strstr(b1,"module=adm/doc")==NULL) {
823
    _output_(b2); return;
825
    _output_(b2); return;
824
  }
826
  }
825
  if(robot_access && strstr(aliased_cgi,"yes")!=NULL) {
827
  if(robot_access && strstr(aliased_cgi,"yes")!=NULL) {