Changeset 443
- Timestamp:
- 05/10/08 08:59:54 (16 years ago)
- Location:
- plugins/myHandlers
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/myHandlers/CHANGELOG
r442 r443 1 2008-05-08 Oleksandr Syenchuk <sacha@xn--phnix-csa.net> 2 3 * v0.4.4 Name changed from myHandlers to myUrlHandlers 4 5 1 6 2008-05-08 Oleksandr Syenchuk <sacha@xn--phnix-csa.net> 2 7 -
plugins/myHandlers/_admin.php
r435 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 $_menu['Plugins']->addItem( 'URL handlers','plugin.php?p=myHandlers',null,18 preg_match('/plugin.php\?p=my Handlers$/',$_SERVER['REQUEST_URI']),17 $_menu['Plugins']->addItem(__('URL handlers'),'plugin.php?p=myUrlHandlers',null, 18 preg_match('/plugin.php\?p=myUrlHandlers$/',$_SERVER['REQUEST_URI']), 19 19 $core->auth->check('contentadmin',$core->blog->id)); 20 20 ?> -
plugins/myHandlers/_define.php
r442 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * … … 16 16 17 17 $this->registerModule( 18 /* Name */ 'My Handlers',18 /* Name */ 'My URL handlers', 19 19 /* Description*/ 'Changes Dotclear default URL handlers', 20 20 /* Author */ 'Oleksandr Syenchuk', 21 /* Version */ '0.4. 3',21 /* Version */ '0.4.4', 22 22 /* Permissions */ 'contentadmin' 23 23 ); -
plugins/myHandlers/_install.php
r435 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 $label = 'my Handlers';17 $label = 'myURLhandlers'; 18 18 $m_version = $core->plugins->moduleInfo($label,'version'); 19 19 $i_version = $core->getVersion($label); … … 25 25 $settings =& $core->blog->settings; 26 26 $settings->setNamespace(strtolower($label)); 27 $settings->put(' my_handlers','','string','Personalized URL handlers',false);27 $settings->put('url_handlers','','string','Personalized URL handlers',false); 28 28 29 29 $core->setVersion($label,$m_version); -
plugins/myHandlers/_prepend.php
r435 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 $__autoload['my Handlers'] = dirname(__FILE__).'/class.myhandlers.php';17 $__autoload['myUrlHandlers'] = dirname(__FILE__).'/class.myurlhandlers.php'; 18 18 19 $my Handlers = (array) @unserialize($core->blog->settings->my_handlers);20 foreach ($my Handlers as $handler_name=>$handler_url)19 $myUrlHandlers = (array) @unserialize($core->blog->settings->url_handlers); 20 foreach ($myUrlHandlers as $handler_name=>$handler_url) 21 21 { 22 my Handlers::overrideHandler($handler_name,$handler_url);22 myUrlHandlers::overrideHandler($handler_name,$handler_url); 23 23 } 24 24 25 unset($my Handlers,$handler_name,$handler_url);25 unset($myUrlHandlers,$handler_name,$handler_url); 26 26 ?> -
plugins/myHandlers/class.myhandlers.php
r435 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 16 17 class my Handlers17 class myUrlHandlers 18 18 { 19 19 private $sets; -
plugins/myHandlers/index.php
r436 r443 1 1 <?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 2 2 /***************************************************************\ 3 * This is 'My Handlers', a plugin for Dotclear 2*3 * This is 'My URL handlers', a plugin for Dotclear 2 * 4 4 * * 5 5 * Copyright (c) 2007-2008 * … … 10 10 * * 11 11 * You should have received a copy of the GNU General Public * 12 * License along with 'My Handlers' (see COPYING.txt);*12 * License along with 'My URL handlers' (see COPYING.txt); * 13 13 * if not, write to the Free Software Foundation, Inc., * 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * … … 17 17 try 18 18 { 19 $handlers = my Handlers::getDefaults();19 $handlers = myUrlHandlers::getDefaults(); 20 20 21 if (($settings = @unserialize($core->blog->settings-> my_handlers))21 if (($settings = @unserialize($core->blog->settings->url_handlers)) 22 22 && is_array($settings)) { 23 23 foreach ($settings as $name=>$url) … … 37 37 if (empty($handlers[$name])) { 38 38 throw new Exception(sprintf( 39 __('"%s" handler does not exist.'),html::escapeHTML($name)));39 __('"%s" URL handler does not exist.'),html::escapeHTML($name))); 40 40 } 41 41 … … 57 57 58 58 if (isset($_POST['act_save'])) { 59 $core->blog->settings->setNamespace('my handlers');60 $core->blog->settings->put(' my_handlers',serialize($handlers));59 $core->blog->settings->setNamespace('myurlhandlers'); 60 $core->blog->settings->put('url_handlers',serialize($handlers)); 61 61 $core->blog->triggerBlog(); 62 62 $msg = __('URL handlers have been succefully updated.'); -
plugins/myHandlers/locales/fr/main.po
r442 r443 3 3 "Project-Id-Version: myHandlers 0.4.2\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2008-05- 09 23:40+0100\n"5 "PO-Revision-Date: 2008-05-10 08:57+0100\n" 6 6 "Last-Translator: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 7 7 "Language-Team: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: plugins/myHandlers/index.php:39 17 #: _admin.php:17 18 #: index.php:75 19 msgid "URL handlers" 20 msgstr "Gestionnaires d'URL" 21 22 #: index.php:39 18 23 #, php-format 19 msgid "\"%s\" handler does not exist."20 msgstr "Le gestionnaire \"%s\" n'existe pas."24 msgid "\"%s\" URL handler does not exist." 25 msgstr "Le gestionnaire d'URL \"%s\" n'existe pas." 21 26 22 #: plugins/myHandlers/index.php:4427 #: index.php:44 23 28 #, php-format 24 29 msgid "Invalid URL for handler \"%s\"." 25 30 msgstr "URL invalide du gestionnaire \"%s\"." 26 31 27 #: plugins/myHandlers/index.php:5232 #: index.php:52 28 33 #, php-format 29 34 msgid "Duplicate URL in handlers \"%s\"." 30 35 msgstr "Doublon d'URL dans les gestionnaires \"%s\"." 31 36 32 #: plugins/myHandlers/index.php:5337 #: index.php:53 33 38 #, php-format 34 39 msgid "Duplicate URL in handler \"%s\"." 35 40 msgstr "Doublon d'URL dans le gestionnaire \"%s\"." 36 41 37 #: plugins/myHandlers/index.php:6242 #: index.php:62 38 43 msgid "URL handlers have been succefully updated." 39 44 msgstr "Les gestionnaires d'URL ont été mis à jour avec succès." 40 45 41 #: plugins/myHandlers/index.php:75 42 msgid "URL handlers" 43 msgstr "Gestionnaires d'URL" 44 45 #: plugins/myHandlers/index.php:79 46 #: index.php:79 46 47 msgid "Personalize default URL handlers" 47 48 msgstr "Personnaliser les gestionnaires d'URL par défaut" 48 49 49 #: plugins/myHandlers/index.php:8850 #: index.php:88 50 51 msgid "No URL handlers to define." 51 52 msgstr "Il n'y a aucun gestionnaire d'URL à définir." 52 53 53 #: plugins/myHandlers/index.php:9054 #: index.php:90 54 55 msgid "You can write your own URL for each handler in this list." 55 msgstr "Vous pouvez spécifier vo tre propreURL pour chaque gestionnaire de cette liste."56 msgstr "Vous pouvez spécifier vos propres URL pour chaque gestionnaire de cette liste." 56 57 58 #: index.php:106 59 msgid "save" 60 msgstr "enregistrer" 61
Note: See TracChangeset
for help on using the changeset viewer.