Ignore:
Timestamp:
Sep 17, 2013, 10:12:09 AM (11 years ago)
Author:
ddtddt
Message:

[extensions] PersoFooter - add message update and access only webmaster

File:
1 edited

Legend:

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

    r14972 r24492  
    1212
    1313//-------------------------------------------------------- sections definitions
     14
     15          if (!is_webmaster())
     16  {
     17    array_push($page['errors'], l10n('This section is reserved for the webmaster'));
     18  }
     19  else
     20  {
    1421
    1522// Gestion des onglets
     
    4350    'gestA',
    4451    array('PFTBASE' => stripslashes($_POST['perso_footer']),));
     52        array_push($page['infos'], l10n('Configuration update'));
    4553        }
    4654  break;
     
    4957    'gestB',
    5058        array('meta'=>l10n('nul'),));
     59       
    5160  break;
    52 } 
     61}
    5362
    5463$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl'));
    5564$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     65}
    5666?>
Note: See TracChangeset for help on using the changeset viewer.