Changeset 20088 for extensions/Piwecard/admin.php
- Timestamp:
- Jan 12, 2013, 12:57:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/admin.php
r20059 r20088 11 11 // | Tabsheet 12 12 // +-----------------------------------------------------------------------+ 13 if (empty($conf['Ecard_tabs'])) { 14 $conf['Ecard_tabs'] = array('authorizations', 'configuration', 'management'); 15 } 13 $piwecard_tabs = array('permissions', 'configuration', 'management'); 16 14 17 $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : $conf['Ecard_tabs'][0]; 15 if (isset($_GET['tab'])) 16 $page['tab'] = $_GET['tab']; 17 else 18 $page['tab'] = $piwecard_tabs[0]; 18 19 19 if (!in_array($page['tab'], $conf['Ecard_tabs'])) die('Hacking attempt!'); 20 if (!in_array($page['tab'], $piwecard_tabs) 21 die('Hacking attempt!'); 20 22 21 23 $tabsheet = new tabsheet(); 22 foreach ($ conf['Ecard_tabs']as $tab) {24 foreach ($piwecard_tabs as $tab) { 23 25 $tabsheet->add($tab, l10n('piwecard_admin_'.$tab), PIWECARD_ADMIN.'-'.$tab); 24 26 }
Note: See TracChangeset
for help on using the changeset viewer.