Dotclear

Changeset 459


Ignore:
Timestamp:
06/27/08 10:30:18 (15 years ago)
Author:
sacha
Message:

Ajout des vérifications pour éviter l'exécution des plugins en dehors de Dotclear

Location:
plugins
Files:
139 edited

Legend:

Unmodified
Added
Removed
  • plugins/arlequin/_admin.php

    r355 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem(__('Theme switcher'),'plugin.php?p=arlequin', 
  • plugins/arlequin/_define.php

    r391 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
    18      /* Name */          "Arlequin", 
    19      /* Description*/    "Allows visitors choose a theme", 
    20      /* Author */        "Oleksandr Syenchuk", 
     19     /* Name */          'Arlequin', 
     20     /* Description*/    'Allows visitors choose a theme', 
     21     /* Author */        'Oleksandr Syenchuk', 
    2122     /* Version */       '1.0', 
    2223     /* Permissions */   'contentadmin' 
  • plugins/arlequin/_public.php

    r353 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718/** @doc 
  • plugins/arlequin/forms.php

    r353 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$mt_forms = array(); 
  • plugins/arlequin/index.php

    r308 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/arlequin/models.php

    r272 r459  
    2121$mt_models[] = array( 
    2222     'name'=>__('Model name'),     // Nom du modèle prédéfini, éventuellement 
    23                                         // traduit dans un fichier de langue 
    24      's_html'=>'[HTML code]', // Code HTML du sélecteur de thème 
    25      'e_html'=>'[HTML code]', // Code HTML d'un item pouvant être sélectionné 
     23                                   // traduit dans un fichier de langue 
     24     's_html'=>'[HTML code]',      // Code HTML du sélecteur de thème 
     25     'e_html'=>'[HTML code]',      // Code HTML d'un item pouvant être sélectionné 
    2626     'a_html'=>'[HTML code]'       // Code HTML d'un item actif (thème sélectionné) 
    2727); 
  • plugins/blocNotes/_admin.php

    r455 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    24      require_once(dirname(__FILE__).'/lib.blocNotes.php'); 
     25require_once(dirname(__FILE__).'/lib.blocNotes.php'); 
    2526 
    26      # dashboard 
    27      if ($core->auth->check('usage,contentadmin',$core->blog->id)) 
    28      { 
    29           # <= 2.0-beta7 
    30           if (isset($__dashboard_icons)) { 
    31                $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon-big.png'); 
    32           } 
    33           # > 2.0-beta7 
    34           $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 
     27# dashboard 
     28if ($core->auth->check('usage,contentadmin',$core->blog->id)) 
     29{ 
     30     # <= 2.0-beta7 
     31     if (isset($__dashboard_icons)) { 
     32          $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon-big.png'); 
    3533     } 
     34     # > 2.0-beta7 
     35     $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 
     36} 
    3637 
    37      # post 
    38      $core->addBehavior('adminPostForm',array('blocNotes','form')); 
    39      $core->addBehavior('adminAfterPostCreate',array('blocNotes','putSettings')); 
    40      $core->addBehavior('adminAfterPostUpdate',array('blocNotes','putSettings')); 
    41      $core->addBehavior('adminPostHeaders',array('blocNotes','adminPostHeaders')); 
     38# post 
     39$core->addBehavior('adminPostForm',array('blocNotes','form')); 
     40$core->addBehavior('adminAfterPostCreate',array('blocNotes','putSettings')); 
     41$core->addBehavior('adminAfterPostUpdate',array('blocNotes','putSettings')); 
     42$core->addBehavior('adminPostHeaders',array('blocNotes','adminPostHeaders')); 
    4243 
    43      $_menu['Plugins']->addItem(__('Notebook'), 
    44      'plugin.php?p=blocNotes', 
    45      'index.php?pf=blocNotes/icon.png', 
    46      preg_match('/plugin.php\?p=blocNotes(&.*)?$/',$_SERVER['REQUEST_URI']), 
    47      $core->auth->check('usage,contentadmin',$core->blog->id)); 
     44$_menu['Plugins']->addItem(__('Notebook'), 
     45'plugin.php?p=blocNotes', 
     46'index.php?pf=blocNotes/icon.png', 
     47preg_match('/plugin.php\?p=blocNotes(&.*)?$/',$_SERVER['REQUEST_URI']), 
     48$core->auth->check('usage,contentadmin',$core->blog->id)); 
    4849?> 
  • plugins/blocNotes/_define.php

    r455 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/blocNotes/index.php

    r455 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
    24      if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2524 
    2625     try 
  • plugins/bloganniv/_admin.php

    r325 r459  
    2121# ***** END LICENSE BLOCK ***** 
    2222# 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    2425$core->addBehavior('initWidgets',array('blogAnnivBehaviors','initWidgets')); 
  • plugins/bloganniv/_define.php

    r325 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 # 
     22if (!defined('DC_RC_PATH')) { return; } 
     23 
    2324$this->registerModule( 
    2425     /* Name */                    "Blog Anniv", 
  • plugins/bloganniv/_public.php

    r325 r459  
    2121# ***** END LICENSE BLOCK ***** 
    2222# 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$core->tpl->addValue('blogAnniv',array('tplBlogAnniv','blogAnniv')); 
  • plugins/carnaval/_admin.php

    r320 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem(__('CSS Classes for comments'), 
  • plugins/carnaval/_define.php

    r358 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/carnaval/_install.php

    r329 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16  
    17 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1817 
    1918# On lit la version du plugin 
  • plugins/carnaval/_prepend.php

    r358 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['dcCarnaval'] = dirname(__FILE__).'/class.dc.carnaval.php'; 
  • plugins/carnaval/_public.php

    r358 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718# On surchage les fonctions template 
  • plugins/carnaval/edit.php

    r359 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16  
    17 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1817 
    1918$id = $_REQUEST['id']; 
  • plugins/carnaval/forms.php

    r328 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$forms = array(); 
  • plugins/carnaval/index.php

    r359 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16  
    17 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1817 
    1918if (!empty($_REQUEST['edit']) && !empty($_REQUEST['id'])) { 
  • plugins/compress/_admin.php

    r386 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    2425$_menu['Plugins']->addItem(__('CompreSS'),'plugin.php?p=compress', 
  • plugins/compress/_define.php

    r394 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/compress/_install.php

    r396 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    2425# On lit la version du plugin 
  • plugins/compress/index.php

    r396 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
    24 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2524 
    2625     require_once(dirname(__FILE__).'/class.table.php'); 
  • plugins/dcom/_admin.php

    r407 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$core->addBehavior('initWidgets',array('adminDcom','initWidget')); 
  • plugins/dcom/_define.php

    r407 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/dcom/_prepend.php

    r407 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718class commonDcom 
  • plugins/dcom/_public.php

    r407 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->tpl->addValue('showDcom',array('publicDcom','showTpl')); 
  • plugins/dcpoll/_admin.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem(__('Polls'),'plugin.php?p=dcpoll', 
  • plugins/dcpoll/_define.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
    18      /* Name */          "DC Poll", 
    19      /* Description*/    "Create a pool on you blog", 
    20      /* Author */        "Oleksandr Syenchuk", 
     19     /* Name */          'DC Poll', 
     20     /* Description*/    'Create a pool on you blog', 
     21     /* Author */        'Oleksandr Syenchuk', 
    2122     /* Version */       '0.3', 
    2223     /* Permissions */   'usage,contentadmin' 
  • plugins/dcpoll/_install.php

    r393 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'dcpoll'; 
  • plugins/dcpoll/_public.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16  
     16if (!defined('DC_RC_PATH')) { return; } 
    1717 
    1818?> 
  • plugins/dcpoll/forms.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$poll_forms = array(); 
  • plugins/dcpoll/index.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/emailOptionnel/_admin.php

    r284 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$core->addBehavior('adminBlogPreferencesForm', 
  • plugins/emailOptionnel/_define.php

    r344 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718# WARNING : 
     
    2223 
    2324$this->registerModule( 
    24      /* Name */          "Email Optionnel", 
    25      /* Description*/    "Make e-mail address optional in comments", 
    26      /* Author */        "Oleksandr Syenchuk", 
     25     /* Name */          'Email Optionnel', 
     26     /* Description*/    'Make e-mail address optional in comments', 
     27     /* Author */        'Oleksandr Syenchuk', 
    2728     /* Version */       '0.4.2', 
    2829     /* Permissions */   'usage,contentadmin' 
  • plugins/emailOptionnel/_prepend.php

    r284 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$GLOBALS['__autoload']['emailOptionnelBehaviors'] = dirname(__FILE__).'/behaviors.php'; 
  • plugins/emailOptionnel/_public.php

    r284 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->addBehavior('publicPrepend', 
  • plugins/empreinte/_admin.php

    r335 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem( 
  • plugins/empreinte/_define.php

    r406 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/empreinte/_install.php

    r399 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'empreinte'; 
  • plugins/empreinte/_prepend.php

    r324 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$GLOBALS['__autoload']['rsExtCommentEmpreinte'] = dirname(__FILE__).'/rs.extensions.php'; 
  • plugins/empreinte/_public.php

    r324 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->addBehavior('publicBeforeCommentCreate',array('publicEmpreinte','publicBeforeCommentCreate')); 
  • plugins/empreinte/class.public.empreinte.php

    r351 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
     17 
    1618$GLOBALS['core']->addBehavior('templateBeforeValue',array('publicEmpreinte','templateBeforeValue')); 
    1719 
  • plugins/empreinte/forms.php

    r337 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_forms = array(); 
  • plugins/empreinte/index.php

    r337 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/httpredirect/_admin.php

    r439 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$core->addBehavior('adminPostHeaders',array('adminHttpRedirect','js')); 
  • plugins/httpredirect/_define.php

    r439 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/httpredirect/_install.php

    r352 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'httpredirect'; 
  • plugins/httpredirect/_public.php

    r439 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->url->register('post', 
  • plugins/info/_admin.php

    r456 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    2425$_menu['Plugins']->addItem(__('Informations'),'plugin.php?p=info','index.php?pf=info/icon.png', 
  • plugins/info/_define.php

    r458 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/info/index.php

    r458 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
    24 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2524 
    2625require_once(dirname(__FILE__).'/php-xhtml-table/class.table.php'); 
  • plugins/jabberNotifications/_admin.php

    r412 r459  
    1515 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1616\***************************************************************/ 
     17if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1718 
    1819$_menu['Plugins']->addItem(__('Jabber notifications'),'plugin.php?p=jabberNotifications', 
  • plugins/jabberNotifications/_define.php

    r412 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/jabberNotifications/_install.php

    r410 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'jabberNotifications'; 
  • plugins/jabberNotifications/_prepend.php

    r412 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['Jabber'] = dirname(__FILE__).'/lib/class_Jabber.php'; 
  • plugins/jabberNotifications/_public.php

    r412 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->addBehavior('publicAfterCommentCreate', array('publicJabberNotifications', 'sendNotifications')); 
  • plugins/jabberNotifications/forms.php

    r412 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$jn_mode = empty($jn_mode) ? 'config' : $jn_mode; 
  • plugins/jabberNotifications/index.php

    r410 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718dcPage::checkSuper(); 
  • plugins/latestPosts/_admin.php

    r326 r459  
    2525# visible sur http://www.forx.fr/post/2006/07/07/Doctclear-2-%3A-creation-de-plugin-premiere-partie 
    2626# 
     27if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2728 
    2829$core->addBehavior('initWidgets',array('lastestPostsBehaviors','initWidgets')); 
  • plugins/latestPosts/_define.php

    r326 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 # 
     22if (!defined('DC_RC_PATH')) { return; } 
     23 
    2324# D'après le plugin LastComment de Vincent Simonin et un billet de documentation  
    2425# plugin du même auteur  
  • plugins/latestPosts/_public.php

    r326 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 # 
     22if (!defined('DC_RC_PATH')) { return; } 
     23 
    2324# D'apr� le plugin LastComment de Vincent Simonin et un billet de documentation  
    2425# plugin du m�e auteur  
  • plugins/livecounter/_admin.php

    r282 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$core->addBehavior('initWidgets',array('adminLiveCounter','initWidget')); 
  • plugins/livecounter/_define.php

    r293 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
    18      /* Name */          "Live Counter", 
    19      /* Description*/    "Show the number of connected visitors on the blog", 
    20      /* Author */        "Oleksandr Syenchuk", 
     19     /* Name */          'Live Counter', 
     20     /* Description*/    'Show the number of connected visitors on the blog', 
     21     /* Author */        'Oleksandr Syenchuk', 
    2122     /* Version */       '1.1.1', 
    2223     /* Permissions */   'contentadmin' 
  • plugins/livecounter/_install.php

    r274 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'livecounter'; 
  • plugins/livecounter/_prepend.php

    r282 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['connectedCounter'] = dirname(__FILE__).'/class.connectedcounter.php'; 
  • plugins/livecounter/_public.php

    r290 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$core->addBehavior('publicBeforeDocument',array('publicLiveCounter','adjustCache')); 
  • plugins/menuFreshy/_admin.php

    r323 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2223 
    2324if (isset($__dashboard_icons) && $core->auth->check('menuFreshy',$core->blog->id)) { 
  • plugins/menuFreshy/_define.php

    r365 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
     22if (!defined('DC_RC_PATH')) { return; } 
    2223 
    2324$this->registerModule( 
  • plugins/menuFreshy/_install.php

    r323 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2323 
    2424$version = $core->plugins->moduleInfo('menuFreshy','version'); 
  • plugins/menuFreshy/_public.php

    r365 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
     22if (!defined('DC_RC_PATH')) { return; } 
    2223 
    2324# Menu template functions 
  • plugins/menuFreshy/edit.php

    r323 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2323 
    2424$id = $_REQUEST['id']; 
  • plugins/menuFreshy/index.php

    r323 r459  
    2020# 
    2121# ***** END LICENSE BLOCK ***** 
    22 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2323 
    2424require dirname(__FILE__).'/class.dc.blogmenu.php'; 
  • plugins/metaImage/_admin.php

    r414 r459  
    11<?php 
     2if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     3 
    24$_menu['Plugins']->addItem(__('Meta Image'),'plugin.php?p=metaImage', 
    35     'index.php?pf=metaImage/icon.png', 
  • plugins/metaImage/_define.php

    r414 r459  
    11<?php 
     2if (!defined('DC_RC_PATH')) { return; } 
     3 
    24$this->registerModule( 
    35     /* Name */          'Meta Image', 
  • plugins/metaImage/_install.php

    r414 r459  
    11<?php 
    2 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     2if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    33 
    44$label = 'metaImage'; 
  • plugins/metaImage/_prepend.php

    r349 r459  
    11<?php 
     2if (!defined('DC_RC_PATH')) { return; } 
     3 
    24/* sera lu après la création des objets, mais avant l'affichage. */ 
    35?> 
  • plugins/metaImage/_public.php

    r414 r459  
    11<?php 
     2if (!defined('DC_RC_PATH')) { return; } 
     3 
    24$core->tpl->addValue('MetaImage',array('tplMetaImageTpl','MetaImage')); 
    35 
  • plugins/metaImage/index.php

    r414 r459  
    11<?php 
     2if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    23 
    34$label = 'metaImage'; 
  • plugins/miniseo/_define.php

    r364 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/miniseo/_public.php

    r364 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$core->tpl->addValue('MiniSEO', array('tplMiniSEO', 'MetaMiniSEO')); 
  • plugins/myUrlHandlers/_admin.php

    r443 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem(__('URL handlers'),'plugin.php?p=myUrlHandlers',null, 
  • plugins/myUrlHandlers/_define.php

    r443 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/myUrlHandlers/_install.php

    r446 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = basename(dirname(__FILE__)); 
  • plugins/myUrlHandlers/_prepend.php

    r443 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['myUrlHandlers'] = dirname(__FILE__).'/class.myurlhandlers.php'; 
  • plugins/myUrlHandlers/index.php

    r443 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/myfavicon/_admin.php

    r421 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$core->addBehavior('adminBlogPreferencesHeaders', array('myFavicon', 'adminBlogPreferencesHeaders')); 
  • plugins/myfavicon/_define.php

    r421 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/myfavicon/_install.php

    r426 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'myfavicon'; 
  • plugins/myfavicon/_public.php

    r425 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718if (is_callable('dcTemplate','SysBehavior')) { 
  • plugins/mymeta/_admin.php

    r415 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2324 
    2425require (dirname(__FILE__).'/class.mymeta.php'); 
  • plugins/mymeta/_define.php

    r408 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/mymeta/_prepend.php

    r408 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425 
  • plugins/mymeta/_public.php

    r408 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
     23if (!defined('DC_RC_PATH')) { return; } 
    2424 
    2525$core->tpl->addValue('MetaType',array('tplMyMeta','MetaType')); 
  • plugins/mymeta/class.mymetalists.php

    r357 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
    2423 
    2524class adminMymetaList  
  • plugins/mymeta/index.php

    r357 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
    24 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2524 
    2625$mymeta = new myMeta($core); 
  • plugins/mymeta/index_edit.php

    r357 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23  
    24 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2524 
    2625require DC_ROOT.'/inc/admin/lib.pager.php'; 
  • plugins/mymeta/index_home.php

    r408 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
    23 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2424 
    2525require DC_ROOT.'/inc/admin/lib.pager.php'; 
  • plugins/notEvilAds/_admin.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem(__('Not Evil Ads'),'plugin.php?p=notEvilAds', 
  • plugins/notEvilAds/_define.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
    18      /* Name */               "Not Evil Ads", 
    19      /* Description */   "Add not evil ads to your site :)", 
    20      /* Author */        "Oleksandr Syenchuk", 
     19     /* Name */          'Not Evil Ads', 
     20     /* Description */   'Add not evil ads to your site :)', 
     21     /* Author */        'Oleksandr Syenchuk', 
    2122     /* Version */       '1.0.1-beta', 
    2223     /* Permissions */   'contentadmin'); 
  • plugins/notEvilAds/_install.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16  
    17 /* 
    18      Ce fichier a été créé uniquement dans le but 
    19      de permettre à des prochaines version du plugin 
    20      Not Evil Ads d'effectuer des mises à jour automatiques 
    21      sans perte de données. 
    22 */ 
    23  
    24 if (!defined('DC_CONTEXT_ADMIN')) 
    25      exit; 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2617 
    2718$nea_Pversion = $core->plugins->moduleInfo('notEvilAds','version'); 
  • plugins/notEvilAds/_public.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718include_once dirname(__FILE__).'/lib/class.notevilads.php'; 
  • plugins/notEvilAds/_widgets.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718include_once dirname(__FILE__).'/lib/class.notevilads.php'; 
  • plugins/notEvilAds/forms.php

    r271 r459  
    11<?php 
     2if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    23 
    34if ($fatal_error) 
  • plugins/notEvilAds/index.php

    r271 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/postMaker/trunk/_admin.php

    r400 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2122 
    2223$__autoload['PostMakerSettings'] = dirname(__FILE__).'/PostMakerSettings.php'; 
  • plugins/postMaker/trunk/_define.php

    r400 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223$this->registerModule( 
  • plugins/postMaker/trunk/index.php

    r400 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
    21  
     21if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2222 
    2323dcPage::check('usage,contentadmin'); 
  • plugins/previewpost/_admin.php

    r361 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     24 
    2325require dirname(__FILE__).'/_widgets.php'; 
    2426 
  • plugins/previewpost/_define.php

    r361 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$this->registerModule( 
  • plugins/previewpost/_prepend.php

    r361 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$GLOBALS['core']->url->register('preview','preview','^preview/(.+)$',array('urlPreview','post')); 
  • plugins/previewpost/_public.php

    r361 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425require dirname(__FILE__).'/_widgets.php'; 
  • plugins/previewpost/_widgets.php

    r361 r459  
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     23if (!defined('DC_RC_PATH')) { return; } 
    2324 
    2425$core->addBehavior('initWidgets',array('previewWidgets','initWidgets')); 
  • plugins/remotelatex/_admin.php

    r448 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$_menu['Plugins']->addItem('LaTeX','plugin.php?p=remotelatex',null, 
  • plugins/remotelatex/_define.php

    r449 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718# WARNING : 
  • plugins/remotelatex/_prepend.php

    r448 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['remoteLatex'] = dirname(__FILE__).'/class.remotelatex.php'; 
  • plugins/remotelatex/_public.php

    r448 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718# Doesn't work well at all - see ticket #243 of Dotclear's Trac 
  • plugins/remotelatex/forms.php

    r449 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$forms = array(); 
  • plugins/remotelatex/index.php

    r448 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718try 
  • plugins/retrocontrol/_define.php

    r440 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$this->registerModule( 
  • plugins/retrocontrol/_install.php

    r438 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718$label = 'retrocontrol'; 
  • plugins/retrocontrol/_prepend.php

    r438 r459  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718$__autoload['dcFilterRetrocontrol'] = dirname(__FILE__).'/class.dc.filter.retrocontrol.php'; 
  • plugins/showip/_define.php

    r339 r459  
    1 <?php $this->registerModule('showip','Shows visitors IP address','Oleksandr Syenchuk','0.1','usage'); ?> 
     1<?php 
     2# This file is in public domain 
     3 
     4if (!defined('DC_RC_PATH')) { return; } 
     5 
     6$this->registerModule('showip','Shows visitors IP address','Oleksandr Syenchuk','0.1','usage'); 
     7?> 
  • plugins/showip/_public.php

    r339 r459  
    1 <?php $core->tpl->addValue('UserIP',array('publicShowip','tplUserIP')); class publicShowip { public static function tplUserIP() { return '<?php echo $_SERVER[\'REMOTE_ADDR\']; ?>'; } } ?> 
     1<?php 
     2# This file is in public domain. 
     3if (!defined('DC_RC_PATH')) { return; } 
     4 
     5$core->tpl->addValue('UserIP',array('publicShowip','tplUserIP')); 
     6 
     7class publicShowip 
     8{ 
     9     public static function tplUserIP() 
     10     { 
     11          return '<?php echo $_SERVER[\'REMOTE_ADDR\']; ?>'; 
     12     } 
     13} 
     14?> 
  • plugins/simpleWebsite/trunk/_admin.php

    r372 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2122 
    2223$core->addBehavior('adminPostFormSidebar',array('SimpleWebsite','displayForm')); 
  • plugins/simpleWebsite/trunk/_define.php

    r372 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223$this->registerModule( 
  • plugins/simpleWebsite/trunk/_public.php

    r372 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223require_once($core->plugins->moduleRoot("simpleWebsite")."/tools.php"); 
  • plugins/simpleWebsite/trunk/define_urls.php

    r370 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223define('SIMPLEWEBSITE_SECTION', 'section'); 
  • plugins/simpleWebsite/trunk/tools.php

    r372 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223require_once($core->plugins->moduleRoot("simpleWebsite")."/define_urls.php"); 
  • plugins/subscribeToComments/_admin.php

    r420 r459  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
     25if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2526 
    2627$_menu['Plugins']->addItem(__('Subscribe to comments'), 
  • plugins/subscribeToComments/_define.php

    r454 r459  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
    25  
     25if (!defined('DC_RC_PATH')) { return; } 
    2626 
    2727$this->registerModule( 
  • plugins/subscribeToComments/_install.php

    r452 r459  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
     25if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2526 
    2627# On lit la version du plugin 
  • plugins/subscribeToComments/_public.php

    r454 r459  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
     25if (!defined('DC_RC_PATH')) { return; } 
    2526 
    2627     function subscribeToCommentsIsActive($attr,$content) 
  • plugins/subscribeToComments/default_settings.php

    r453 r459  
    11<?php  
     2if (!defined('DC_RC_PATH')) { return; } 
    23 
    34     $settings = new dcSettings($core,$core->blog->id); 
  • plugins/subscribeToComments/index.php

    r453 r459  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
    25  
    26      if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
     25if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2726 
    2827     # format tables' tbody 
  • plugins/templateWidget/trunk/_admin.php

    r379 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2122 
    2223$core->addBehavior('initWidgets',array('templateWidgetAdmin','InitWidgets')); 
  • plugins/templateWidget/trunk/_define.php

    r379 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223$this->registerModule( 
  • plugins/templateWidget/trunk/_public.php

    r379 r459  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
    2122 
    2223$core->tpl->addBlock('WidgetName',array('templateWidgetBlocksAndValues','Name')); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map