pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP pastebin - collaborative debugging tool View Help


Posted by Epic Alex on Wed 13 May 14:46
report abuse | View followups from epicalex | download | new post

  1. <?php
  2. /*
  3. Plugin Name: New User Email Setup
  4. Plugin URI: http://www.epicalex.com/new-user-email-set-up/
  5. Version: 0.3
  6. Author: Alex Cragg
  7. Author URI: http://epicalex.com/
  8. Description: A Plugin to setup the registration email sent to new users. THIS VERSION ONLY COMPATIBLE WITH WP 2.7
  9. */
  10.  
  11. /*
  12. Copyright (C) 2007 Alex Cragg
  13.  
  14.     This program is free software: you can redistribute it and/or modify
  15.     it under the terms of the GNU General Public License as published by
  16.     the Free Software Foundation, either version 3 of the License, or
  17.     (at your option) any later version.
  18.  
  19.     This program is distributed in the hope that it will be useful,
  20.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.     GNU General Public License for more details.
  23.  
  24.     You should have received a copy of the GNU General Public License
  25.     along with this program.  If not, see <http://www.gnu.org/licenses/>
  26. */
  27.  
  28. if ( ! defined( 'WP_CONTENT_URL' ) )
  29.       define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
  30. if ( ! defined( 'WP_CONTENT_DIR' ) )
  31.       define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
  32. if ( ! defined( 'WP_PLUGIN_URL' ) )
  33.       define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
  34. if ( ! defined( 'WP_PLUGIN_DIR' ) )
  35.       define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
  36.          
  37. $nue_root = WP_PLUGIN_URL. "/newuseremail/";
  38.  
  39.  
  40. add_action('activate_'.basename(__FILE__), 'newuseremailactivate');
  41. add_action('admin_menu', 'newuseremailoptions');
  42. add_action('admin_head', 'nue_add_css');
  43. add_action('admin_init', 'nue_admin_init' );
  44.  
  45.  
  46. function nue_admin_init(){
  47.         register_setting('nue-options-group', 'newuseremailhtml');
  48.         register_setting('nue-options-group', 'newuseremailfromaddress');
  49.         register_setting('nue-options-group', 'newuseremailfrom');
  50.         register_setting('nue-options-group', 'newuseremailsubject');
  51.         register_setting('nue-options-group', 'newuseremailtext');
  52.         register_setting('nue-options-group', 'newuseremailadminsubject');
  53.         register_setting('nue-options-group', 'newuseremailadmintext');
  54. }
  55.          
  56. function newuseremailactivate() {
  57.         $nue_options = array(
  58.                 'html' => 'text/HTML',
  59.                 'fromaddress' => 'Enter your admin email here',
  60.                 'from' => 'Enter the name you want your admin email sent from here. eg. Admin',
  61.                 'subject' => 'Welcome to %blogname%',
  62.                 'text' => 'Welcome %username% please find below your login details.<br /> I hope you enjoy our site.<br /> <strong>Username:</strong> %username%<br /> <strong>Password:</strong> %password%<br /> %loginurl%',
  63.                 'adminsubject' => '%blogname% - New User Registration',
  64.                 'admintext' => 'There is a new user registered on your blog:<br /> <strong>Username:</strong> %username%<br /> <strong>Email:</strong> %useremail%'
  65.         );
  66.         // if old options exist, update to new system
  67.         foreach( $nue_options as $key => $value ) {
  68.                 if( $existing = get_option( 'newuseremail' . $key ) ) {
  69.                         $nue_options[$key] = $existing;
  70.                         delete_option( 'newuseremail' . $key );
  71.                 }
  72.         }
  73.         update_option('newuseremail_options', $nue_options);
  74. }       
  75.  
  76.  
  77. if ( !function_exists( 'newuser_mail' ) ) :
  78. function newuser_mail($to, $subject, $message, $headers = '') {
  79. $nue_option_array = get_option('newuseremail_options');
  80.         global $phpmailer;
  81.  
  82.         if ( !is_object( $phpmailer ) ) {
  83.                 require_once(ABSPATH . WPINC . '/class-phpmailer.php');
  84.                 require_once(ABSPATH . WPINC . '/class-smtp.php');
  85.                 $phpmailer = new PHPMailer();
  86.         }
  87.  
  88.         $mail = compact('to', 'subject', 'message', 'headers');
  89.         $mail = apply_filters('wp_mail', $mail);
  90.         extract($mail, EXTR_SKIP);
  91.  
  92.         if ( $headers == '' ) {
  93.                 $headers = "MIME-Version: 1.0\n" .
  94.                         "From: " . apply_filters('wp_mail_from', "wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']))) . "\n" .
  95.                         "Content-Type: text/HTML; charset=\"" . get_option('blog_charset') . "\"\n";
  96.         }
  97.  
  98.         $phpmailer->ClearAddresses();
  99.         $phpmailer->ClearCCs();
  100.         $phpmailer->ClearBCCs();
  101.         $phpmailer->ClearReplyTos();
  102.         $phpmailer->ClearAllRecipients();
  103.         $phpmailer->ClearCustomHeaders();
  104.  
  105.         $phpmailer->FromName = "WordPress";
  106.         $phpmailer->AddAddress("$to", "");
  107.         $phpmailer->Subject = $subject;
  108.         $phpmailer->Body    = $message;
  109.         if ($nue_option_array['html'] == 'text/HTML' ) {
  110.         $phpmailer->IsHTML( true );
  111.             } else {
  112.         $phpmailer->IsHTML( false );
  113.             }
  114.         $phpmailer->IsMail(); // set mailer to use php mail()
  115.  
  116.         do_action_ref_array('phpmailer_init', array(&$phpmailer));
  117.  
  118.         $mailheaders = (array) explode( "\n", $headers );
  119.         foreach ( $mailheaders as $line ) {
  120.                 $header = explode( ":", $line );
  121.                 switch ( trim( $header[0] ) ) {
  122.                         case "From":
  123.                                 $from = trim( str_replace( '"', '', $header[1] ) );
  124.                                 if ( strpos( $from, '<' ) ) {
  125.                                         $phpmailer->FromName = str_replace( '"', '', substr( $header[1], 0, strpos( $header[1], '<' ) - 1 ) );
  126.                                         $from = trim( substr( $from, strpos( $from, '<' ) + 1 ) );
  127.                                         $from = str_replace( '>', '', $from );
  128.                                 } else {
  129.                                         $phpmailer->FromName = $from;
  130.                                 }
  131.                                 $phpmailer->From = trim( $from );
  132.                                 break;
  133.                         default:
  134.                                 if ( $line != '' && $header[0] != 'MIME-Version' && $header[0] != 'Content-Type' )
  135.                                         $phpmailer->AddCustomHeader( $line );
  136.                                 break;
  137.                 }
  138.         }
  139.  
  140.         $result = @$phpmailer->Send();
  141.  
  142.         return $result;
  143. }
  144. endif;
  145.  
  146. if ( !function_exists('wp_new_user_notification') ) {
  147.         function wp_new_user_notification($user_id, $plaintext_pass = '') {
  148.         $nue_option_array = get_option('newuseremail_options');
  149.         $user = new WP_User($user_id);
  150.  
  151.         $user_login = stripslashes($user->user_login);
  152.         $user_email = stripslashes($user->user_email);
  153.    
  154.         $find = array('/%username%/i', '/%password%/i', '/%blogname%/i', '/%siteurl%/i', '/%loginurl%/i', '/%useremail%/i');
  155.         $replace = array($user_login, $plaintext_pass, get_option('blogname'), get_option('siteurl'), get_option('siteurl').'/wp-login.php', $user_email);
  156.    
  157.         $headers .= "MIME-Version: 1.0\n" .
  158.             "From: ". $user_email . "\n" .
  159.         "Content-Type: ". $nue_option_array['html'] ." charset=\"" . get_option('blog_charset') . "\"\n";
  160.        
  161.         $subject = stripslashes($nue_option_array['adminsubject']);
  162.         $subject = preg_replace($find, $replace, $subject);
  163.         $subject = preg_replace("/%.*%/", "", $subject);
  164.  
  165.        
  166.         $message = stripslashes($nue_option_array['admintext']);
  167.         $message = preg_replace($find, $replace, $message);
  168.         $message = preg_replace("/%.*%/", "", $message);
  169.  
  170.         @newuser_mail($nue_option_array['fromaddress'], $subject, $message, $headers);
  171.  
  172.         if ( empty($plaintext_pass) )
  173.                 return;
  174.  
  175.         $headers .= "MIME-Version: 1.0\n" .
  176.             "From: ". $nue_option_array['from'] ."<". $nue_option_array['fromaddress'] . ">\n" .
  177.         "Content-Type: ". $nue_option_array['html'] ." charset=\"" . get_option('blog_charset') . "\"\n";
  178.        
  179.         $subject = stripslashes($nue_option_array['subject']);
  180.         $subject = preg_replace($find, $replace, $subject);
  181.         $subject = preg_replace("/%.*%/", "", $subject);       
  182.  
  183.         $message = stripslashes($nue_option_array['text']);
  184.         $message = preg_replace($find, $replace, $message);
  185.         $message = preg_replace("/%.*%/", "", $message);
  186.                
  187.         newuser_mail($user_email, $subject, $message, $headers);
  188.         }
  189. }
  190.  
  191.  
  192. function printnewuseremailAdminOptions() {
  193. if ($_REQUEST['submit']) {
  194.         update_newuseremail();
  195. }
  196. ?>
  197. <div class="wrap">
  198. <div id="icon-newusermail" class="icon32">
  199. <br/>
  200. </div>
  201. <h2>New User Email</h2> <?php
  202.  
  203. print_newuseremail();
  204. ?></div><?php
  205. }
  206.  
  207. function update_newuseremail() {
  208.         if (isset($_POST['submit'])) {
  209.                 if (isset($_POST['newuseremailhtml'])) {
  210.                         $nue_options['html'] = $_POST['newuseremailhtml'];
  211.                 }
  212.                 if (isset($_POST['newuseremailfrom'])) {
  213.                         $nue_options['from'] = $_POST['newuseremailfrom'];
  214.                 }
  215.                 if (isset($_POST['newuseremailfromaddress'])) {
  216.                         $nue_options['fromaddress'] = $_POST['newuseremailfromaddress'];
  217.                 }
  218.                 if (isset($_POST['newuseremailsubject'])) {
  219.                         $nue_options['subject'] = $_POST['newuseremailsubject'];
  220.                 }
  221.                 if (isset($_POST['newuseremailtext'])) {
  222.                         $nue_options['text'] = $_POST['newuseremailtext'];
  223.                 }
  224.                 if (isset($_POST['newuseremailadminsubject'])) {
  225.                         $nue_options['adminsubject'] = $_POST['newuseremailadminsubject'];
  226.                 }
  227.                 if (isset($_POST['newuseremailadmintext'])) {
  228.                         $nue_options['admintext'] = $_POST['newuseremailadmintext'];
  229.                 }
  230.                 update_option('newuseremail_options', $nue_options);
  231.                 ?>
  232. <div class="updated"><p><strong><?php _e("Settings Updated.", "NewUserEmail");?></strong></p></div>
  233.         <?php
  234.         }
  235. }
  236.  
  237.  
  238. function nue_add_css() {
  239.                 echo '<link rel="stylesheet" type="text/css" href="'.$nue_root.'css/nuestyle.css" />';
  240. }
  241.  
  242. function print_newuseremail() {
  243. ?>
  244. <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
  245. <?php
  246. if ( function_exists('wp_nonce_field') )
  247.         wp_nonce_field('update-options');
  248. ?>
  249. <?php settings_fields('nue-options-group'); ?>
  250.         <div id="poststuff" class="meta-box-sortables"
  251.                 <div class="postbox close-me nue-left">
  252.                         <h3 class="hndle"><span><?php _e('User Email Settings','NewUserEmail'); ?></span></h3>
  253.                                 <div class="inside">
  254.                                         <h4>Allow HTML in Email Content?</h4>
  255.                                                 <label for="newuseremailhtml_yes">
  256.                                                 <input id="newuseremailhtml_yes" type="radio" value="text/HTML" <?php if (get_option("newuseremailhtml") == "text/HTML") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/>
  257.                                                 Yes
  258.                                                 </label>
  259.                                                 <label for="newuseremailhtml_no">
  260.                                                 <input id="newuseremailhtml_no" type="radio" value="text/plain" <?php if (get_option("newuseremailhtml") == "text/plain") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/>
  261.                                                 No
  262.                                                 </label>
  263.                                                
  264.                                         <h4>Registration Email Subject</h4>
  265.                                                 <input id="newuseremailsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes(get_option('newuseremailsubject')), 'NewUserEmail') ?>" name="newuseremailsubject"/>
  266.                                                
  267.                                         <h4>Registration Email Text</h4>
  268.                                                 <textarea id="newuseremailtext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailtext"><?php _e(stripslashes(get_option('newuseremailtext')), 'NewUserEmail') ?>
  269.                                                 </textarea>
  270.                                                 <p>Use this to create a custom email that is sent to new users when they register. It overides the default text and you can write anything at all in here, but remember to use the following variables so that your users still know how to login!</p>
  271.                                                
  272.                                                 <p>%username%, %useremail%, %password%, %siteurl%, %blogname%, and %loginurl%.</p>
  273.                                                 <p>
  274.                                                 Note the percentage signs (%), each variable must have percentage signs around them with <strong>no spaces</strong>.  For an example text, using some of the variables, please see above.
  275.                                                 </p>
  276.                                                 <p><strong>IMPORTANT:</strong> Make sure that you test out your new email by registering yourself so that you see what your users are receiving.</p>
  277.  
  278.                                         <h4>From Address</h4>
  279.                                                 <input id="newuseremailfromaddress" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes(get_option('newuseremailfromaddress')), 'NewUserEmail') ?>" name="newuseremailfromaddress"/>
  280.                                                 <p>NB You must have this email set up as a real email address, otherwise it will be sent from your host's mailbox, which looks ugly! This can be different from the address you have set up in your general WordPress options.</p>
  281.  
  282.                                         <h4>From Name</h4>
  283.                                                 <input id="newuseremailfrom" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes(get_option('newuseremailfrom')), 'NewUserEmail') ?>" name="newuseremailfrom"/>
  284.                                                 <p>This could be something like 'Epic Alex', or 'Admin'.</p>
  285.                                                 <div class="submit">
  286.                                                         <input type="submit" name="submit" value="<?php _e('Save', 'NewUserEmail') ?>" />
  287.                                                 </div>
  288.                                 </div>
  289.                 </div>
  290.                 <div class="postbox close-me nue-right">
  291.                         <h3 class="hndle"><span><?php _e('Admin Email Settings','NewUserEmail'); ?></span></h3>
  292.                                 <div class="inside">
  293.                                         <h4>Administration Notification Email Subject</h4>
  294.                                                 <input id="newuseremailadminsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes(get_option('newuseremailadminsubject')), 'NewUserEmail') ?>" name="newuseremailadminsubject"/>
  295.                                                
  296.                                         <h4>Administration Notification Email Text</h4>
  297.                                                 <textarea id="newuseremailadmintext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailadmintext"><?php _e(stripslashes(get_option('newuseremailadmintext')), 'NewUserEmail') ?>
  298.                                                 </textarea>
  299.                                                 <p>
  300.                                                 This is to define the email that is sent to the Blog Administrator when a new user registers, you can use the same variables as above.
  301.                                                 </p>
  302.                                                 <div class="submit">
  303.                                                         <input type="submit" name="submit" value="<?php _e('Save', 'NewUserEmail') ?>" />
  304.                                                 </div>
  305.                                 </div>
  306.                 </div>
  307.                 <div class="clear"></div>
  308.                 <div class="postbox close-me">
  309.                         <h3 class="hndle"><span><?php _e('Test','NewUserEmail'); ?></span></h3>
  310.                                 <div class="inside">
  311.                                 <p>Once you have saved the above options, this will show you approx. how the email will look, without any of the variables replaced, but with line breaks and formating etc, so send a test one to see it fully in action!</p>
  312.                                 <h4>New User Email</h4>
  313.                                 <?php
  314.                                 echo "<strong>Subject: </strong>" . get_option('newuseremailsubject'). "<br />";
  315.                                 echo "<strong>From: </strong>" . get_option('newuseremailfrom') . " - " . get_option('newuseremailfromaddress'). "<br/><br/>";
  316.                                 echo get_option('newuseremailtext');
  317.                                 ?>
  318.                                 <h4>Admin Email</h4>
  319.                                 <?php
  320.                                 echo "<strong>Subject: </strong>" . get_option('newuseremailadminsubject'). "<br /><br/>";
  321.                                 echo get_option('newuseremailadmintext');
  322.                                 ?>
  323.                                 </div>
  324.                 </div>
  325.                 <div class="postbox close-me">
  326.                         <h3 class="hndle"><span><?php _e('Support','NewUserEmail'); ?></span></h3>
  327.                                 <div class="inside">
  328.  
  329. <h4>Help Me!</h4>
  330. <p>If you need help with this plugin, or if you want to make a suggestion, then please email me at alex AT epicalex DOT com<p>
  331. <h4>Support This Plugin!</h4>
  332. <p>There are a few ways you can support me to say thanks for making this plugin, you can donate by paypal, or you can sign up to something through one of my affiliate links such as Bluehost or Dreamhost.</p>
  333. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  334. <input type="hidden" name="cmd" value="_s-xclick">
  335. <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
  336. <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
  337. <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBhe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sGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwOTE2MTIzNTI5WjAjBgkqhkiG9w0BCQQxFgQUO8VgKDY/L7ZK6dixcQQcelKP8jgwDQYJKoZIhvcNAQEBBQAEgYBwO7oj0n+w5qzFm7YhGpFhfFs9IY9OSZ48icbxpamPVBariw6d1/XRxYhe6W/7UGyAVRlKW1Nm5pHRvxWY9UAmHXMlMtHprs/OT3u8BJQ9E1T6a8qsHwdAQtefD52raiBwxPoEz7FXVjXD9SbSn33PLRmPIhiPJ4S+wSZudwKGfw==-----END PKCS7-----
  338. ">
  339. </form>
  340. <script src=http://www.bluehost.com/src/js/epicskitours/CODE15/88x31/3.gif></script>
  341. <p>when you visit www.dreamhost.com and sign up for hosting, be sure to use the promo code ALEXMYSOUTHAM to get $50 off your bill, PLUS 10% extra bandwidth!</p>
  342.                                 </div>
  343.                 </div>
  344.         </div>
  345. </form>
  346.     <script type="text/javascript">
  347.                 <!--
  348.                 jQuery('.postbox h3').before('<div class="handlediv" title="Click to toggle"><br /></div>');           
  349.                 jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
  350.                 jQuery('.postbox.close-me').each(function(){
  351.                         jQuery(this).addClass("closed");
  352.                 });
  353.                 //-->
  354.         </script>
  355.                                 <?php }
  356.  
  357. function newuseremailoptions() {
  358.                 add_options_page(
  359.                                         'New User Email',
  360.                                         'New User Email',
  361.                                         'manage_options',
  362.                                         __FILE__,
  363.                                         'printnewuseremailAdminOptions'
  364.                                         );
  365. }       
  366. ?>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post