Changeset 15648
- Timestamp:
- Jun 12, 2012, 1:27:14 PM (12 years ago)
- Location:
- extensions/Subscribe_to_comments
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/include/functions.inc.php
r15641 r15648 157 157 158 158 // check email 159 if ( !empty($email) and !is_valid_email($email) ) 160 { 161 array_push($page['errors'], l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)')); 162 return false; 163 } 159 164 if ( ( is_a_guest() or empty($user['email']) ) and empty($email) ) 160 165 { … … 679 684 680 685 /** 686 * check if mail adress is valid 687 * @param: string email 688 * @return: bool 689 */ 690 function is_valid_email($mail_address) 691 { 692 if (version_compare(PHP_VERSION, '5.2.0') >= 0) 693 { 694 return filter_var($mail_address, FILTER_VALIDATE_EMAIL)!==false; 695 } 696 else 697 { 698 $atom = '[-a-z0-9!#$%&\'*+\\/=?^_`{|}~]'; // before arobase 699 $domain = '([a-z0-9]([-a-z0-9]*[a-z0-9]+)?)'; // domain name 700 $regex = '/^' . $atom . '+' . '(\.' . $atom . '+)*' . '@' . '(' . $domain . '{1,63}\.)+' . $domain . '{2,63}$/i'; 701 702 if (!preg_match($regex, $mail_address)) return false; 703 return true; 704 } 705 } 706 707 708 /** 681 709 * crypt a string using mcrypt extension or 682 710 * http://stackoverflow.com/questions/800922/how-to-encrypt-string-without-mcrypt-library-in-php/802957#802957 -
extensions/Subscribe_to_comments/language/en_UK/plugin.lang.php
r15643 r15648 35 35 36 36 /* buttons */ 37 $lang['Manage my subscri btions'] = 'Manage my subscribtions';37 $lang['Manage my subscriptions'] = 'Manage my subscriptions'; 38 38 $lang['Subscribe'] = 'Subscribe'; 39 39 $lang['Unsubscribe'] = 'Unsubscribe'; -
extensions/Subscribe_to_comments/language/fr_FR/plugin.lang.php
r15644 r15648 21 21 $lang['Confirm your subscribtion to comments'] = 'Confirmez votre inscription aux commentaires'; 22 22 $lang['Followed on'] = 'Inscrit depuis'; 23 $lang['Manage my subscri btions'] = 'Gérer mes suivis';23 $lang['Manage my subscriptions'] = 'Gérer mes suivis'; 24 24 $lang['New subscription on'] = 'Nouveau suivi sur'; 25 25 $lang['Not found.'] = 'Non trouvé.'; -
extensions/Subscribe_to_comments/template/form_standalone.tpl
r15641 r15648 5 5 {if $SUBSCRIBED_ALL_IMAGES} 6 6 {'You are currently subscribed to comments on'|@translate} {'all pictures of the gallery'|@translate}. 7 <a href="{$MANAGE_LINK}">{'Manage my subscri btions'|@translate}</a>7 <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a> 8 8 9 9 {elseif $SUBSCRIBED_ALBUM_IMAGES} … … 17 17 {elseif $SUBSCRIBED_ALL_ALBUMS} 18 18 {'You are currently subscribed to comments on'|@translate} {'all albums of the gallery'|@translate}. 19 <a href="{$MANAGE_LINK}">{'Manage my subscri btions'|@translate}</a>19 <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a> 20 20 21 21 {elseif $SUBSCRIBED_ALBUM} -
extensions/Subscribe_to_comments/template/mail/confirm.tpl
r15641 r15648 15 15 <p><a href="{$STC.VALIDATE_URL}" class="button">{'Confirm subscription'|@translate}</a></p> 16 16 17 <p>{'Want to edit your notifications options?'|@translate} <a href="{$STC.MANAGE_URL}">{'Manage my subscri btions'|@translate}</a>.</p>17 <p>{'Want to edit your notifications options?'|@translate} <a href="{$STC.MANAGE_URL}">{'Manage my subscriptions'|@translate}</a>.</p> 18 18 19 19 </div> -
extensions/Subscribe_to_comments/template/mail/notification.tpl
r15641 r15648 17 17 <p> 18 18 <a href="{$STC.UNSUB_URL}">{'Stop receiving notifications'|@translate}</a><br> 19 <a href="{$STC.MANAGE_URL}">{'Manage my subscri btions'|@translate}</a>19 <a href="{$STC.MANAGE_URL}">{'Manage my subscriptions'|@translate}</a> 20 20 </p> 21 21 -
extensions/Subscribe_to_comments/template/subscribtions_page.tpl
r15642 r15648 18 18 <p> 19 19 {if !empty($element)}<a href="{$element.url}" title="{$element.name}">{'Return to item page'|@translate}</a><br>{/if} 20 <a href="{$MANAGE_LINK}">{'Manage my subscriptions to comments'|@translate}</a>20 <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a> 21 21 </p> 22 22 {/if}
Note: See TracChangeset
for help on using the changeset viewer.