Dotclear


Ignore:
Timestamp:
03/10/10 08:58:31 (14 years ago)
Author:
Osku
Message:

Plugin private : update to last version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/private/_admin.php

    r1768 r2117  
    44# This file is part of Private mode, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2008-2009 Osku and contributors 
    7 ## Licensed under the GPL version 2.0 license. 
     6# Copyright (c) 2008-2010 Osku and contributors 
     7# 
     8# Licensed under the GPL version 2.0 license. 
    89# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     
    1718          preg_match('/plugin.php\?p=private(&.*)?$/',$_SERVER['REQUEST_URI']), 
    1819          $core->auth->check('admin',$core->blog->id)); 
     20           
     21if ($core->blog->settings->private_flag) 
     22{ 
     23     $core->addBehavior('adminPageHTMLHead','privateadminPageHTMLHead'); 
     24     $core->addBehavior('adminDashboardItems', 'privateDashboardItems');  
     25} 
     26 
     27function privateDashboardItems($core,$__dashboard_items) 
     28{ 
     29     $__dashboard_items[1][] = '<p class="private-msg">'.__('Private blog').'.</p>'; 
     30} 
     31 
     32function privateadminPageHTMLHead() 
     33{ 
     34     echo '  <style type="text/css">'."\n".'  @import "index.php?pf=private/css/admin.css";'."\n".'  </style>'."\n"; 
     35} 
    1936?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map