Changeset 511
- Timestamp:
- 10/08/08 16:58:18 (15 years ago)
- google:author:
- appears
- Location:
- plugins/subscribeToComments
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_define.php
r510 r511 30 30 /* Description*/ "Subscribe to comments", 31 31 /* Author */ "Moe (http://gniark.net/)", 32 /* Version */ '1.2. 3',32 /* Version */ '1.2.4', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/subscribeToComments/_install.php
r510 r511 43 43 { 44 44 # replace old tag with new tag 45 if (version_compare($i_version,'1.0-RC4','<')) { 45 if (version_compare($i_version,'1.0-RC4','<')) 46 { 46 47 $core->blog->settings->setNameSpace('subscribetocomments'); 47 48 $core->blog->settings->put('subscribetocomments_email_subject', … … 55 56 # move the notifications to (dc_)comment and 56 57 # delete the table (dc_)comment_notification 57 if (version_compare($i_version,'1.0.4','<')) { 58 if (version_compare($i_version,'1.0.4','<')) 59 { 58 60 # add notification_sent column to (dc_)comment 59 61 $s = new dbStruct($core->con,$core->prefix); … … 80 82 $core->con->execute('DROP TABLE '.$core->prefix.'comment_notification;'); 81 83 } 82 83 # add post types84 if (version_compare($i_version,'1.2','<')) {85 $core->blog->settings->setNameSpace('subscribetocomments');86 # Allowed post types87 $core->blog->settings->put('subscribetocomments_post_types',88 serialize(subscribeToComments::getPostTypes()),89 'string','Allowed post types',true,true);90 }91 # Change From: header of outbound emails92 if (version_compare($i_version,'1.2.3','<')) {93 $core->blog->settings->setNameSpace('subscribetocomments');94 $core->blog->settings->put('subscribetocomments_email_from',95 'dotclear@'.$_SERVER['HTTP_HOST'],96 'string','Change From: header of outbound emails',true,true);97 }98 84 } 99 85 # add post types 86 if (version_compare($i_version,'1.2.4','<')) 87 { 88 $core->blog->settings->setNameSpace('subscribetocomments'); 89 # Allowed post types 90 $core->blog->settings->put('subscribetocomments_post_types', 91 serialize(subscribeToComments::getPostTypes()), 92 'string','Allowed post types',false,true); 93 } 94 # Change From: header of outbound emails 95 if (version_compare($i_version,'1.2.4','<')) 96 { 97 $core->blog->settings->setNameSpace('subscribetocomments'); 98 $core->blog->settings->put('subscribetocomments_email_from', 99 'dotclear@'.$_SERVER['HTTP_HOST'], 100 'string','Change From: header of outbound emails',false,true); 101 } 100 102 101 103 # table -
plugins/subscribeToComments/_prepend.php
r489 r511 24 24 # ***** END LICENSE BLOCK ***** 25 25 26 if (!defined('DC_RC_PATH')) {return;} 27 26 28 $__autoload['subscribeToComments'] = dirname(__FILE__).'/lib.subscribeToComments.php'; 27 29 $__autoload['subscriber'] = dirname(__FILE__).'/class.subscriber.php'; -
plugins/subscribeToComments/index.php
r510 r511 538 538 <p><?php printf( 539 539 __('This will send a email, if you don\'t receive it, try to <a href="%s">change the way Dotclear send emails</a>.'), 540 'http://doc.dotclear.net/2.0/admin/install/c onfig-envoi-mail'); ?></p>540 'http://doc.dotclear.net/2.0/admin/install/custom-sendmail'); ?></p> 541 541 <p><?php echo $core->formNonce(); ?></p> 542 542 <p><input type="submit" name="test" value="<?php echo __('Try to send an email'); ?>" /></p>
Note: See TracChangeset
for help on using the changeset viewer.