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
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5//Ajout d'un module
6if (isset($_POST['addModule']))
7{
8  if (!isset($_POST['module']))
9  {
10    array_push($page['errors'], l10n('stuffs_error_no_mod_selected'));
11  }
12  else
13  {
14    redirect($my_base_url.'-add_module&path=' . urlencode($_POST['module']));
15  }
16}
17
18// Affichages des modules à ajouter
19foreach($modules as $module)
20{
21  $template->append('add_module', array(
22    'MODULE_PATH' => $module['path'],
23    'NAME' => $module['name'],
24    'DESC' => $module['description'],
25    )
26  );
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');
31?>
Note: See TracBrowser for help on using the repository browser.