Dotclear

Changeset 2198


Ignore:
Timestamp:
04/16/10 00:26:11 (13 years ago)
Author:
Moe
Message:

Subscribe to comments 1.3.1 :

  • updated template file
  • force type of integers in SQL queries, I don't remember why
Location:
plugins/subscribeToComments
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/subscribeToComments/_define.php

    r2124 r2198  
    3030     /* Description*/                "Subscribe to comments by email", 
    3131     /* Author */                    "Moe (http://gniark.net/)", 
    32      /* Version */                   '1.3', 
     32     /* Version */                   '1.3.1', 
    3333     /* Permissions */               'admin' 
    3434); 
  • plugins/subscribeToComments/_public.php

    r1808 r2198  
    2929 
    3030$core->tpl->addBlock('SubscribeToCommentsIsActive', 
    31           'subscribeToCommentsIsActive'); 
     31     'subscribeToCommentsIsActive'); 
    3232 
    3333function subscribeToCommentsIsActive($attr,$content) 
  • plugins/subscribeToComments/default-templates/subscribetocomments.html

    r1808 r2198  
    4747               }); 
    4848     }); 
     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?}}'; 
    4954     //]]> 
    5055     </script> 
     
    181186                                        value="{{tpl:lang Allow emails}}" 
    182187                                        onclick="javascript:return( 
    183                                         window.confirm('{{tpl:lang Allow emails?}}'));" /> 
     188                                        window.confirm(prompt_allow));" /> 
    184189                              </tpl:SubscribeToCommentsBlockedIf> 
    185190                              <tpl:SubscribeToCommentsBlockedIfNot> 
     
    187192                                        value="{{tpl:lang Block emails}}" 
    188193                                        onclick="javascript:return( 
    189                                         window.confirm('{{tpl:lang Block emails?}}'));" /> 
     194                                        window.confirm(prompt_block));" /> 
    190195                              </tpl:SubscribeToCommentsBlockedIfNot> 
    191196                         </p> 
     
    194199                                   value="{{tpl:lang Delete all subscriptions and the account}}" 
    195200                                   onclick="javascript:return( 
    196                                         window.confirm('{{tpl:lang Delete the account?}}'));" /> 
     201                                        window.confirm(prompt_delete));" /> 
    197202                         </p> 
    198203                    </fieldset>               
  • plugins/subscribeToComments/inc/class.subscriber.php

    r1501 r2198  
    5757           
    5858          $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).'\') '. 
    6061               'AND (email = \''.$core->con->escape($this->email).'\');'); 
    6162           
     
    411412          $rs = $core->con->select('SELECT status FROM '. 
    412413               $core->prefix.'comment_subscriber '. 
    413                'WHERE (id = \''.$core->con->escape($id).'\') '. 
     414               'WHERE (id = \''.$core->con->escape((int) $id).'\') '. 
    414415               'AND (user_key = \''.$core->con->escape($key).'\');'); 
    415416          if ($rs->isEmpty()) 
     
    429430     { 
    430431          global $core; 
    431  
     432           
    432433          return(subscribeToComments::url(). 
    433434          (($core->blog->settings->url_scan == 'query_string') ? '&' : '?').'email='. 
     
    469470               $rs = $core->con->select('SELECT email FROM '. 
    470471                    $core->prefix.'comment_subscriber '. 
    471                     'WHERE (id = \''.$core->con->escape($id).'\');'); 
     472                    'WHERE (id = \''.$core->con->escape((int) $id).'\');'); 
    472473 
    473474               if ($rs->isEmpty()) 
     
    515516          $cur->temp_key = null; 
    516517          $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).'\') '. 
    518519          'AND (temp_key = \''.$core->con->escape($temp_key).'\');'); 
    519520 
  • plugins/subscribeToComments/locales/fr/public.lang.php

    r1606 r2198  
    4646$GLOBALS['__l10n']['Account'] = 'Compte'; 
    4747 
    48 $GLOBALS['__l10n']['Allow emails ?'] = 'Autoriser les emails ?'; 
     48$GLOBALS['__l10n']['Allow emails?'] = 'Autoriser les emails ?'; 
    4949 
    5050$GLOBALS['__l10n']['Allow emails'] = 'Autoriser les emails'; 
    5151 
    52 $GLOBALS['__l10n']['Block emails ?'] = 'Bloquer les emails ?'; 
     52$GLOBALS['__l10n']['Block emails?'] = 'Bloquer les emails ?'; 
    5353 
    5454$GLOBALS['__l10n']['Block emails'] = 'Bloquer les emails'; 
     
    6060$GLOBALS['__l10n']['Delete all subscriptions and the account'] = 'Supprimer tous les abonnements et le compte'; 
    6161 
    62 $GLOBALS['__l10n']['Delete the account ?'] = 'Supprimer le compte ?'; 
     62$GLOBALS['__l10n']['Delete the account?'] = 'Supprimer le compte ?'; 
    6363 
    6464$GLOBALS['__l10n']['Entries'] = 'Billets'; 
     
    6666$GLOBALS['__l10n']['Get back to'] = 'Revenir à'; 
    6767 
    68 $GLOBALS['__l10n']['Remove selected subscriptions ?'] = 'Supprimer les abonnements sélectionnés ?'; 
     68$GLOBALS['__l10n']['Remove selected subscriptions?'] = 'Supprimer les abonnements sélectionnés ?'; 
    6969 
    7070$GLOBALS['__l10n']['Remove selected subscriptions'] = 'Supprimer les abonnements sélectionnés'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map