Changeset 9369 for extensions/PWG_Stuffs/admin/new.php
- Timestamp:
- Feb 24, 2011, 4:45:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/admin/new.php
r3609 r9369 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 //Ajout d'un module 6 if (isset($_POST['addModule']) and !is_adviser()) 7 { 8 if (!isset($_POST['module'])) 9 { 10 array_push($page['errors'], l10n('stuffs_error_no_mod_selected')); 11 } 12 else 13 { 14 redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php&tab=add_module&path=' . urlencode($_POST['module'])); 15 } 16 } 17 5 18 // Affichages des modules à ajouter 6 19 foreach($modules as $module) 7 20 { 8 9 'MODULE ' => $module['type'],21 $template->append('add_module', array( 22 'MODULE_PATH' => $module['path'], 10 23 'NAME' => $module['name'], 11 'DESC' => $module['description'])); 24 'DESC' => $module['description'], 25 ) 26 ); 12 27 } 13 28
Note: See TracChangeset
for help on using the changeset viewer.