Changeset 9350 for extensions/AdditionalPages/additional_page.php
- Timestamp:
- Feb 22, 2011, 3:50:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/additional_page.php
r9345 r9350 29 29 $identifier = $page['ap_homepage'] ? $conf['AP']['homepage'] : $tokens[1]; 30 30 31 if (function_exists('get_extended_desc'))32 add_event_handler('AP_render_content', 'get_extended_desc');33 34 31 // Retrieve page data 35 $query = 'SELECT id, title 32 $query = 'SELECT id, title, lang, content, users, groups, level, permalink, standalone 36 33 FROM ' . ADD_PAGES_TABLE . ' 37 34 '; … … 58 55 if (!is_admin() or (!is_admin() xor $page['ap_homepage'])) 59 56 { 57 // authorized language 58 if (!empty($row['lang']) and $row['lang'] != $user['language']) 59 { 60 if ($page['ap_homepage'] and check_random_index_redirect()) return; 61 page_forbidden(l10n('You are not authorized to access the requested page'), make_index_url()); 62 } 63 60 64 // authorized level 61 65 if ($user['level'] < $row['level']) 62 66 { 63 67 if ($page['ap_homepage'] and check_random_index_redirect()) return; 64 page_forbidden(l10n('You are not authorized to access the requested page') );68 page_forbidden(l10n('You are not authorized to access the requested page'), make_index_url()); 65 69 } 66 70 … … 72 76 { 73 77 if ($page['ap_homepage'] and check_random_index_redirect()) return; 74 page_forbidden(l10n('You are not authorized to access the requested page') );78 page_forbidden(l10n('You are not authorized to access the requested page'), make_index_url()); 75 79 } 76 80 } … … 88 92 { 89 93 if ($page['ap_homepage'] and check_random_index_redirect()) return; 90 page_forbidden(l10n('You are not authorized to access the requested page') );94 page_forbidden(l10n('You are not authorized to access the requested page'), make_index_url()); 91 95 } 92 96 } … … 106 110 'id' => $row['id'], 107 111 'permalink' => @$row['permalink'], 108 'title' => trigger_event('AP_render_ content', $row['title']),112 'title' => trigger_event('AP_render_title', $row['title']), 109 113 'content' => trigger_event('AP_render_content', $row['content']), 110 114 );
Note: See TracChangeset
for help on using the changeset viewer.