Plugin Directory

Changeset 181569


Ignore:
Timestamp:
12/10/2009 04:43:53 PM (16 years ago)
Author:
smheart
Message:

1.0.1 Add Feature Suggestion/Bug Report

Location:
repost-oldest
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • repost-oldest/trunk/readme.txt

    r179065 r181569  
    33Donate link: http://smheart.org/donate
    44Tags: repost-oldest, posting, reposting, posts
    5 Requires at least: 2.2
     5Requires at least: 2.5
    66Tested up to: 2.8.6
    77Stable tag: trunk
     
    5050== Changelog ==
    5151
     52= 1.0.1 =
     53* Added Feature Suggestion/Bug Report functionality
     54
    5255= 1.0 =
    5356* Initial Release 28 November 2009
     
    6972* add category selections
    7073* add user selectable time for rePost
     74* add support for other languages
     75* integrate bug support/feature suggestion
     76* add user selectability for notification services.
    7177
    7278= Backend Features =
    7379* Add option for Admin notification of next future repost
     80* migrate to helloTXT.com and Ping.fm API
    7481
    7582== License ==
  • repost-oldest/trunk/repost-oldest.php

    r179065 r181569  
    33Plugin Name: Re-Post Oldest
    44Plugin URI: http://smheart.org/repost-oldest/
    5 Description: Once per day this plugin identifies the oldest post and sends out a notification via Ping.fm and HelloTXT.com social notification networks.
     5Description: Once per day this plugin identifies the oldest post in WordPress and sends out a notification via Ping.fm and HelloTXT.com social notification networks.
    66Author: Matthew Phillips
    7 Version: 1.0
     7Version: 1.0.1
    88Author URI: http://smheart.org
    99
     
    3232/*
    3333Version
    34         1.0 - 27 November 2009
     34    1.0.1 10 December 2009
     35        1.0   27 November 2009
    3536        0.1 Initial Version 26 November 2009
    3637
     
    131132        </p>
    132133    </form>
     134    </fieldset>
     135    <div style="clear:both;"></div>         
     136    <fieldset class="options"><legend>Feature Suggestion/Bug Report</legend>
     137    <?php if ($_SERVER['REQUEST_METHOD'] != 'POST'){
     138            $me = $_SERVER['PHP_SELF'].'?page=repost-oldest/repost-oldest.php';
     139        ?>
     140        <form name="form1" method="post" action="<?php echo $me;?>">
     141        <table border="0" cellspacing="0" cellpadding="2">
     142        <tr>
     143            <td>
     144                Make a:
     145            </td>
     146            <td>
     147                <select name="MessageType">
     148                <option value="Feature Suggestion">Feature Suggestion</option>
     149                <option value="Bug Report">Bug Report</option>
     150                </select>
     151            </td>
     152        </tr>
     153        <tr>
     154            <td>
     155                Name:
     156            </td>
     157            <td>
     158                <input type="text" name="Name">
     159            </td>
     160        </tr>
     161        <tr>
     162            <td>
     163                Your email:
     164            </td>
     165            <td>
     166                <input type="text" name="Email" value="<?php echo(get_option('admin_email')) ?>" />
     167            </td>
     168        </tr>
     169        <tr>
     170            <td valign="top">
     171                Message:
     172            </td>
     173            <td>
     174                <textarea name="MsgBody">
     175                </textarea>
     176            </td>
     177        </tr>
     178        <tr>
     179            <td>
     180                &nbsp;
     181            </td>
     182            <td>
     183                <input type="submit" name="Submit" value="Send">
     184            </td>
     185        </tr>
     186    </table>
     187</form>
     188<?php
     189   } else {
     190      error_reporting(0);
     191    $recipient = 'support@smheart.org';
     192    $subject = stripslashes($_POST['MessageType']).'- rePost Oldest Plugin';
     193    $name = stripslashes($_POST['Name']);
     194    $email = stripslashes($_POST['Email']);
     195    if ($from == "") {
     196        $from = get_option('admin_email');
     197    }
     198    $header = "From: ".$name." <".$from.">\r\n."."Reply-To: ".$from." \r\n"."X-Mailer: PHP/" . phpversion();
     199    $msg = stripslashes($_POST['MsgBody']);
     200      if (mail($recipient, $subject, $msg, $header))
     201         echo nl2br("<h2>Message Sent:</h2>
     202         <strong>To:</strong> rePost Oldest Support
     203         <strong>Subject:</strong> $subject
     204         <strong>Message:</strong> $msg");
     205      else
     206         echo "<h2>Message failed to send</h2>";
     207}
     208?>
    133209    </fieldset>             
    134210    </div>
Note: See TracChangeset for help on using the changeset viewer.