Ignore:
Timestamp:
Sep 20, 2013, 7:22:00 PM (11 years ago)
Author:
ddtddt
Message:

[extensions] PersoFavicon - access only webmaster

Location:
extensions/PersoFavicon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/PersoFavicon/admin/admin.php

    r19391 r24550  
    1414//-------------------------------------------------------- sections definitions
    1515
    16 // Gestion des onglets
     16          if (!is_webmaster())
     17  {
     18    array_push($page['errors'], l10n('This section is reserved for the webmaster'));
     19  }
     20  else
     21  {
     22// Gest Tab
    1723if (!isset($_GET['tab']))
    1824    $page['tab'] = 'pfi';
     
    7076                break;
    7177        }
    72 
    7378       
    7479$taille_maxi = 5120;
     
    99104        }
    100105  array_push( $page['infos'], l10n('pfi_ok') );
    101 
    102 
    103106}
    104  
    105     break;
     107  break;
    106108
    107109  case 'help':
     
    116118       
    117119}
    118 
    119120$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl'));
    120121$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     122}
    121123?>
  • extensions/PersoFavicon/language/en_UK/plugin.lang.php

    r19729 r24550  
    11<?php
     2
     3$lang['This section is reserved for the webmaster'] = 'This section is reserved for the webmaster';
    24
    35//tab add
  • extensions/PersoFavicon/language/fr_FR/plugin.lang.php

    r22575 r24550  
    11<?php
     2
     3$lang['This section is reserved for the webmaster'] = 'Cette section est réservée au webmaster';
    24
    35//tab add
Note: See TracChangeset for help on using the changeset viewer.