Plugin Directory

Changeset 8388

Timestamp:
03/17/2007 10:26:18 AM (19 years ago)
Author:
MattyRob
Message:

Updated ReadMe.txt files for WordPress plugin directory

Location:
subscribe2/trunk/wp-content/plugins
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/wp-content/plugins/subscribe2/subscribe2.php

    r8045 r8388  
    3030*/
    3131
    32 // If you are on a host that limits the numner of recipients
     32// If you are on a host that limits the numer of recipients
    3333// permitted on each outgoing email message
    34 // change this value to your hosts limit
     34// change th to your hosts limit
    3535define('BCCLIMIT', '0');
    3636
    3737// by default, subscribe2 grabs the first page from your database for use
    3838// when displaying the confirmation screen to public subscribers.
    39 // You can override this by specifying a page ID below.
     39// You can override this by specifying a page ID below.
    4040define('S2PAGE', '0');
    4141
    42 // change this to TRUE if you want a daily digest of the day's posts
    43 // send to your subscribers
     42// change th
     43// to your subscribers
    4444define('S2DIGEST', false);
    4545
    46 // our version number. Don't touch.
     46// our version number. Don't touch this or any line below
     47// unless you know exacly what you are doing
    4748define('S2VERSION', '2.2.15');
    4849
     
    209210
    210211        // let's take the time to check process registered users
    211         //  existing public subscribers are subscribed to all categories
     212        // existing public subscribers are subscribed to all categories
    212213        $users = $wpdb->get_col("SELECT ID FROM $wpdb->users");
    213214        if (!empty($users)) {
     
    551552        $admin = get_userdata(1);
    552553        $this->myname = $admin->display_name;
    553    
     554
    554555        if ($is_remind == TRUE) {
    555556            $body = $this->substitute(stripslashes($this->subscribe2_options['remind_email']));
     
    13101311                    $exclude_cats = '';
    13111312                }
    1312                 $this->subscribe2_options['exclude'] = $exclude_cats;
     1313$this->subscribe2_options['exclude'] = $exclude_cats;
    13131314                // allow override?
    13141315                (isset($_POST['reg_override'])) ? $override = '1' : $override = '0';
     
    13241325                    $sender = 'admin';
    13251326                }
    1326                 $this->subscribe2_options['sender'] = $sender;
     1327$this->subscribe2_options['sender'] = $sender;
    13271328
    13281329                // email templates
    13291330                $mailtext = $_POST['mailtext'];
    1330                 $this->subscribe2_options['mailtext'] = $mailtext;
     1331$this->subscribe2_options['mailtext'] = $mailtext;
    13311332                $confirm_email = $_POST['confirm_email'];
    1332                 $this->subscribe2_options['confirm_email'] = $confirm_email;
     1333$this->subscribe2_options['confirm_email'] = $confirm_email;
    13331334                $remind_email = $_POST['remind_email'];
    1334                 $this->subscribe2_options['remind_email'] = $remind_email;
     1335$this->subscribe2_options['remind_email'] = $remind_email;
    13351336
    13361337                //automatic subscription
    13371338                $autosub_option = $_POST['autosub'];
    1338                 $this->subscribe2_options['autosub']= $autosub_option;
     1339$this->subscribe2_options['autosub']= $autosub_option;
    13391340                $autosub_format_option = $_POST['autoformat'];
    1340                 $this->subscribe2_options['autoformat']= $autosub_format_option;
     1341$this->subscribe2_options['autoformat']= $autosub_format_option;
    13411342               
    13421343                //barred domains
    13431344                $barred_option = $_POST['barred'];
    1344                 $this->subscribe2_options['barred'] = $barred_option;
     1345$this->subscribe2_options['barred'] = $barred_option;
    13451346                echo "<div id=\"message\" class=\"updated fade\"><strong><p>$this->options_saved</p></strong></div>";
    1346                 update_option('subscribe2_options', $this->subscribe2_options);
     1347update_option('subscribe2_options', $this->subscribe2_options);
    13471348            }
    13481349        }
    13491350        // show our form
    13501351        echo "<div class=\"wrap\">";
    1351         echo "<form method=\"post\" action=\"\">";
     1352        echo "<form method=\"post\" action=\"\">";
    13521353        if (function_exists('wp_nonce_field')) {
    13531354            wp_nonce_field('subscribe2-options_subscribers' . $s2nonce);
    13541355        }
    1355         echo "<input type=\"hidden\" name=\"s2_admin\" value=\"options\" />";
    1356         echo "<h2>" . __('Delivery Options', 'subscribe2') . ":</h2>";
     1356        echo "<input type=\"hidden\" name=\"s2_admin\" value=\"options\" />";
     1357        echo "<h2>" . __('Delivery Options', 'subscribe2') . ":</h2>";
    13571358        echo __('Send Email From', 'subscribe2') . ': ';
    1358         echo "<input type=\"radio\" name=\"sender\" value=\"author\" ";
     1359        echo "<input type=\"radio\" name=\"sender\" value=\"author\"";
    13591360        if ('author' == $this->subscribe2_options['sender']) {
    13601361            echo "checked=\"checked\" ";
    13611362        }
    13621363        echo " /> " . __('Author of the post', 'subscribe2') . " &nbsp;&nbsp;";
    1363         echo "<input type=\"radio\" name=\"sender\" value=\"admin\" ";
     1364        echo "<input type=\"radio\" name=\"sender\" value=\"admin\"";
    13641365        if ('admin' == $this->subscribe2_options['sender']) {
    13651366            echo "checked=\"checked\" ";
     
    13671368        echo " /> " . __('Blog Admin', 'subscribe2') . "<br />\r\n";
    13681369        echo "<h2>" . __('Email Templates', 'subscribe2') . "</h2>\r\n";
    1369         echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=\"editform\">";
     1370        echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=\"editform\">";
    13701371        echo "<tr><td>";
    13711372        echo __('New Post email (must not be empty)', 'subscribe2') . ":";
    13721373        echo "<br />\r\n";
    1373         echo "<textarea rows=\"9\" cols=\"60\" name=\"mailtext\">" . stripslashes($this->subscribe2_options['mailtext']) . "</textarea><p>\r\n";
     1374        echo "<textarea rows=\"9\" cols=\"60\" name=\"mailtext\">" . stripslashes($this->subscribe2_options['mailtext']) . "</textarea><>\r\n";
    13741375        echo "</td><td valign=\"top\" rowspan=\"3\">";
    13751376        echo "<h3>" . __('Message substitions', 'subscribe2') . "</h3>\r\n";
     
    13871388        echo "</dl></td></tr><tr><td>";
    13881389        echo __('Subscribe / Unsubscribe confirmation email', 'subscribe2') . ":<br />\r\n";
    1389         echo "<textarea rows=\"9\" cols=\"60\" name=\"confirm_email\">" . stripslashes($this->subscribe2_options['confirm_email']) . "</textarea><p>";
    1390         echo "</td></tr><tr><td>";
     1390        echo "<textarea rows=\"9\" cols=\"60\" name=\"confirm_email\">" . stripslashes($this->subscribe2_options['confirm_email']) . "</textarea><";
     1391        echo "</td></tr><tr><td>";
    13911392        echo __('Reminder email to Unconfirmed Subscribers', 'subscribe2') . ":<br />\r\n";
    1392         echo "<textarea rows=\"9\" cols=\"60\" name=\"remind_email\">" . stripslashes($this->subscribe2_options['remind_email']) . "</textarea><p>";
    1393         echo "</td></tr></table>\r\n";
     1393        echo "<textarea rows=\"9\" cols=\"60\" name=\"remind_email\">" . stripslashes($this->subscribe2_options['remind_email']) . "</textarea><";
     1394        echo "</td></tr></table>\r\n";
    13941395
    13951396        // excluded categories
    13961397        echo "<h2>" . __('Excluded Categories', 'subscribe2') . "</h2>\r\n";
    13971398        $this->display_category_form(explode(',', $this->get_excluded_cats()));
    1398         echo "<p align=\"center\"><input type=\"checkbox\" name=\"reg_override\" value=\"1\"";
     1399        echo "<><input type=\"checkbox\" name=\"reg_override\" value=\"1\"";
    13991400        if ('1' == $this->subscribe2_options['reg_override']) {
    1400             echo "checked=\"checked\"";
    1401         }
    1402         echo "/> " . __('Allow registered users to subscribe to excluded categories?', 'subscribe2') . "</p>";
     1401            echo "checked=\"checked\"";
     1402        }
     1403        echo "";
    14031404        echo "<h2>" . __('Writing Options', 'subscribe2') . "</h2>\r\n";
    1404         echo "<p align=\"center\"><input type=\"checkbox\" name=\"show_button\" value=\"1\"";
     1405        echo "<input type=\"checkbox\" name=\"show_button\" value=\"1\"";
    14051406        if ('1' == $this->subscribe2_options['show_button']) {
    1406             echo "checked=\"checked\"";
    1407         }
    1408         echo "/> " . __('Show the Subscribe2 button on the Write toolbar?', 'subscribe2') . "</p>";
     1407            echo "checked=\"checked\"";
     1408        }
     1409        echo "";
    14091410       
    14101411        //Auto Subscription for new registrations
    14111412        echo "<h2>" . __('Auto Subscribe', 'subscribe2') . "</h2>\r\n";
    14121413        echo __('Automatically subscribe new users registering with your blog.', 'subscribe2') . "<br />\r\n";
    1413         echo "<input type=\"radio\" name=\"autosub\" value=\"yes\" ";
     1414        echo "<input type=\"radio\" name=\"autosub\" value=\"yes\"";
    14141415        if ('yes' == $this->subscribe2_options['autosub']) {
    1415             echo "checked=\"checked\" ";
     1416            echo "";
    14161417        }
    14171418        echo " /> " . __('Yes', 'subscribe2') . " &nbsp;&nbsp;";
    1418         echo "<input type=\"radio\" name=\"autosub\" value=\"no\" ";
     1419        echo "<input type=\"radio\" name=\"autosub\" value=\"no\"";
    14191420        if ('no' == $this->subscribe2_options['autosub']) {
    1420             echo "checked=\"checked\" ";
     1421            echo "";
    14211422        }
    14221423        echo " /> " . __('No', 'subscribe2') . "<br /><br />\r\n";
     
    14361437                echo "checked=\"checked\" ";
    14371438            }
    1438             echo "/> " . __('Plain Text - Excerpt', 'subscribe2') . " &nbsp;&nbsp;";
     1439            echo "/> " . __('Plain Text - Excerpt', 'subscribe2') . " ";
    14391440       
    14401441        //barred domains
     
    18281829    /**
    18291830    Overrides the default query when handling a (un)subscription confirmation
    1830     This is basically a trick: if the s2 variable is in the query string, just grab the first static page
    1831     and override it's contents later with title_filter() and template_filter()
     1831    This is basically a trick: if the s2 variable is in the query stringe
     1832    e_filter()
    18321833    */
    18331834    function query_filter() {
     
    18371838        global $wpdb;
    18381839
    1839         if ( (defined('S2PAGE')) && (0 !== S2PAGE) ) {
     1840        if ( (defined('S2PAGE')) && (0 != S2PAGE) ) {
    18401841            return "page_id=" . S2PAGE;
    18411842        } else {
     
    18571858        return __('Subscription Confirmation', 'subscribe2');
    18581859    } // end title_filter()
    1859 
    1860     /**
    1861     Override the template filter to make sure a special template is not used
    1862     */
    1863     function template_filter() {
    1864         // don't interfere if we've already done our thing
    1865         if (1 == $this->filtered) { return; }
    1866         return;
    1867     } // end template_filter()
    18681860
    18691861/* ===== wp-cron functions ===== */
     
    20182010        //do we need to upgrade anything?
    20192011        if ($this->subscribe2_options['version'] !== S2VERSION) {
    2020             $this->upgrade();
    2021         }
     2012            $this->upgrade();
     2013        }
    20222014
    20232015        if (isset($_GET['s2'])) {
Note: See TracChangeset for help on using the changeset viewer.