From: garvinhicking <garvinhicking> Date: Fri, 23 Nov 2007 14:57:08 +0000 (+0000) Subject: bump X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=341fe37d7bce5136128f280fc68208ce27789a1e;p=s9y.git bump --- diff --git a/docs/NEWS b/docs/NEWS index e2fe0df..2b63544 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.3 () ------------------------------------------------------------------------ + * Allow the "send mail" plugin to send mails to all registered + authors (garvinhicking) + * Add spartacus remote management versioning information subpage. (garvinhicking) diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index 838bbfb..28274ae 100644 --- a/include/plugin_internal.inc.php +++ b/include/plugin_internal.inc.php @@ -382,7 +382,7 @@ class serendipity_quicksearch_plugin extends serendipity_plugin { <div> <input type="hidden" name="serendipity[action]" value="search" /> <input alt="<?php echo QUICKSEARCH; ?>" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" size="13" /> - <input type="submit" value=">" alt="<?php echo QUICKSEARCH; ?>" name="serendipity[searchButton]" title="<?PHP echo GO; ?>" style="width: 2em;" /> + <input class="quicksearch_submit" type="submit" value=">" alt="<?php echo QUICKSEARCH; ?>" name="serendipity[searchButton]" title="<?PHP echo GO; ?>" style="width: 2em;" /> </div> <div id="LSResult" style="display: none;"><div id="LSShadow"></div></div> </form> diff --git a/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php b/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php index 8b28688..78a09af 100644 --- a/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php +++ b/plugins/serendipity_event_mailer/UTF-8/lang_de.inc.php @@ -14,3 +14,4 @@ @define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.'); @define('PLUGIN_EVENT_MAILER_SENDING', 'Versende'); @define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden'); + @define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken'); diff --git a/plugins/serendipity_event_mailer/lang_de.inc.php b/plugins/serendipity_event_mailer/lang_de.inc.php index 55cce37..9e34259 100644 --- a/plugins/serendipity_event_mailer/lang_de.inc.php +++ b/plugins/serendipity_event_mailer/lang_de.inc.php @@ -14,3 +14,4 @@ @define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.'); @define('PLUGIN_EVENT_MAILER_SENDING', 'Versende'); @define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden'); + @define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken'); diff --git a/plugins/serendipity_event_mailer/lang_en.inc.php b/plugins/serendipity_event_mailer/lang_en.inc.php index 11e5ff7..f1fcced 100644 --- a/plugins/serendipity_event_mailer/lang_en.inc.php +++ b/plugins/serendipity_event_mailer/lang_en.inc.php @@ -20,6 +20,4 @@ @define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'This entry was not sent via E-Mail because you decided to not send it.'); @define('PLUGIN_EVENT_MAILER_SENDING', 'Sending'); @define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Send this entry via E-Mail'); - - -?> +@define('PLUGIN_EVENT_MAILER_SENDTOALL', 'Send to all authors'); diff --git a/plugins/serendipity_event_mailer/serendipity_event_mailer.php b/plugins/serendipity_event_mailer/serendipity_event_mailer.php index 08e0983..aafa5f4 100644 --- a/plugins/serendipity_event_mailer/serendipity_event_mailer.php +++ b/plugins/serendipity_event_mailer/serendipity_event_mailer.php @@ -26,7 +26,7 @@ class serendipity_event_mailer extends serendipity_event $propbag->add('description', PLUGIN_EVENT_MAILER_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking'); - $propbag->add('version', '1.47'); + $propbag->add('version', '1.50'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -38,7 +38,7 @@ class serendipity_event_mailer extends serendipity_event )); $propbag->add('groups', array('FRONTEND_ENTRY_RELATED')); - $config = array('what', 'mailto', 'includelink', 'striptags', 'convertp'); + $config = array('what', 'mailto', 'sendtoall', 'includelink', 'striptags', 'convertp'); $propbag->add('configuration', $config); } @@ -99,6 +99,13 @@ class serendipity_event_mailer extends serendipity_event $propbag->add('default', ''); break; + case 'sendtoall': + $propbag->add('type', 'boolean'); + $propbag->add('name', PLUGIN_EVENT_MAILER_SENDTOALL); + $propbag->add('description', ''); + $propbag->add('default', 'false'); + break; + case 'includelink': $propbag->add('type', 'boolean'); $propbag->add('name', PLUGIN_EVENT_MAILER_LINK); @@ -144,6 +151,12 @@ class serendipity_event_mailer extends serendipity_event } else { $mailto = $this->get_config('mailto'); } + + if (isset($serendipity['POST']['properties']['sendentry_all'])) { + $sendtoall = $serendipity['POST']['properties']['sendentry_all']; + } else { + $sendtoall = serendipity_db_bool($this->get_config('sendtoall')); + } ?> <fieldset style="margin: 5px"> @@ -151,7 +164,9 @@ class serendipity_event_mailer extends serendipity_event <input class="input_checkbox" type="checkbox" name="serendipity[properties][sendentry]" id="properties_sendentry" value="true" checked="checked" /> <label title="<?php echo PLUGIN_EVENT_MAILER_SENDING; ?>" for="properties_sendentry"> <?php echo PLUGIN_EVENT_MAILER_ISTOSENDIT; ?></label><br /> <label title="<?php echo PLUGIN_EVENT_MAILER_RECIPIENT; ?>" for="properties_mailto"> <?php echo PLUGIN_EVENT_MAILER_RECIPIENTS; ?> </label> - <input class="input_textbox" type="text" name="serendipity[properties][mailto]" id="properties_mailto" value="<?php echo htmlspecialchars($mailto); ?>" /> + <input class="input_textbox" type="text" name="serendipity[properties][mailto]" id="properties_mailto" value="<?php echo htmlspecialchars($mailto); ?>" /><br /> + <input type="checkbox" value="true" id="sendall" name="serendipity[properties][sendentry_all]" <?php echo ($sendtoall ? 'checked="checked"': ''); ?> /> + <label title="<?php echo PLUGIN_EVENT_MAILER_SENDTOALL; ?>" for="sendall"> <?php echo PLUGIN_EVENT_MAILER_SENDTOALL; ?></label> </fieldset> <?php break; @@ -190,6 +205,12 @@ class serendipity_event_mailer extends serendipity_event } } + if ($serendipity['POST']['properties']['sendentry_all']) { + $mails = serendipity_db_query("SELECT email FROM {$serendipity['dbPrefix']}authors"); + foreach($mails AS $mail) { + $to[] = trim($mail['email']); + } + } $mail = array( 'subject' => $eventData['title'],