Subversion Repositories wimsdev

Rev

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

Rev 6717 Rev 7076
Line 359... Line 359...
359
        }
359
        }
360
        p=strchr(buf,'_');
360
        p=strchr(buf,'_');
361
        if(p!=NULL && p>buf+3 && myislower(*(p-1)) && myislower(*(p-2))
361
        if(p!=NULL && p>buf+3 && myislower(*(p-1)) && myislower(*(p-2))
362
           && *(p-3)=='/' && myisalpha(*(p+1))) {
362
           && *(p-3)=='/' && myisalpha(*(p+1))) {
363
            char *pp;
363
            char *pp;
364
            for(pp=p+1; myisalnum(*pp); pp++); if(*pp=='/') *(p-3)=0;
364
      for(pp=p+1; myisalnum(*pp); pp++);
-
 
365
      if(*pp=='/') *(p-3)=0;
365
        }
366
        }
366
        snprintf(ref_name,sizeof(ref_name)-2,"http://%s%s/%s",s1,buf,cgi_name);
367
        snprintf(ref_name,sizeof(ref_name)-2,"http://%s%s/%s",s1,buf,cgi_name);
367
        mystrncpy(ref_base,ref_name,sizeof(ref_base)-2);
368
        mystrncpy(ref_base,ref_name,sizeof(ref_base)-2);
368
        p=strrchr(ref_base,'/');
369
        p=strrchr(ref_base,'/');
369
        if(p!=NULL) *(p+1)=0;
370
        if(p!=NULL) *(p+1)=0;
Line 840... Line 841...
840
              if (st) {snprintf(buf,sizeof(buf),"<style type=\"text/css\"><!--\n\
841
              if (st) {snprintf(buf,sizeof(buf),"<style type=\"text/css\"><!--\n\
841
%s\n\
842
%s\n\
842
--></style>",tmplbuf); }
843
--></style>",tmplbuf); }
843
                  else {
844
                  else {
844
                  snprintf(buf,sizeof(buf),"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />\n\
845
                  snprintf(buf,sizeof(buf),"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />\n\
845
<link href=\"html/themes/$wims_theme/theme.css\" rel=\"stylesheet\" type=\"text/css\" />\n\
-
 
846
<link href=\"gifs/themes/%s/icon.css\" rel=\"stylesheet\" type=\"text/css\" />",nbuf,ti);
846
<link href=\"gifs/themes/%s/icon.css\" rel=\"stylesheet\" type=\"text/css\" />",nbuf,ti);
847
                 }
847
                 }
848
                setvar("wims_CSS",buf);
848
                setvar("wims_CSS",buf);
849
            }
849
            }
850
            else {
850
            else {