| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | program/steps/settings/save_identity.inc | |
| | | | | |
| | |
| | | if (!isset($_POST[$fname])) { |
| | | $save_data[$col] = 0; |
| | | } |
| | | } |
| | | |
| | | // make the identity a "default" if only one identity is allowed |
| | | if (IDENTITIES_LEVEL > 1) { |
| | | $save_data['standard'] = 1; |
| | | } |
| | | |
| | | // unset email address if user has no rights to change it |
| | |
| | | $insert_id = $plugin['result']; |
| | | |
| | | if ($insert_id) { |
| | | $RCMAIL->plugins->exec_hook('identity_create_after', array('id' => $insert_id, 'record' => $save_data)); |
| | | |
| | | $OUTPUT->show_message('successfullysaved', 'confirmation', null, false); |
| | | |
| | | $_GET['_iid'] = $insert_id; |
| | |
| | | global $RCMAIL; |
| | | |
| | | $offset = 0; |
| | | $regexp = '/\s(poster|src)\s*=\s*[\'"]*\S+upload-display\S+file=rcmfile([0-9]+)[\s\'"]*/'; |
| | | $regexp = '/\s(poster|src)\s*=\s*[\'"]*\S+upload-display\S+file=rcmfile(\w+)[\s\'"]*/'; |
| | | |
| | | while (preg_match($regexp, $html, $matches, 0, $offset)) { |
| | | $file_id = $matches[2]; |