Changeset 9275 for extensions/AdditionalPages/admin/config.inc.php
- Timestamp:
- Feb 18, 2011, 5:15:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/admin/config.inc.php
r9273 r9275 8 8 if (isset($_POST['submit'])) 9 9 { 10 if (!$conf['additional_pages']['user_perm'] and isset($_POST['user_perm'])) 11 { 12 pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET users = "guest,generic,normal" WHERE users IS NULL;'); 13 } 14 if ($conf['additional_pages']['user_perm'] and !isset($_POST['user_perm'])) 15 { 16 pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET users = NULL;'); 17 } 18 if ($conf['additional_pages']['group_perm'] and !isset($_POST['group_perm'])) 19 { 20 pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET groups = NULL;'); 21 } 22 10 23 $params = array('show_home', 'group_perm', 'user_perm'); 11 24
Note: See TracChangeset
for help on using the changeset viewer.