Last change
on this file since 9383 was
9383,
checked in by patdenice, 13 years ago
|
Add display option. Optimizations.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[9369] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | // Retrieve module data |
---|
| 6 | $q = ('SELECT * FROM ' . STUFFS_TABLE . ' WHERE id = ' . $_GET['edit'] . ';'); |
---|
| 7 | $module = mysql_fetch_array(pwg_query($q)); |
---|
| 8 | |
---|
| 9 | $module['users'] = explode(',', $module['users']); |
---|
| 10 | $module['groups'] = explode(',', $module['groups']); |
---|
| 11 | |
---|
| 12 | $datas = (!empty($module['datas']) ? unserialize($module['datas']) : false); |
---|
| 13 | |
---|
| 14 | $template->assign(array( |
---|
| 15 | 'STUFFS_TITLE' => l10n('stuffs_edit_mod') . ' <i>' . trigger_event('render_stuffs_name', $module['name']) . '</i>', |
---|
| 16 | 'MODULE_NAME' => $module['name'], |
---|
| 17 | 'DESC_VALUE' => (isset($module['descr']) ? $module['descr'] : ''), |
---|
[9383] | 18 | 'show_title_CHECKED' => ($module['show_title'] == 'true'), |
---|
[9369] | 19 | ) |
---|
| 20 | ); |
---|
| 21 | |
---|
[9383] | 22 | $template->assign('selected_options', array( |
---|
| 23 | 'on_home' => ($module['on_home'] == 'true'), |
---|
| 24 | 'on_root' => ($module['on_root'] == 'true'), |
---|
| 25 | 'on_cats' => ($module['on_cats'] == 'true'), |
---|
| 26 | 'on_picture' => ($module['on_picture'] == 'true'), |
---|
| 27 | ) |
---|
| 28 | ); |
---|
| 29 | |
---|
[9369] | 30 | $module_path = $module['path']; |
---|
| 31 | |
---|
[9383] | 32 | include('add_module.inc.php'); |
---|
[9369] | 33 | |
---|
| 34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.