Index: trunk/extensions/EmailPage/EmailPage.alias.php |
— | — | @@ -11,69 +11,69 @@ |
12 | 12 | * @author Jon Harald Søby |
13 | 13 | */ |
14 | 14 | $aliases['en'] = array( |
15 | | - 'EmailPages' => array( 'EmailPages' ), |
| 15 | + 'EmailPage' => array( 'EmailPage' ), |
16 | 16 | ); |
17 | 17 | |
18 | 18 | /** Arabic (العربية) |
19 | 19 | * @author Meno25 |
20 | 20 | */ |
21 | 21 | $aliases['ar'] = array( |
22 | | - 'EmailPages' => array( 'مراسلة_الصفحات' ), |
| 22 | + 'EmailPage' => array( 'مراسلة_الصفحات' ), |
23 | 23 | ); |
24 | 24 | |
25 | 25 | /** Egyptian Spoken Arabic (مصرى) |
26 | 26 | * @author Meno25 |
27 | 27 | */ |
28 | 28 | $aliases['arz'] = array( |
29 | | - 'EmailPages' => array( 'مراسلة_الصفحات' ), |
| 29 | + 'EmailPage' => array( 'مراسلة_الصفحات' ), |
30 | 30 | ); |
31 | 31 | |
32 | 32 | /** French (Français) */ |
33 | 33 | $aliases['fr'] = array( |
34 | | - 'EmailPages' => array( 'EnvoyerPage', 'Envoyer Page' ), |
| 34 | + 'EmailPage' => array( 'EnvoyerPage', 'Envoyer Page' ), |
35 | 35 | ); |
36 | 36 | |
37 | 37 | /** Galician (Galego) */ |
38 | 38 | $aliases['gl'] = array( |
39 | | - 'EmailPages' => array( 'Enviar páxinas por correo electrónico' ), |
| 39 | + 'EmailPage' => array( 'Enviar páxinas por correo electrónico' ), |
40 | 40 | ); |
41 | 41 | |
42 | 42 | /** Hebrew (עברית) |
43 | 43 | * @author Rotem Liss |
44 | 44 | */ |
45 | 45 | $aliases['he'] = array( |
46 | | - 'EmailPages' => array( 'שליחת_דף_בדואר' ), |
| 46 | + 'EmailPage' => array( 'שליחת_דף_בדואר' ), |
47 | 47 | ); |
48 | 48 | |
49 | 49 | /** Haitian (Kreyòl ayisyen) */ |
50 | 50 | $aliases['ht'] = array( |
51 | | - 'EmailPages' => array( 'EmèlAtik' ), |
| 51 | + 'EmailPage' => array( 'EmèlAtik' ), |
52 | 52 | ); |
53 | 53 | |
54 | 54 | /** Hungarian (Magyar) */ |
55 | 55 | $aliases['hu'] = array( |
56 | | - 'EmailPages' => array( 'Szócikk elküldése e-mailben' ), |
| 56 | + 'EmailPage' => array( 'Szócikk elküldése e-mailben' ), |
57 | 57 | ); |
58 | 58 | |
59 | 59 | /** Luxembourgish (Lëtzebuergesch) */ |
60 | 60 | $aliases['lb'] = array( |
61 | | - 'EmailPages' => array( 'E-Mail-Säiten' ), |
| 61 | + 'EmailPage' => array( 'E-Mail-Säiten' ), |
62 | 62 | ); |
63 | 63 | |
64 | 64 | /** Dutch (Nederlands) */ |
65 | 65 | $aliases['nl'] = array( |
66 | | - 'EmailPages' => array( 'PaginaE-mailen', 'PaginaEmailen' ), |
| 66 | + 'EmailPage' => array( 'PaginaE-mailen', 'PaginaEmailen' ), |
67 | 67 | ); |
68 | 68 | |
69 | 69 | /** Norwegian (bokmål) (Norsk (bokmål)) |
70 | 70 | * @author Jon Harald Søby |
71 | 71 | */ |
72 | 72 | $aliases['no'] = array( |
73 | | - 'EmailPages' => array( 'Send side som e-post' ), |
| 73 | + 'EmailPage' => array( 'Send side som e-post' ), |
74 | 74 | ); |
75 | 75 | |
76 | 76 | /** Pashto (پښتو) */ |
77 | 77 | $aliases['ps'] = array( |
78 | | - 'EmailPages' => array( 'د برېښليک مخونه' ), |
| 78 | + 'EmailPage' => array( 'د برېښليک مخونه' ), |
79 | 79 | ); |
80 | 80 | |
Index: trunk/extensions/EmailPage/EmailPage_body.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | |
17 | 17 | public function __construct() { |
18 | 18 | global $wgEmailPageGroup; |
19 | | - SpecialPage::SpecialPage('EmailPages', $wgEmailPageGroup); |
| 19 | + SpecialPage::SpecialPage('EmailPage', $wgEmailPageGroup); |
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
Index: trunk/extensions/EmailPage/EmailPage.i18n.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | * @author Nad |
13 | 13 | */ |
14 | 14 | $messages['en'] = array( |
15 | | - 'emailpages' => 'E-mail page', |
| 15 | + 'emailpage' => 'E-mail page', |
16 | 16 | 'ea-desc' => 'Send rendered HTML page to an e-mail address or list of addresses using [http://phpmailer.sourceforge.net phpmailer].', |
17 | 17 | 'ea-heading' => "=== E-mailing the page [[$1]] ===", |
18 | 18 | 'ea-fromgroup' => 'From group:', |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | * @author OsamaK |
48 | 48 | */ |
49 | 49 | $messages['ar'] = array( |
50 | | - 'emailpages' => 'إرسال رسالة للمستخدم', |
| 50 | + 'emailpage' => 'إرسال رسالة للمستخدم', |
51 | 51 | 'ea-desc' => 'يرسل صفحة ناتجة ب HTML لعنوان بريد إلكتروني أو قائمة عناوين باستخدام [http://phpmailer.sourceforge.net phpmailer].', |
52 | 52 | 'ea-heading' => '=== مراسلة الصفحة [[$1]] ===', |
53 | 53 | 'ea-fromgroup' => 'من مجموعة:', |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | * @author Yekrats |
100 | 100 | */ |
101 | 101 | $messages['eo'] = array( |
102 | | - 'emailpages' => 'Retpoŝtigi paĝon', |
| 102 | + 'emailpage' => 'Retpoŝtigi paĝon', |
103 | 103 | 'ea-heading' => '=== Retpoŝtigante paĝon [[$1]] ===', |
104 | 104 | 'ea-fromgroup' => 'De grupo:', |
105 | 105 | 'ea-pagesend' => 'Paĝo "$1" sendita de $2', |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | * @author Grondin |
120 | 120 | */ |
121 | 121 | $messages['fr'] = array( |
122 | | - 'emailpages' => 'Envoyer l’article par courriel', |
| 122 | + 'emailpage' => 'Envoyer l’article par courriel', |
123 | 123 | 'ea-desc' => 'Envoie le rendu d’une page HTML à une adresse électronique où à une liste d’adresses en utilisant [http://phpmailer.sourceforge.net phpmailer]', |
124 | 124 | 'ea-heading' => '=== Envoi de la page [[$1]] par courrier électronique ===', |
125 | 125 | 'ea-fromgroup' => 'Depuis le groupe :', |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | * @author Toliño |
147 | 147 | */ |
148 | 148 | $messages['gl'] = array( |
149 | | - 'emailpages' => 'Enviar a páxina por correo electrónico', |
| 149 | + 'emailpage' => 'Enviar a páxina por correo electrónico', |
150 | 150 | 'ea-desc' => 'Enviar páxinas HTML renderizadas a un enderezo de correo electrónico (ou a varios correos) usando [http://phpmailer.sourceforge.net phpmailer].', |
151 | 151 | 'ea-heading' => '=== Enviando a páxina "[[$1]]" ===', |
152 | 152 | 'ea-fromgroup' => 'Desde o grupo:', |
— | — | @@ -172,7 +172,7 @@ |
173 | 173 | * @author McDutchie |
174 | 174 | */ |
175 | 175 | $messages['ia'] = array( |
176 | | - 'emailpages' => 'Inviar pagina per e-mail', |
| 176 | + 'emailpage' => 'Inviar pagina per e-mail', |
177 | 177 | 'ea-desc' => 'Inviar le rendition HTML de un pagina a un adresse de e-mail o a un lista de adresses con [http://phpmailer.sourceforge.net phpmailer].', |
178 | 178 | 'ea-heading' => '=== Invio del pagina [[$1]] per e-mail ===', |
179 | 179 | 'ea-fromgroup' => 'Del gruppo:', |
— | — | @@ -199,7 +199,7 @@ |
200 | 200 | * @author Lovekhmer |
201 | 201 | */ |
202 | 202 | $messages['km'] = array( |
203 | | - 'emailpages' => 'ទំព័រអ៊ីមែល', |
| 203 | + 'emailpage' => 'ទំព័រអ៊ីមែល', |
204 | 204 | 'ea-fromgroup' => 'ពីក្រុម:', |
205 | 205 | 'ea-pagesend' => 'ទំព័រ"$1"ត្រូវបានបញ្ជូនពី$2', |
206 | 206 | 'ea-send' => 'ផ្ញើ!', |
— | — | @@ -209,7 +209,7 @@ |
210 | 210 | * @author Robby |
211 | 211 | */ |
212 | 212 | $messages['lb'] = array( |
213 | | - 'emailpages' => 'Säit per Mail schécken', |
| 213 | + 'emailpage' => 'Säit per Mail schécken', |
214 | 214 | 'ea-heading' => '=== Säit [[$1]] peer E-Mail verschécken ===', |
215 | 215 | 'ea-fromgroup' => 'Vun der Grupp:', |
216 | 216 | 'ea-pagesend' => 'D\'Säit "$1" gouf verschéckt vum $2', |
— | — | @@ -226,7 +226,7 @@ |
227 | 227 | * @author Shijualex |
228 | 228 | */ |
229 | 229 | $messages['ml'] = array( |
230 | | - 'emailpages' => 'ഇമെയില് താള്', |
| 230 | + 'emailpage' => 'ഇമെയില് താള്', |
231 | 231 | 'ea-heading' => '=== [[$1]] എന്ന താള് ഇമെയില് ചെയ്യുന്നു ===', |
232 | 232 | 'ea-fromgroup' => 'ഗ്രൂപ്പ്:', |
233 | 233 | 'ea-pagesend' => '$2 സംരംഭത്തില് നിന്നു "$1" എന്ന താള് അയച്ചു', |
— | — | @@ -247,7 +247,7 @@ |
248 | 248 | * @author Kaustubh |
249 | 249 | */ |
250 | 250 | $messages['mr'] = array( |
251 | | - 'emailpages' => 'पान इ-मेल करा', |
| 251 | + 'emailpage' => 'पान इ-मेल करा', |
252 | 252 | 'ea-desc' => ' [http://phpmailer.sourceforge.net पीएचपी मेलर] चा वापर करून एखादे पान एखाद्या इ-मेल पत्त्यावर किंवा इ-मेल पत्त्यांच्या यादीवर पाठवा.', |
253 | 253 | 'ea-heading' => '=== [[$1]] पान इ-मेल करीत आहे ===', |
254 | 254 | 'ea-fromgroup' => 'गटाकडून:', |
— | — | @@ -274,7 +274,7 @@ |
275 | 275 | * @author Fluence |
276 | 276 | */ |
277 | 277 | $messages['nah'] = array( |
278 | | - 'emailpages' => 'E-mail zāzanilli', |
| 278 | + 'emailpage' => 'E-mail zāzanilli', |
279 | 279 | 'ea-heading' => '=== E-mailhua in zāzanilli $1 ===', |
280 | 280 | ); |
281 | 281 | |
— | — | @@ -289,7 +289,7 @@ |
290 | 290 | * @author Siebrand |
291 | 291 | */ |
292 | 292 | $messages['nl'] = array( |
293 | | - 'emailpages' => 'Pagina e-mailen', |
| 293 | + 'emailpage' => 'Pagina e-mailen', |
294 | 294 | 'ea-desc' => 'Stuur een gerenderde pagina naar een e-mailadres of een lijst van adressen met behulp van [http://phpmailer.sourceforge.net phpmailer].', |
295 | 295 | 'ea-heading' => '=== Pagina [[$1]] e-mailen ===', |
296 | 296 | 'ea-fromgroup' => 'Van groep:', |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | * @author Jon Harald Søby |
318 | 318 | */ |
319 | 319 | $messages['no'] = array( |
320 | | - 'emailpages' => 'Send side som e-post', |
| 320 | + 'emailpage' => 'Send side som e-post', |
321 | 321 | 'ea-desc' => 'Send HTML-side til en eller flere e-postadresser ved hjelp av [http://phpmailer.sourceforge.net/ phpmailer].', |
322 | 322 | 'ea-heading' => '=== Send siden [[$1]] som e-post ===', |
323 | 323 | 'ea-fromgroup' => 'Fra gruppe:', |
— | — | @@ -343,7 +343,7 @@ |
344 | 344 | * @author Cedric31 |
345 | 345 | */ |
346 | 346 | $messages['oc'] = array( |
347 | | - 'emailpages' => 'Mandar l’article per corrièr electronic', |
| 347 | + 'emailpage' => 'Mandar l’article per corrièr electronic', |
348 | 348 | 'ea-desc' => 'Manda lo rendut d’una pagina HTML a una adreça electronica o a una tièra d’adreças en utilizant [http://phpmailer.sourceforge.net phpmailer]', |
349 | 349 | 'ea-heading' => '=== Mandadís de la pagina [[$1]] per corrièr electronic ===', |
350 | 350 | 'ea-fromgroup' => 'Dempuèi lo grop :', |
— | — | @@ -405,7 +405,7 @@ |
406 | 406 | * @author Helix84 |
407 | 407 | */ |
408 | 408 | $messages['sk'] = array( |
409 | | - 'emailpages' => 'Poslať stránku emailom', |
| 409 | + 'emailpage' => 'Poslať stránku emailom', |
410 | 410 | 'ea-desc' => 'Poslať stránku vo formáte HTML na emailovú adresu alebo zoznam adries pomocou [http://phpmailer.sourceforge.net phpmailer].', |
411 | 411 | 'ea-heading' => '=== Poslanie stránky [[$1]] emailom ===', |
412 | 412 | 'ea-fromgroup' => 'Zo skupiny:', |
— | — | @@ -440,7 +440,7 @@ |
441 | 441 | * @author M.M.S. |
442 | 442 | */ |
443 | 443 | $messages['sv'] = array( |
444 | | - 'emailpages' => 'E-posta sida', |
| 444 | + 'emailpage' => 'E-posta sida', |
445 | 445 | 'ea-desc' => 'Skicka en renderad HTML-sida till en e-postadress eller en lista över adresser som använder [http://phpmailer.sourceforge.net phpmailer].', |
446 | 446 | 'ea-heading' => '=== E-posta sidan [[$1]] ===', |
447 | 447 | 'ea-fromgroup' => 'Från grupp:', |
— | — | @@ -477,7 +477,7 @@ |
478 | 478 | * @author Vinhtantran |
479 | 479 | */ |
480 | 480 | $messages['vi'] = array( |
481 | | - 'emailpages' => 'Trang thư điện tử', |
| 481 | + 'emailpage' => 'Trang thư điện tử', |
482 | 482 | 'ea-desc' => 'Gửi trang HTML giản lược đến một địa chỉ hoặc danh sách các địa chỉ thư điện tử dùng [http://phpmailer.sourceforge.net phpmailer].', |
483 | 483 | 'ea-heading' => '=== Gửi trang [[$1]] ===', |
484 | 484 | 'ea-nopage' => 'Xin hãy xác định trang muốn gửi, ví dụ [[Special:EmailPage/{{MediaWiki:Mainpage-url}}]].', |
Index: trunk/extensions/EmailPage/EmailPage.php |
— | — | @@ -13,27 +13,29 @@ |
14 | 14 | |
15 | 15 | if (!defined('MEDIAWIKI')) die('Not an entry point.'); |
16 | 16 | |
17 | | -define('EMAILPAGE_VERSION', '1.2.0, 2008-07-13'); |
| 17 | +define('EMAILPAGE_VERSION', '1.2.1, 2008-08-17'); |
18 | 18 | |
19 | 19 | $wgEmailPageGroup = 'sysop'; # Users must belong to this group to send emails (empty string means anyone can send) |
20 | 20 | $wgEmailPageContactsCat = ''; # This specifies the name of a category containing categories of contact pages |
21 | 21 | $wgEmailPageCss = 'EmailPage.css'; # A minimal CSS page to embed in the email (eg. monobook/main.css without portlets, actions etc) |
22 | | -$wgEmailPageAllowRemoteAddr = array($_SERVER['SERVER_ADDR'],'127.0.0.1'); # Allow anonymous sending from these addresses |
| 22 | +$wgEmailPageAllowRemoteAddr = array('127.0.0.1'); # Allow anonymous sending from these addresses |
23 | 23 | $wgEmailPageAllowAllUsers = false; # Whether to allow sending to all users (the "user" group) |
24 | 24 | $wgEmailPageToolboxLink = 'Send to email'; # Link title for toolbox link (set to "" to not have any link in toolbox) |
25 | 25 | $wgEmailPageActionLink = 'email'; # Link title for action link (set to "" to not have any action link) |
26 | | -$wgPhpMailerClass = dirname(__FILE__).'/phpMailer_v2.1.0beta2/class.phpmailer.php'; # From http://phpmailer.sourceforge.net/ |
| 26 | +$wgPhpMailerClass = dirname(__FILE__).'/phpMailer_v2.1.0beta2/class.phpmailer.php'; # From http://phpmailer.sourceforge.net/ |
27 | 27 | |
28 | 28 | if ($wgEmailPageGroup) $wgGroupPermissions['sysop'][$wgEmailPageGroup] = true; |
29 | 29 | |
| 30 | +if (isset($_SERVER['SERVER_ADDR'])) $wgEmailPageAllowRemoteAddr[] = $_SERVER['SERVER_ADDR']; |
| 31 | + |
30 | 32 | $dir = dirname(__FILE__) . '/'; |
31 | 33 | $wgAutoloadClasses['SpecialEmailPage'] = $dir . 'EmailPage_body.php'; |
32 | 34 | $wgExtensionMessagesFiles['EmailPage'] = $dir . 'EmailPage.i18n.php'; |
33 | | -$wgExtensionAliasesFiles['EmailPage'] = $dir . 'EmailPage.alias.php'; |
34 | | -$wgSpecialPages['EmailPages'] = 'SpecialEmailPage'; |
| 35 | +$wgExtensionAliasesFiles['EmailPage'] = $dir . 'EmailPage.alias.php'; |
| 36 | +$wgSpecialPages['EmailPage'] = 'SpecialEmailPage'; |
35 | 37 | |
36 | 38 | $wgExtensionCredits['specialpage'][] = array( |
37 | | - 'name' => 'Special:EmailPages', |
| 39 | + 'name' => 'Special:EmailPage', |
38 | 40 | 'author' => '[http://www.organicdesign.co.nz/nad User:Nad]', |
39 | 41 | 'description' => 'Send rendered HTML page to an email address or list of addresses using [http://phpmailer.sourceforge.net phpmailer].', |
40 | 42 | 'descriptionmsg' => 'ea-desc', |
— | — | @@ -56,7 +58,7 @@ |
57 | 59 | function wfEmailPageToolboxLink() { |
58 | 60 | global $wgEmailPageToolboxLink, $wgTitle, $wgUser, $wgEmailPageGroup; |
59 | 61 | if (is_object($wgTitle) && (empty($wgEmailPageGroup) || in_array($wgEmailPageGroup, $wgUser->getEffectiveGroups()))) { |
60 | | - $url = Title::makeTitle(NS_SPECIAL, 'EmailPages')->getLocalURL('ea-title='.$wgTitle->getPrefixedText()); |
| 62 | + $url = Title::makeTitle(NS_SPECIAL, 'EmailPage')->getLocalURL('ea-title='.$wgTitle->getPrefixedText()); |
61 | 63 | echo("<li><a href=\"$url\">$wgEmailPageToolboxLink</li>"); |
62 | 64 | } |
63 | 65 | return true; |