Changeset 9546
- Timestamp:
- Mar 5, 2011, 5:21:54 PM (14 years ago)
- Location:
- extensions/AdditionalPages/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/admin/add_page.inc.php
r9350 r9546 2 2 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 5 $default_user = get_default_user_info(true);6 4 7 5 if (!isset($edited_page)) … … 16 14 'homepage' => false, 17 15 'standalone' => false, 18 'level' => $default_user['level'],16 'level' => 0, 19 17 'users' => array('guest', 'generic', 'normal', 'admin', 'webmaster'), 20 18 'groups' => array(), … … 62 60 } 63 61 64 $level_access = !empty($_POST['level']) ? $_POST['level'] : $default_user['level'];62 $level_access = !empty($_POST['level']) ? $_POST['level'] : 0; 65 63 66 64 if (empty($page['errors'])) … … 132 130 $edited_page['groups'] = !empty($_POST['groups']) ? $_POST['groups'] : array(); 133 131 $edited_page['users'] = !empty($_POST['users']) ? $_POST['users'] : array(); 134 $edited_page['level'] = !empty($_POST['level']) ? $_POST['level'] : $default_user['level'];132 $edited_page['level'] = !empty($_POST['level']) ? $_POST['level'] : 0; 135 133 $edited_page['homepage'] = isset($_POST['homepage']); 136 134 $edited_page['standalone'] = isset($_POST['standalone']); -
extensions/AdditionalPages/admin/config.inc.php
r9350 r9546 18 18 if ($conf['AP']['level_perm'] and !isset($_POST['level_perm'])) 19 19 { 20 $default_user = get_default_user_info(true); 21 pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET level = '.$default_user['level'].';'); 20 pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET level = 0;'); 22 21 } 23 22 if ($conf['AP']['group_perm'] and !isset($_POST['group_perm']))
Note: See TracChangeset
for help on using the changeset viewer.