source: extensions/PWG_Stuffs/trunk/admin/new.inc.php @ 9738

Last change on this file since 9738 was 9738, checked in by patdenice, 14 years ago

New admin URL.

File size: 724 bytes
RevLine 
[3609]1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
[9369]5//Ajout d'un module
[9737]6if (isset($_POST['addModule']))
[9369]7{
8  if (!isset($_POST['module']))
9  {
10    array_push($page['errors'], l10n('stuffs_error_no_mod_selected'));
11  }
12  else
13  {
[9738]14    redirect($my_base_url.'-add_module&path=' . urlencode($_POST['module']));
[9369]15  }
16}
17
[3609]18// Affichages des modules à ajouter
19foreach($modules as $module)
20{
[9369]21  $template->append('add_module', array(
22    'MODULE_PATH' => $module['path'],
[3609]23    'NAME' => $module['name'],
[9369]24    'DESC' => $module['description'],
25    )
26  );
[3609]27}
28
29$template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/new.tpl');
30$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
[3300]31?>
Note: See TracBrowser for help on using the repository browser.