Changeset 3001
- Timestamp:
- 02/25/11 09:15:57 (12 years ago)
- Location:
- plugins/myUrlHandlers
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/myUrlHandlers/_admin.php
r778 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. -
plugins/myUrlHandlers/_define.php
r778 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. … … 16 16 /* Name */ 'My URL handlers', 17 17 /* Description*/ 'Change Dotclear URL handlers', 18 /* Author */ ' Oleksandr Syenchuk',19 /* Version */ '20 08.11',18 /* Author */ 'Alex Pirine', 19 /* Version */ '2011.02', 20 20 /* Permissions */ 'contentadmin', 21 21 /* Priority */ 1500 -
plugins/myUrlHandlers/_install.php
r778 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. … … 21 21 } 22 22 23 $ settings =& $core->blog->settings;24 $s ettings->setNamespace(strtolower($label));25 $s ettings->put('url_handlers','','string','Personalized URL handlers',false);23 $core->blog->settings->addNamespace('myurlhandlers'); 24 $s = &$core->blog->settings->myurlhandlers; 25 $s->put('url_handlers','','string','Personalized URL handlers',false); 26 26 27 27 $core->setVersion($label,$m_version); -
plugins/myUrlHandlers/_prepend.php
r778 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. -
plugins/myUrlHandlers/class.myurlhandlers.php
r778 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. … … 45 45 46 46 # Read user settings 47 $handlers = (array) @unserialize($core->blog->settings-> url_handlers);47 $handlers = (array) @unserialize($core->blog->settings->myurlhandlers->url_handlers); 48 48 foreach ($handlers as $name => $url) 49 49 { -
plugins/myUrlHandlers/index.php
r1734 r3001 3 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2007 -2008 Oleksandr Syenchuk6 # < sacha@xn--phnix-csa.net>5 # Copyright (c) 2007,2008,2011 Alex Pirine 6 # <alex pirine.fr> 7 7 # 8 8 # Licensed under the GPL version 2.0 license. … … 19 19 20 20 # Overwrite with user settings 21 $settings = @unserialize($core->blog->settings-> url_handlers);21 $settings = @unserialize($core->blog->settings->myurlhandlers->url_handlers); 22 22 if (is_array($settings)) { 23 23 foreach ($settings as $name=>$url) … … 63 63 if (isset($_POST['act_save'])) 64 64 { 65 $core->blog->settings->setNamespace('myurlhandlers'); 66 $core->blog->settings->put('url_handlers',serialize($handlers)); 65 $core->blog->settings->myurlhandlers->put('url_handlers',serialize($handlers)); 67 66 $core->blog->triggerBlog(); 68 67 $msg = __('URL handlers have been successfully updated.'); … … 70 69 elseif (isset($_POST['act_restore'])) 71 70 { 72 $core->blog->settings->setNamespace('myurlhandlers'); 73 $core->blog->settings->put('url_handlers',serialize(array())); 71 $core->blog->settings->myurlhandlers->put('url_handlers',serialize(array())); 74 72 $core->blog->triggerBlog(); 75 73 $handlers = myUrlHandlers::getDefaults(); -
plugins/myUrlHandlers/locales/fr/main.po
r1734 r3001 2 2 msgstr "" 3 3 "Project-Id-Version: myUrlHandlers Dotclear module\n" 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2008-11-23 19:35+0100\n" 6 "Last-Translator: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2011-02-24 22:10+0100\n" 6 "PO-Revision-Date: 2011-02-24 22:10+0100\n" 7 "Last-Translator: Alex Pirine <alex pirine.fr>\n" 7 8 "Language-Team: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 8 9 "MIME-Version: 1.0\n" 9 "Content-Type: text/plain; charset= utf-8\n"10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 12 "X-Poedit-Language: French\n" … … 17 18 18 19 #: _admin.php:15 19 #: index.php:8 920 #: index.php:9 220 #: index.php:87 21 #: index.php:90 21 22 msgid "URL handlers" 22 23 msgstr "Gestionnaires d'URL" … … 37 38 msgstr "Doublon d'URL dans les gestionnaires \"%s\"." 38 39 39 #: index.php:6 840 #: index.php:67 40 41 msgid "URL handlers have been successfully updated." 41 42 msgstr "Les gestionnaires d'URL ont été mis à jour avec succès." 42 43 43 #: index.php:7 644 #: index.php:74 44 45 msgid "URL handlers have been successfully restored." 45 46 msgstr "Les gestionnaires d'URL ont été restaurés avec succès." 46 47 47 #: index.php: 10148 #: index.php:99 48 49 msgid "No URL handler to configure." 49 50 msgstr "Il n'y a aucun gestionnaire d'URL à définir." 50 51 51 #: index.php:10 352 #: index.php:101 52 53 msgid "You can write your own URL for each handler of this list." 53 54 msgstr "Vous pouvez écrire votre propre URL pour chaque gestionnaire de cette liste." 54 55 55 #: index.php:1 2156 #: index.php:119 56 57 msgid "save" 57 58 msgstr "enregistrer" 58 59 59 #: index.php:12 260 #: index.php:120 60 61 msgid "reset" 61 62 msgstr "réinitialiser"
Note: See TracChangeset
for help on using the changeset viewer.