Changeset 2198
- Timestamp:
- 04/16/10 00:26:11 (13 years ago)
- Location:
- plugins/subscribeToComments
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_define.php
r2124 r2198 30 30 /* Description*/ "Subscribe to comments by email", 31 31 /* Author */ "Moe (http://gniark.net/)", 32 /* Version */ '1.3 ',32 /* Version */ '1.3.1', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/subscribeToComments/_public.php
r1808 r2198 29 29 30 30 $core->tpl->addBlock('SubscribeToCommentsIsActive', 31 31 'subscribeToCommentsIsActive'); 32 32 33 33 function subscribeToCommentsIsActive($attr,$content) -
plugins/subscribeToComments/default-templates/subscribetocomments.html
r1808 r2198 47 47 }); 48 48 }); 49 50 /* l10n */ 51 prompt_allow = '{{tpl:lang Allow emails?}}'; 52 prompt_block = '{{tpl:lang Block emails?}}'; 53 prompt_delete = '{{tpl:lang Delete the account?}}'; 49 54 //]]> 50 55 </script> … … 181 186 value="{{tpl:lang Allow emails}}" 182 187 onclick="javascript:return( 183 window.confirm( '{{tpl:lang Allow emails?}}'));" />188 window.confirm(prompt_allow));" /> 184 189 </tpl:SubscribeToCommentsBlockedIf> 185 190 <tpl:SubscribeToCommentsBlockedIfNot> … … 187 192 value="{{tpl:lang Block emails}}" 188 193 onclick="javascript:return( 189 window.confirm( '{{tpl:lang Block emails?}}'));" />194 window.confirm(prompt_block));" /> 190 195 </tpl:SubscribeToCommentsBlockedIfNot> 191 196 </p> … … 194 199 value="{{tpl:lang Delete all subscriptions and the account}}" 195 200 onclick="javascript:return( 196 window.confirm( '{{tpl:lang Delete the account?}}'));" />201 window.confirm(prompt_delete));" /> 197 202 </p> 198 203 </fieldset> -
plugins/subscribeToComments/inc/class.subscriber.php
r1501 r2198 57 57 58 58 $rs = $core->con->select('SELECT user_key FROM '.$core->prefix. 59 'comment_subscriber WHERE (id = \''.$core->con->escape($this->id).'\') '. 59 'comment_subscriber WHERE (id = \''. 60 $core->con->escape((int) $this->id).'\') '. 60 61 'AND (email = \''.$core->con->escape($this->email).'\');'); 61 62 … … 411 412 $rs = $core->con->select('SELECT status FROM '. 412 413 $core->prefix.'comment_subscriber '. 413 'WHERE (id = \''.$core->con->escape( $id).'\') '.414 'WHERE (id = \''.$core->con->escape((int) $id).'\') '. 414 415 'AND (user_key = \''.$core->con->escape($key).'\');'); 415 416 if ($rs->isEmpty()) … … 429 430 { 430 431 global $core; 431 432 432 433 return(subscribeToComments::url(). 433 434 (($core->blog->settings->url_scan == 'query_string') ? '&' : '?').'email='. … … 469 470 $rs = $core->con->select('SELECT email FROM '. 470 471 $core->prefix.'comment_subscriber '. 471 'WHERE (id = \''.$core->con->escape( $id).'\');');472 'WHERE (id = \''.$core->con->escape((int) $id).'\');'); 472 473 473 474 if ($rs->isEmpty()) … … 515 516 $cur->temp_key = null; 516 517 $cur->temp_expire = null; 517 $cur->update('WHERE (id = \''.$core->con->escape( $rs->id).'\') '.518 $cur->update('WHERE (id = \''.$core->con->escape((int) $rs->id).'\') '. 518 519 'AND (temp_key = \''.$core->con->escape($temp_key).'\');'); 519 520 -
plugins/subscribeToComments/locales/fr/public.lang.php
r1606 r2198 46 46 $GLOBALS['__l10n']['Account'] = 'Compte'; 47 47 48 $GLOBALS['__l10n']['Allow emails 48 $GLOBALS['__l10n']['Allow emails?'] = 'Autoriser les emails ?'; 49 49 50 50 $GLOBALS['__l10n']['Allow emails'] = 'Autoriser les emails'; 51 51 52 $GLOBALS['__l10n']['Block emails 52 $GLOBALS['__l10n']['Block emails?'] = 'Bloquer les emails ?'; 53 53 54 54 $GLOBALS['__l10n']['Block emails'] = 'Bloquer les emails'; … … 60 60 $GLOBALS['__l10n']['Delete all subscriptions and the account'] = 'Supprimer tous les abonnements et le compte'; 61 61 62 $GLOBALS['__l10n']['Delete the account 62 $GLOBALS['__l10n']['Delete the account?'] = 'Supprimer le compte ?'; 63 63 64 64 $GLOBALS['__l10n']['Entries'] = 'Billets'; … … 66 66 $GLOBALS['__l10n']['Get back to'] = 'Revenir à'; 67 67 68 $GLOBALS['__l10n']['Remove selected subscriptions 68 $GLOBALS['__l10n']['Remove selected subscriptions?'] = 'Supprimer les abonnements sélectionnés ?'; 69 69 70 70 $GLOBALS['__l10n']['Remove selected subscriptions'] = 'Supprimer les abonnements sélectionnés';
Note: See TracChangeset
for help on using the changeset viewer.