Dotclear

Changeset 443


Ignore:
Timestamp:
05/10/08 08:59:54 (16 years ago)
Author:
sacha
Message:

Moving myHandlers to myUrlHandlers (first step)

Location:
plugins/myHandlers
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/myHandlers/CHANGELOG

    r442 r443  
     12008-05-08  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
     2 
     3 * v0.4.4 Name changed from myHandlers to myUrlHandlers 
     4 
     5 
    162008-05-08  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    27 
  • plugins/myHandlers/_admin.php

    r435 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    1616 
    17 $_menu['Plugins']->addItem('URL handlers','plugin.php?p=myHandlers',null, 
    18      preg_match('/plugin.php\?p=myHandlers$/',$_SERVER['REQUEST_URI']), 
     17$_menu['Plugins']->addItem(__('URL handlers'),'plugin.php?p=myUrlHandlers',null, 
     18     preg_match('/plugin.php\?p=myUrlHandlers$/',$_SERVER['REQUEST_URI']), 
    1919     $core->auth->check('contentadmin',$core->blog->id)); 
    2020?> 
  • plugins/myHandlers/_define.php

    r442 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     
    1616 
    1717$this->registerModule( 
    18      /* Name */          'My Handlers', 
     18     /* Name */          'My URL handlers', 
    1919     /* Description*/    'Changes Dotclear default URL handlers', 
    2020     /* Author */        'Oleksandr Syenchuk', 
    21      /* Version */       '0.4.3', 
     21     /* Version */       '0.4.4', 
    2222     /* Permissions */   'contentadmin' 
    2323); 
  • plugins/myHandlers/_install.php

    r435 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    1616 
    17 $label = 'myHandlers'; 
     17$label = 'myURLhandlers'; 
    1818$m_version = $core->plugins->moduleInfo($label,'version'); 
    1919$i_version = $core->getVersion($label); 
     
    2525$settings =& $core->blog->settings; 
    2626$settings->setNamespace(strtolower($label)); 
    27 $settings->put('my_handlers','','string','Personalized URL handlers',false); 
     27$settings->put('url_handlers','','string','Personalized URL handlers',false); 
    2828 
    2929$core->setVersion($label,$m_version); 
  • plugins/myHandlers/_prepend.php

    r435 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    1616 
    17 $__autoload['myHandlers'] = dirname(__FILE__).'/class.myhandlers.php'; 
     17$__autoload['myUrlHandlers'] = dirname(__FILE__).'/class.myurlhandlers.php'; 
    1818 
    19 $myHandlers = (array) @unserialize($core->blog->settings->my_handlers); 
    20 foreach ($myHandlers as $handler_name=>$handler_url) 
     19$myUrlHandlers = (array) @unserialize($core->blog->settings->url_handlers); 
     20foreach ($myUrlHandlers as $handler_name=>$handler_url) 
    2121{ 
    22      myHandlers::overrideHandler($handler_name,$handler_url); 
     22     myUrlHandlers::overrideHandler($handler_name,$handler_url); 
    2323} 
    2424 
    25 unset($myHandlers,$handler_name,$handler_url); 
     25unset($myUrlHandlers,$handler_name,$handler_url); 
    2626?> 
  • plugins/myHandlers/class.myhandlers.php

    r435 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    1616 
    17 class myHandlers 
     17class myUrlHandlers 
    1818{ 
    1919     private $sets; 
  • plugins/myHandlers/index.php

    r436 r443  
    11<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
    22/***************************************************************\ 
    3  *  This is 'My Handlers', a plugin for Dotclear 2             * 
     3 *  This is 'My URL handlers', a plugin for Dotclear 2         * 
    44 *                                                             * 
    55 *  Copyright (c) 2007-2008                                    * 
     
    1010 *                                                             * 
    1111 *  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);    * 
    1313 *  if not, write to the Free Software Foundation, Inc.,       * 
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     
    1717try 
    1818{ 
    19      $handlers = myHandlers::getDefaults(); 
     19     $handlers = myUrlHandlers::getDefaults(); 
    2020      
    21      if (($settings = @unserialize($core->blog->settings->my_handlers)) 
     21     if (($settings = @unserialize($core->blog->settings->url_handlers)) 
    2222     && is_array($settings)) { 
    2323          foreach ($settings as $name=>$url) 
     
    3737               if (empty($handlers[$name])) { 
    3838                    throw new Exception(sprintf( 
    39                     __('"%s" handler does not exist.'),html::escapeHTML($name))); 
     39                    __('"%s" URL handler does not exist.'),html::escapeHTML($name))); 
    4040               } 
    4141                
     
    5757      
    5858     if (isset($_POST['act_save'])) { 
    59           $core->blog->settings->setNamespace('myhandlers'); 
    60           $core->blog->settings->put('my_handlers',serialize($handlers)); 
     59          $core->blog->settings->setNamespace('myurlhandlers'); 
     60          $core->blog->settings->put('url_handlers',serialize($handlers)); 
    6161          $core->blog->triggerBlog(); 
    6262          $msg = __('URL handlers have been succefully updated.'); 
  • plugins/myHandlers/locales/fr/main.po

    r442 r443  
    33"Project-Id-Version: myHandlers 0.4.2\n" 
    44"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" 
    66"Last-Translator: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 
    77"Language-Team: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 
     
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: plugins/myHandlers/index.php:39 
     17#: _admin.php:17 
     18#: index.php:75 
     19msgid "URL handlers" 
     20msgstr "Gestionnaires d'URL" 
     21 
     22#: index.php:39 
    1823#, php-format 
    19 msgid "\"%s\" handler does not exist." 
    20 msgstr "Le gestionnaire \"%s\" n'existe pas." 
     24msgid "\"%s\" URL handler does not exist." 
     25msgstr "Le gestionnaire d'URL \"%s\" n'existe pas." 
    2126 
    22 #: plugins/myHandlers/index.php:44 
     27#: index.php:44 
    2328#, php-format 
    2429msgid "Invalid URL for handler \"%s\"." 
    2530msgstr "URL invalide du gestionnaire \"%s\"." 
    2631 
    27 #: plugins/myHandlers/index.php:52 
     32#: index.php:52 
    2833#, php-format 
    2934msgid "Duplicate URL in handlers \"%s\"." 
    3035msgstr "Doublon d'URL dans les gestionnaires \"%s\"." 
    3136 
    32 #: plugins/myHandlers/index.php:53 
     37#: index.php:53 
    3338#, php-format 
    3439msgid "Duplicate URL in handler \"%s\"." 
    3540msgstr "Doublon d'URL dans le gestionnaire \"%s\"." 
    3641 
    37 #: plugins/myHandlers/index.php:62 
     42#: index.php:62 
    3843msgid "URL handlers have been succefully updated." 
    3944msgstr "Les gestionnaires d'URL ont été mis à jour avec succès." 
    4045 
    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 
    4647msgid "Personalize default URL handlers" 
    4748msgstr "Personnaliser les gestionnaires d'URL par défaut" 
    4849 
    49 #: plugins/myHandlers/index.php:88 
     50#: index.php:88 
    5051msgid "No URL handlers to define." 
    5152msgstr "Il n'y a aucun gestionnaire d'URL à définir." 
    5253 
    53 #: plugins/myHandlers/index.php:90 
     54#: index.php:90 
    5455msgid "You can write your own URL for each handler in this list." 
    55 msgstr "Vous pouvez spécifier votre propre URL pour chaque gestionnaire de cette liste." 
     56msgstr "Vous pouvez spécifier vos propres URL pour chaque gestionnaire de cette liste." 
    5657 
     58#: index.php:106 
     59msgid "save" 
     60msgstr "enregistrer" 
     61 
Note: See TracChangeset for help on using the changeset viewer.

Sites map