Changeset 225
- Timestamp:
- 08/01/08 18:25:50 (15 years ago)
- Location:
- plugins/writers
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/writers/_admin.php
r62 r225 1 1 <?php 2 # ***** BEGIN LICENSE BLOCK ***** 3 # This file is part of DotClear. 4 # Copyright (c) 2006 Olivier Meunier and contributors. All rights 5 # reserved. 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 6 3 # 7 # DotClear is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # DotClear is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with DotClear; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 4 # This file is part of Dotclear 2. 20 5 # 21 # ***** END LICENSE BLOCK ***** 22 23 require dirname(__FILE__).'/config.php'; 6 # Copyright (c) 2003-2008 Olivier Meunier and contributors 7 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or 9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 # 11 # -- END LICENSE BLOCK ------------------------------------ 24 12 25 13 $_menu['System']->addItem(__('Writers'),'plugin.php?p=writers','images/menu/users.png', -
plugins/writers/_define.php
r66 r225 1 1 <?php 2 # ***** BEGIN LICENSE BLOCK ***** 3 # This file is part of DotClear. 4 # Copyright (c) 2006 Olivier Meunier and contributors. All rights 5 # reserved. 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 6 3 # 7 # DotClear is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # DotClear is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with DotClear; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 4 # This file is part of Dotclear 2. 20 5 # 21 # ***** END LICENSE BLOCK ***** 6 # Copyright (c) 2003-2008 Olivier Meunier and contributors 7 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or 9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 # 11 # -- END LICENSE BLOCK ------------------------------------ 22 12 23 13 $this->registerModule( … … 25 15 /* Description*/ "Invite people to write on your blog", 26 16 /* Author */ "Olivier Meunier", 27 /* Version */ '1 ',17 /* Version */ '1.0', 28 18 /* Permissions */ 'admin' 29 19 ); -
plugins/writers/_prepend.php
r66 r225 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # 4 # This file is part of Dotclear 2. 5 # 6 # Copyright (c) 2003-2008 Olivier Meunier and contributors 7 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or 9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 # 11 # -- END LICENSE BLOCK ------------------------------------ 12 13 14 # Following constants can be overrided in your install config.php: 15 # 16 # DC_WR_ALLOW_ADMIN (allow admin permission to be set) 17 18 if (!defined('DC_WR_ALLOW_ADMIN')) { 19 define('DC_WR_ALLOW_ADMIN',false); 20 } 21 2 22 # Super admins don't need this extension 3 23 if ($GLOBALS['core']->auth->isSuperAdmin()) { -
plugins/writers/index.php
r194 r225 1 1 <?php 2 # ***** BEGIN LICENSE BLOCK ***** 3 # This file is part of DotClear. 4 # Copyright (c) 2006 Olivier Meunier and contributors. All rights 5 # reserved. 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 6 3 # 7 # DotClear is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # DotClear is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with DotClear; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 4 # This file is part of Dotclear 2. 20 5 # 21 # ***** END LICENSE BLOCK ***** 6 # Copyright (c) 2003-2008 Olivier Meunier and contributors 7 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or 9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 # 11 # -- END LICENSE BLOCK ------------------------------------ 22 12 23 13 if (!defined('DC_CONTEXT_ADMIN')) { exit; } … … 122 112 else 123 113 { 124 if ($core->auth->isSuperAdmin()) {125 $user_url_p = '<a href="user.php?id=%1$s">%1$s</a>';126 } else {127 $user_url_p = '%1$s';128 }129 130 114 foreach ($blog_users as $k => $v) 131 115 { -
plugins/writers/locales/fr/main.po
r62 r225 1 # French translation of DotClear2 # Copyright (C) 2006.3 # Olivier Meunier <olivier@dotclear.net>, 2006.4 #5 1 msgid "" 6 msgstr "Content-Type: text/plain; charset=UTF-8\n" 2 msgstr "" 3 "Project-Id-Version: Dotclear 2 writers module\n" 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2008-08-01 18:15+0200\n" 6 "PO-Revision-Date: 2008-08-01 18:15+0200\n" 7 "Last-Translator: Olivier Meunier <olivier@dotclear.net>\n" 8 "Language-Team: \n" 9 "MIME-Version: 1.0\n" 10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Content-Transfer-Encoding: 8bit\n" 7 12 8 #: plugins-test/writers/_admin.php:25 plugins-test/writers/index.php:1079 #: plugins-test/writers/index.php:114 plugins-test/writers/index.php:17010 13 msgid "Writers" 11 14 msgstr "Rédacteurs" 12 15 13 #: plugins-test/writers/index.php:39 plugins-test/writers/index.php:8714 16 msgid "Writer does not exists." 15 17 msgstr "Le rédacteur n'existe pas." 16 18 17 #: plugins-test/writers/index.php:4318 19 msgid "You cannot add or update this writer." 19 20 msgstr "Vous ne pouvez pas ajouter ou modifier ce rédacteur." 20 21 21 #: plugins-test/writers/index.php:47 plugins-test/writers/index.php:9122 22 msgid "You cannot change your own permissions." 23 23 msgstr "Vous ne pouvez pas changer vos propres permissions." 24 24 25 #: plugins-test/writers/index.php:11626 25 msgid "Active writers" 27 26 msgstr "Rédacteurs actifs" 28 27 29 #: plugins-test/writers/index.php:12030 28 msgid "No writers" 31 29 msgstr "Aucun rédacteur" 32 30 33 #: plugins-test/writers/index.php:15134 31 msgid "Invite a new writer" 35 32 msgstr "Inviter un nouveau rédacteur" 36 33 37 #: plugins-test/writers/index.php:15738 34 msgid "invite" 39 35 msgstr "inviter" 40 36 41 #: plugins-test/writers/index.php:17342 37 #, php-format 43 38 msgid "You are about to set permissions on the blog %s for user %s (%s)."
Note: See TracChangeset
for help on using the changeset viewer.