Ignore:
Timestamp:
Sep 13, 2006 11:49:28 PM (7 years ago)
Author:
estadtherr
Message:

Initial TinyMCE editor support (still need to work on spellcheck and skins)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/settings/save_identity.inc

    r330 r344  
    2020*/ 
    2121 
    22 $a_save_cols = array('name', 'email', 'organization', 'reply-to', 'bcc', 'standard', 'signature'); 
     22$a_save_cols = array('name', 'email', 'organization', 'reply-to', 'bcc', 'standard', 'signature', 'html_signature'); 
    2323$a_html_cols = array('signature'); 
    24  
     24$a_boolean_cols = array('standard', 'html_signature'); 
    2525 
    2626// check input 
     
    4747                             $DB->quoteIdentifier($col), 
    4848                             $DB->quote(get_input_value($fname, RCUBE_INPUT_POST, in_array($col, $a_html_cols)))); 
     49    } 
     50 
     51  // set "off" values for checkboxes that were not checked, and therefore 
     52  // not included in the POST body. 
     53  foreach ($a_boolean_cols as $col) 
     54    { 
     55    $fname = '_' . $col; 
     56    if (!isset($_POST[$fname])) 
     57      { 
     58      $a_write_sql[] = sprintf("%s=0", $DB->quoteIdentifier($col)); 
     59      } 
    4960    } 
    5061 
Note: See TracChangeset for help on using the changeset viewer.