Changeset 9575
- Timestamp:
- Mar 8, 2011, 4:33:19 PM (14 years ago)
- Location:
- extensions/PWG_Stuffs/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/admin/add_module.inc.php
r9410 r9575 35 35 $users = !empty($_POST['users']) ? '"' . implode(',', $_POST['users']) . '"' : '""'; 36 36 } 37 $level = !empty($_POST['level']) ? $_POST['level'] : 0; 37 38 $show_title = isset($_POST['show_title']) ? '"true"' : '"false"'; 38 39 $on_home = isset($_POST['on_home']) ? '"true"' : '"false"'; … … 52 53 users=' . $users . ', 53 54 groups=' . $groups . ', 55 level=' . $level . ', 54 56 show_title=' . $show_title .', 55 57 on_home=' . $on_home .', … … 72 74 73 75 $query = ' 74 INSERT INTO ' . STUFFS_TABLE . ' ( id, pos, name, descr, path, datas, users, groups, show_title, on_home, on_root, on_cats, on_picture, id_line, width )76 INSERT INTO ' . STUFFS_TABLE . ' ( id, pos, name, descr, path, datas, users, groups, level, show_title, on_home, on_root, on_cats, on_picture, id_line, width ) 75 77 VALUES (' . $next_element_id . ' , 76 78 ' . $pos . ', … … 81 83 ' . $users . ', 82 84 ' . $groups . ', 85 ' . $level . ', 83 86 ' . $show_title . ', 84 87 ' . $on_home . ', -
extensions/PWG_Stuffs/admin/config.inc.php
r9383 r9575 23 23 pwg_query('UPDATE '.STUFFS_TABLE.' SET groups = NULL;'); 24 24 } 25 if ($conf['Stuffs']['level_perm'] and !isset($_POST['level_perm'])) 26 { 27 pwg_query('UPDATE '.STUFFS_TABLE.' SET level = 0;'); 28 } 25 29 26 30 $params = array('group_perm', 'user_perm', 'level_perm');
Note: See TracChangeset
for help on using the changeset viewer.