Changeset 3392
- Timestamp:
- 04/03/16 13:05:37 (7 years ago)
- Location:
- plugins/info
- Files:
-
- 3 added
- 3 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/info/_admin.php
r3312 r3392 3 3 # 4 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007 ,2008,2009,2010Moe (http://gniark.net/)5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 6 # 7 7 # Informations is free software; you can redistribute it and/or … … 28 28 preg_match('/plugin.php\?p=info(&.*)?$/',$_SERVER['REQUEST_URI']), 29 29 $core->auth->check('admin',$core->blog->id)); 30 31 $core->addBehavior('adminDashboardFavorites','infoDashboardFavorites'); 32 33 function infoDashboardFavorites($core,$favs) 34 { 35 $favs->register('info', array( 36 'title' => __('Informations'), 37 'url' => 'plugin.php?p=info', 38 'small-icon' => 'index.php?pf=info/icon.png', 39 'large-icon' => 'index.php?pf=info/icon-big.png', 40 'permissions' => 'usage,contentadmin' 41 )); 42 } -
plugins/info/_define.php
r3312 r3392 3 3 # 4 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007 ,2008,2009,2010Moe (http://gniark.net/)5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 6 # 7 7 # Informations is free software; you can redistribute it and/or … … 26 26 27 27 $this->registerModule( 28 /* Name */ "Informations", 29 /* Description*/ "Information about Dotclear and your system", 30 /* Author */ "Moe (http://gniark.net/)", 31 /* Version */ '1.8.5', 32 /* Permissions */ null 28 /* Name */ 'Informations', 29 /* Description*/ 'Informations about Dotclear and your system', 30 /* Author */ 'Moe (http://gniark.net/)', 31 /* Version */ '1.8.7', 32 /* Properties */ 33 array( 34 'permissions' => 'usage,contentadmin', 35 'type' => 'plugin', 36 'dc_min' => '2.6', 37 'support' => 'http://forum.dotclear.org/viewforum.php?id=16', 38 'details' => 'http://plugins.dotaddict.org/dc2/details/info' 39 ) 33 40 ); -
plugins/info/_prepend.php
r3312 r3392 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 # 5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 6 # <sacha@xn--phnix-csa.net> 7 # 8 # Licensed under the GPL version 2.0 license. 9 # A copy is available in LICENSE file or at 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 # -- END LICENSE BLOCK ------------------------------------ 2 # ***** BEGIN LICENSE BLOCK ***** 3 # 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 # 7 # Informations is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 10 # 11 # Informations is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public 17 # License along with this program. If not, see 18 # <http://www.gnu.org/licenses/>. 19 # 20 # Icon (icon.png) and images are from Silk Icons : 21 # <http://www.famfamfam.com/lab/icons/silk/> 22 # 23 # ***** END LICENSE BLOCK ***** 12 24 13 25 if (!defined('DC_RC_PATH')) {return;} -
plugins/info/inc/class.myurlhandlers.php
r3233 r3392 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of My URL handlers, a plugin for Dotclear. 4 # 5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 6 # <sacha@xn--phnix-csa.net> 7 # 8 # Licensed under the GPL version 2.0 license. 9 # A copy is available in LICENSE file or at 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 # -- END LICENSE BLOCK ------------------------------------ 2 # ***** BEGIN LICENSE BLOCK ***** 3 # 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 # 7 # Informations is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 10 # 11 # Informations is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public 17 # License along with this program. If not, see 18 # <http://www.gnu.org/licenses/>. 19 # 20 # Icon (icon.png) and images are from Silk Icons : 21 # <http://www.famfamfam.com/lab/icons/silk/> 22 # 23 # ***** END LICENSE BLOCK ***** 12 24 13 25 class myUrlHandlers … … 82 94 } 83 95 } 84 ?> -
plugins/info/inc/lib.info.php
r3312 r3392 3 3 # 4 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007 ,2008,2009,2010Moe (http://gniark.net/)5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 6 # 7 7 # Informations is free software; you can redistribute it and/or … … 151 151 $dotclear_tables = array('blog','category','session', 152 152 'setting','user','permissions','post','media','post_media', 153 'log','version','ping','comment','meta' );153 'log','version','ping','comment','meta','pref'); 154 154 155 155 $default_plugins_tables = array( -
plugins/info/index.php
r3312 r3392 3 3 # 4 4 # This file is part of Informations, a plugin for Dotclear 2 5 # Copyright 2007 ,2008,2009Moe (http://gniark.net/)5 # Copyright 2007-2015 Moe (http://gniark.net/) 6 6 # 7 7 # Informations is free software; you can redistribute it and/or … … 24 24 25 25 if (!defined('DC_CONTEXT_ADMIN')) {return;} 26 27 l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/admin');28 26 29 27 require_once(dirname(__FILE__).'/php-xhtml-table/class.table.php'); … … 56 54 <body> 57 55 <?php 58 if (is_callable(array('dcPage', 'breadcrumb')))59 {60 56 echo dcPage::breadcrumb( 61 57 array( … … 63 59 '<span class="page-title">'.$page_title.'</span>' => '' 64 60 )); 65 }66 else67 {68 echo('<h2>'.$page_title.'</h2>');69 }70 61 ?> 71 72 <h3><?php echo(__('Legend:')); ?></h3>73 <p><?php echo(info::yes().__('ok').', '.info::no().__('error')); ?></p>74 62 75 63 <div class="multi-part" id="blog" title="<?php echo __('Blog'); ?>"> … … 197 185 } 198 186 ?> 187 188 <p style="padding-left:1em;"><strong><?php echo(__('Legend:')); ?></strong><br /> 189 <?php echo(info::yes().__('ok')); ?><br /><?php echo(info::no().__('error')); ?></p> 199 190 200 191 </body>
Note: See TracChangeset
for help on using the changeset viewer.