Changeset 891

Show
Ignore:
Timestamp:
04/26/2005 08:39:21 AM (4 years ago)
Author:
ckruse
Message:

merged back changes from trunk

Location:
cforum/branches/3.3
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • cforum/branches/3.3/ChangeLog

    r884 r891  
    1 2005-04-22 Christian Kruse <ckruse@wwwtech.de> 
    2         * conf/modules.de.xml: Added LinkInvisible 
    3         * src/perl/Plugins/ImportExport.pm: Added support for submitting a string 
    4                 rather than a file 
    5         * src/clientlib.[ch]: Added support for static URI flags 
    6         * src/modules/flt_cgiconfig.c: Now sets readmode=value and showthread=value to 
    7                 static uri flags if set 
    8         * src/modules/flt_admin.c: Now sets aaf=1 to static uri flags 
    9         * src/modules/flt_link.c: Added support to link to invisible postings in admin 
    10                 mode 
     12005-04-26 Christian Kruse <ckruse@wwwtech.de> 
     2        * src/fo_post.c: Fixed #787 
     3        * src/defines.h: Changed CF_BUFSIZ to BUFSIZ (#define CF_BUFSIZ BUFSIZ), 
     4                changed version number 
    115 
     62005-04-24 Christian Seiler <self@christian-seiler.de> 
     7        * src/parsetpl/parsetpl.lex: Added {iws} and {endiws} tags. 
     8 
  • cforum/branches/3.3/conf/modules.de.xml

    r884 r891  
    10211021          <validate>^(yes|no)$</validate> 
    10221022          <question>Sollen Link-Tags im Administrator-Modus auf gelöschte/unsichtbare Postings zeigen?</question> 
    1023           <error>Sollen Link-Tags im Administrator-Modus auf gelöschte/unsichtbare Postings zeigen? Bitte geben Sie &quo;ja&quot; oder &quot;nein&quot; an!</error> 
     1023          <error>Sollen Link-Tags im Administrator-Modus auf gelöschte/unsichtbare Postings zeigen? Bitte geben Sie &quot;ja&quot; oder &quot;nein&quot; an!</error> 
    10241024          <formvalues> 
    10251025            <value val="yes">Ja</value> 
  • cforum/branches/3.3/src/defines.h

    r884 r891  
    2323#define CF_SORT_NEWESTFIRST 3 
    2424 
    25 #define CF_VERSION "3.3.4" 
     25#define CF_VERSION "3.3.5" 
    2626 
    27 #define CF_BUFSIZ 2048 
     27#define CF_BUFSIZ BUFSIZ 
    2828 
    2929#define CF_ERR (1<<1) /**< Used by the logging function. Log an error. */ 
  • cforum/branches/3.3/src/fo_post.c

    r856 r891  
    538538      case '\015': 
    539539        if(*(ptr+1) == '\012') ++ptr; 
     540 
     541      case '\012': 
    540542        str_char_append(str,'\012'); 
    541543 
  • cforum/branches/3.3/src/modules/flt_noanswer.c

    r878 r891  
    156156  t_cf_post_flag *flag; 
    157157 
    158   if((flag = cf_flag_by_name(&msg->flags,"no-answer")) != NULL) cf_tpl_hashvar_setvalue(hash,"na",TPL_VARIABLE_INT,1); 
     158  if((flag = cf_flag_by_name(&msg->flags,"no-answer")) != NULL && si == 0) cf_tpl_hashvar_setvalue(hash,"na",TPL_VARIABLE_INT,1); 
    159159 
    160160  return FLT_OK; 
  • cforum/branches/3.3/src/parsetpl/parsetpl.lex

    r856 r891  
    4949#define PARSETPL_TOK_HASHASSIGNMENT      0x23 
    5050#define PARSETPL_TOK_CONCAT              0x24 
     51#define PARSETPL_TOK_IWS_START           0x25 
     52#define PARSETPL_TOK_IWS_END             0x26 
    5153 
    5254#define PARSETPL_INCLUDE_EXT     ".html" 
     
    8385static int  uses_loopassign          = 0; 
    8486static int  uses_tmpstring           = 0; 
     87static int  iws                      = 0; 
    8588 
    8689/* 
     
    104107\n   { 
    105108  ++lineno; /* count line numbers */ 
    106   str_char_append(&content,'\n'); 
     109  if (!iws) { 
     110    str_char_append(&content,'\n'); 
     111  } 
    107112} 
    108113 
     
    222227    return PARSETPL_TOK_ENDFOREACH; 
    223228  } 
     229  iws                 { 
     230    str_chars_append(&content_backup,yytext,yyleng); 
     231    return PARSETPL_TOK_IWS_START; 
     232  } 
     233  endiws              { 
     234    str_chars_append(&content_backup,yytext,yyleng); 
     235    return PARSETPL_TOK_IWS_END; 
     236  } 
    224237  <<EOF>>        { 
    225238    str_chars_append(&content_backup,yytext,yyleng); 
     
    279292    str_chars_append(&content_backup,yytext,yyleng); 
    280293    str_char_append(&string,*yytext); 
     294  } 
     295} 
     296 
     297[ \r\t] { 
     298  if (!iws) { 
     299    str_char_append(&content,*yytext); 
    281300  } 
    282301} 
     
    22002219  rtype = ((t_token*)array_element_at(data,0))->type; 
    22012220   
    2202   if(rtype == PARSETPL_TOK_VARIABLE) { 
     2221  if(rtype == PARSETPL_TOK_IWS_START && data->elements == 1) { 
     2222    iws = 1; 
     2223    return 0; 
     2224  } 
     2225  else if(rtype == PARSETPL_TOK_IWS_END && data->elements == 1) { 
     2226    iws = 0; 
     2227    return 0; 
     2228  } 
     2229  else if(rtype == PARSETPL_TOK_VARIABLE) { 
    22032230    variable = (t_token *)array_shift(data); 
    22042231    // 2 possibilities: 
     
    23182345  str_chars_append(&output_name,".c",2); 
    23192346  p = strrchr(basename,'/'); 
    2320   if(!p) p = basename; 
     2347  if(!p) 
     2348    p = basename; 
     2349  else 
     2350    p++; 
    23212351  str_char_set(&current_file,p,strlen(p)); 
    23222352  free(basename);