Changeset 20441 for extensions/ContactForm/include/functions.inc.php
- Timestamp:
- Jan 28, 2013, 5:25:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/functions.inc.php
r19180 r20441 13 13 $page['section'] = 'contact'; 14 14 $page['title'] = $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.CONTACT_FORM_PUBLIC.'">'.l10n('Contact').'</a>'; 15 16 } 17 } 18 function contact_form_header() 19 { 20 global $page, $template; 21 22 if (isset($page['section']) and $page['section'] == 'contact') 23 { 24 $page['body_id'] = 'theContactPage'; 25 $template->assign('BODY_ID', $page['body_id']); 15 26 } 16 27 } … … 352 363 function check_email_validity($mail_address) 353 364 { 354 if (version_compare(PHP_VERSION, '5.2.0') >= 0) 365 if (function_exists('email_check_format')) 366 { 367 return email_check_format($mail_address); // Piwigo 2.5 368 } 369 else if (version_compare(PHP_VERSION, '5.2.0') >= 0) 355 370 { 356 371 return filter_var($mail_address, FILTER_VALIDATE_EMAIL)!==false;
Note: See TracChangeset
for help on using the changeset viewer.