- Timestamp:
- 02/10/09 08:28:44 (3 years ago)
- Location:
- branches/portal_by_daris
- Files:
-
- 7 modified
-
admin/pages.php (modified) (28 diffs)
-
admin/panels.php (modified) (32 diffs)
-
include/url/Default.php (modified) (1 diff)
-
include/url/File_based.php (modified) (1 diff)
-
include/url/File_based_(fancy).php (modified) (1 diff)
-
include/url/Folder_based.php (modified) (1 diff)
-
include/url/Folder_based_(fancy).php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/portal_by_daris/admin/pages.php
r5 r17 16 16 define('PORTAL_ROOT', '../'); 17 17 18 ($hook = get_hook(' afo_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;18 ($hook = get_hook('xn_portal_by_daris_apg_start')) ? eval($hook) : null; 19 19 20 20 if ($forum_user['g_id'] != FORUM_ADMIN) … … 35 35 $page_title = forum_trim($_POST['page_title']); 36 36 37 ($hook = get_hook(' afo_add_forum_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;37 ($hook = get_hook('xn_portal_by_daris_apg_add_page_form_submitted')) ? eval($hook) : null; 38 38 39 39 if ($page_title == '') … … 46 46 ); 47 47 48 ($hook = get_hook(' afo_add_forum_qr_add_forum')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;48 ($hook = get_hook('xn_portal_by_daris_apg_add_page_qr_add_forum')) ? eval($hook) : null; 49 49 $forum_db->query_build($query) or error(__FILE__, __LINE__); 50 50 51 ($hook = get_hook(' afo_add_forum_pre_redirect')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;51 ($hook = get_hook('xn_portal_by_daris_apg_add_page_pre_redirect')) ? eval($hook) : null; 52 52 53 53 redirect(forum_link($forum_url['admin_pages']), $lang_admin_pages['Page added'].' '.$lang_admin_common['Redirect']); … … 66 66 redirect(forum_link($forum_url['admin_pages']), $lang_admin_common['Cancel redirect']); 67 67 68 ($hook = get_hook(' afo_del_forum_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;68 ($hook = get_hook('xn_portal_by_daris_apg_del_page_form_submitted')) ? eval($hook) : null; 69 69 70 70 if (isset($_POST['del_page_comply'])) // Delete a forum with all posts … … 77 77 ); 78 78 79 ($hook = get_hook(' afo_del_forum_qr_delete_forum')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;79 ($hook = get_hook('xn_portal_by_daris_apg_del_page_qr_delete_forum')) ? eval($hook) : null; 80 80 $forum_db->query_build($query) or error(__FILE__, __LINE__); 81 81 82 ($hook = get_hook(' afo_del_forum_pre_redirect')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;82 ($hook = get_hook('xn_portal_by_daris_apg_del_page_pre_redirect')) ? eval($hook) : null; 83 83 84 84 redirect(forum_link($forum_url['admin_pages']), $lang_admin_pages['Page deleted'].' '.$lang_admin_common['Redirect']); … … 92 92 ); 93 93 94 ($hook = get_hook(' afo_del_forum_qr_get_forum_name')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;94 ($hook = get_hook('xn_portal_by_daris_apg_del_page_qr_get_page_name')) ? eval($hook) : null; 95 95 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 96 96 if (!$forum_db->num_rows($result)) … … 108 108 ); 109 109 110 ($hook = get_hook(' afo_del_forum_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;110 ($hook = get_hook('xn_portal_by_daris_apg_del_page_pre_header_load')) ? eval($hook) : null; 111 111 112 112 define('FORUM_PAGE_SECTION', 'start'); … … 117 117 ob_start(); 118 118 119 ($hook = get_hook(' afo_del_forum_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;119 ($hook = get_hook('xn_portal_by_daris_apg_del_page_output_start')) ? eval($hook) : null; 120 120 121 121 ?> … … 140 140 <?php 141 141 142 ($hook = get_hook(' afo_del_forum_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;142 ($hook = get_hook('xn_portal_by_daris_apg_del_page_end')) ? eval($hook) : null; 143 143 144 144 $tpl_temp = forum_trim(ob_get_contents()); … … 158 158 message($lang_common['Bad request']); 159 159 160 ($hook = get_hook(' afo_edit_forum_selected')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;160 ($hook = get_hook('xn_portal_by_daris_apg_edit_page_selected')) ? eval($hook) : null; 161 161 162 162 // Fetch page info … … 167 167 ); 168 168 169 ($hook = get_hook(' afo_edit_forum_qr_get_forum_details')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;169 ($hook = get_hook('xn_portal_by_daris_apg_edit_page_qr_get_page_details')) ? eval($hook) : null; 170 170 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 171 171 if (!$forum_db->num_rows($result)) … … 177 177 if (isset($_POST['save'])) 178 178 { 179 ($hook = get_hook(' afo_save_forum_form_submitted')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;179 ($hook = get_hook('xn_portal_by_daris_apg_save_page_form_submitted')) ? eval($hook) : null; 180 180 181 181 // Start with the forum details … … 192 192 ); 193 193 194 ($hook = get_hook(' afo_save_forum_qr_update_forum')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;194 ($hook = get_hook('xn_portal_by_daris_apg_save_page_qr_update_page')) ? eval($hook) : null; 195 195 $forum_db->query_build($query) or error(__FILE__, __LINE__); 196 196 197 ($hook = get_hook(' afo_save_forum_pre_redirect')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;197 ($hook = get_hook('xn_portal_by_daris_apg_save_page_pre_redirect')) ? eval($hook) : null; 198 198 199 199 redirect(forum_link($forum_url['admin_pages']), $lang_admin_pages['Page updated'].' '.$lang_admin_common['Redirect']); … … 202 202 203 203 $forum_page['form_info'] = array(); 204 /* if ($cur_page['redirect_url']) 205 $forum_page['form_info'][] = '<li><span>'.$lang_admin_pages['Forum perms redirect info'].'</span></li>'; 206 207 $forum_page['form_info']['read'] = '<li><span>'.$lang_admin_pages['Forum perms read info'].'</span></li>'; 208 $forum_page['form_info']['restore'] = '<li><span>'.$lang_admin_pages['Forum perms restore info'].'</span></li>'; 209 $forum_page['form_info']['groups'] = '<li><span>'. sprintf($lang_admin_pages['Forum perms groups info'], '<a href="'.forum_link($forum_url['admin_groups']).'">'.$lang_admin_pages['User groups'].'</a>').'</span></li>'; 210 $forum_page['form_info']['admins'] = '<li><span>'.$lang_admin_pages['Forum perms admins info'].'</span></li>'; 211 */ 204 212 205 // Setup the form 213 206 $forum_page['item_count'] = $forum_page['group_count'] = $forum_page['fld_count'] = 0; … … 221 214 ); 222 215 223 ($hook = get_hook(' afo_edit_forum_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;216 ($hook = get_hook('xn_portal_by_daris_apg_edit_page_pre_header_load')) ? eval($hook) : null; 224 217 225 218 define('FORUM_PAGE_SECTION', 'start'); … … 230 223 ob_start(); 231 224 232 ($hook = get_hook(' afo_edit_forum_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;225 ($hook = get_hook('xn_portal_by_daris_apg_edit_page_output_start')) ? eval($hook) : null; 233 226 234 227 ?> … … 244 237 <h3 class="hn"><span><?php echo $lang_admin_pages['Edit page details head'] ?></span></h3> 245 238 </div> 246 <?php ($hook = get_hook(' afo_edit_forum_pre_details_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>239 <?php ($hook = get_hook('xn_portal_by_daris_apg_edit_page_pre_details_fieldset')) ? eval($hook) : null; ?> 247 240 <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 248 241 <legend class="group-legend"><strong><?php echo $lang_admin_pages['Edit forum details legend'] ?></strong></legend> 249 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_name')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>242 <?php ($hook = get_hook('xn_portal_by_daris_apg_edit_page_pre_page_name')) ? eval($hook) : null; ?> 250 243 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 251 244 <div class="sf-box text"> … … 254 247 </div> 255 248 </div> 256 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_descrip')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>249 <?php ($hook = get_hook('xn_portal_by_daris_apg_edit_page_pre_page_content')) ? eval($hook) : null; ?> 257 250 <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>"> 258 251 <div class="txt-box textarea"> … … 270 263 <?php 271 264 272 ($hook = get_hook(' afo_edit_forum_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;265 ($hook = get_hook('xn_portal_by_daris_apg_edit_page_end')) ? eval($hook) : null; 273 266 274 267 $tpl_temp = forum_trim(ob_get_contents()); … … 290 283 ); 291 284 292 ($hook = get_hook(' afo_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;285 ($hook = get_hook('xn_portal_by_daris_apg_pre_header_load')) ? eval($hook) : null; 293 286 294 287 define('FORUM_PAGE_SECTION', 'start'); … … 299 292 ob_start(); 300 293 301 ($hook = get_hook(' afo_main_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;294 ($hook = get_hook('xn_portal_by_daris_apg_main_output_start')) ? eval($hook) : null; 302 295 303 296 ?> … … 310 303 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_pages']).'?action=adddel') ?>" /> 311 304 </div> 312 <?php ($hook = get_hook(' afo_pre_add_forum_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>305 <?php ($hook = get_hook('xn_portal_by_daris_apg_pre_add_page_fieldset')) ? eval($hook) : null; ?> 313 306 <fieldset class="frm-group set<?php echo ++$forum_page['group_count'] ?>"> 314 307 <legend class="group-legend"><strong><?php echo $lang_admin_pages['Add page legend'] ?></strong></legend> 315 <?php ($hook = get_hook(' afo_pre_new_forum_name')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>308 <?php ($hook = get_hook('xn_portal_by_daris_apg_pre_new_page_name')) ? eval($hook) : null; ?> 316 309 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 317 310 <div class="sf-box text"> … … 320 313 </div> 321 314 </div> 322 <?php ($hook = get_hook(' afo_pre_add_forum_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>315 <?php ($hook = get_hook('xn_portal_by_daris_apg_pre_add_page_fieldset_end')) ? eval($hook) : null; ?> 323 316 </fieldset> 324 <?php ($hook = get_hook(' afo_add_forum_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>317 <?php ($hook = get_hook('xn_portal_by_daris_apg_add_page_fieldset_end')) ? eval($hook) : null; ?> 325 318 <div class="frm-buttons"> 326 319 <span class="submit"><input type="submit" class="button" name="add_page" value=" <?php echo $lang_admin_pages['Add page'] ?> " /></span> … … 337 330 ); 338 331 339 ($hook = get_hook(' afo_qr_get_cats_and_forums')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;332 ($hook = get_hook('xn_portal_by_daris_apg_qr_get_pages')) ? eval($hook) : null; 340 333 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 341 334 … … 368 361 { 369 362 370 ($hook = get_hook(' afo_pre_edit_cur_page_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;363 ($hook = get_hook('xn_portal_by_daris_apg_pre_edit_cur_page_fieldset')) ? eval($hook) : null; 371 364 372 365 ?> … … 374 367 <legend><span><?php printf($lang_admin_pages['Edit or delete'], '<a href="'.forum_link($forum_url['admin_pages']).'?edit_page='.$cur_page['id'].'">'.$lang_admin_pages['Edit'].'</a>', '<a href="'.forum_link($forum_url['admin_pages']).'?del_page='.$cur_page['id'].'">'.$lang_admin_pages['Delete'].'</a>') ?></span></legend> 375 368 <div class="mf-box"> 376 <?php ($hook = get_hook(' afo_pre_edit_cur_page_name')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>369 <?php ($hook = get_hook('xn_portal_by_daris_apg_pre_edit_cur_page_name')) ? eval($hook) : null; ?> 377 370 <div class="mf-field mf-field1 forum-field"> 378 371 <span class="aslabel"><?php echo $lang_admin_pages['Page name'] ?></span> … … 380 373 </div> 381 374 </div> 382 <?php ($hook = get_hook(' afo_pre_edit_cur_page_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?>375 <?php ($hook = get_hook('xn_portal_by_daris_apg_pre_edit_cur_page_fieldset_end')) ? eval($hook) : null; ?> 383 376 </fieldset> 384 377 <?php 385 378 386 ($hook = get_hook(' afo_edit_cur_page_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;379 ($hook = get_hook('xn_portal_by_daris_apg_edit_cur_page_fieldset_end')) ? eval($hook) : null; 387 380 388 381 ++$i; … … 398 391 399 392 400 ($hook = get_hook(' afo_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;393 ($hook = get_hook('xn_portal_by_daris_apg_end')) ? eval($hook) : null; 401 394 402 395 $tpl_temp = forum_trim(ob_get_contents()); -
branches/portal_by_daris/admin/panels.php
r16 r17 16 16 define('PORTAL_ROOT', '../'); 17 17 18 ($hook = get_hook(' afo_start')) ? eval($hook) : null;18 ($hook = get_hook('xn_portal_by_daris_apn_start')) ? eval($hook) : null; 19 19 20 20 if ($forum_user['g_id'] != FORUM_ADMIN) … … 46 46 $position = /*intval($_POST['position'])*/0; 47 47 48 ($hook = get_hook(' afo_add_forum_form_submitted')) ? eval($hook) : null;48 ($hook = get_hook('xn_portal_by_daris_apn_add_panel_form_submitted')) ? eval($hook) : null; 49 49 50 50 if ($panel_name == '') … … 57 57 ); 58 58 59 ($hook = get_hook(' afo_add_forum_qr_add_forum')) ? eval($hook) : null;59 ($hook = get_hook('xn_portal_by_daris_apn_add_panel_qr_add_panel')) ? eval($hook) : null; 60 60 $forum_db->query_build($query) or error(__FILE__, __LINE__); 61 61 … … 66 66 generate_panels_cache(); 67 67 68 ($hook = get_hook(' afo_add_forum_pre_redirect')) ? eval($hook) : null;68 ($hook = get_hook('xn_portal_by_daris_apn_add_panel_pre_redirect')) ? eval($hook) : null; 69 69 70 70 redirect(forum_link($forum_url['admin_panels']), $lang_admin_panels['Panel added'].' '.$lang_admin_common['Redirect']); … … 80 80 81 81 // User pressed the cancel button 82 if (isset($_POST['del_ forum_cancel']))82 if (isset($_POST['del_panel_cancel'])) 83 83 redirect(forum_link($forum_url['admin_panels']), $lang_admin_common['Cancel redirect']); 84 84 85 ($hook = get_hook(' afo_del_forum_form_submitted')) ? eval($hook) : null;86 87 if (isset($_POST['del_ forum_comply'])) // Delete a forum with all posts85 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_form_submitted')) ? eval($hook) : null; 86 87 if (isset($_POST['del_panel_comply'])) // Delete a forum with all posts 88 88 { 89 89 … … 94 94 ); 95 95 96 ($hook = get_hook(' afo_del_forum_qr_delete_forum')) ? eval($hook) : null;96 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_qr_delete_panel')) ? eval($hook) : null; 97 97 $forum_db->query_build($query) or error(__FILE__, __LINE__); 98 98 … … 103 103 generate_panels_cache(); 104 104 105 ($hook = get_hook(' afo_del_forum_pre_redirect')) ? eval($hook) : null;105 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_pre_redirect')) ? eval($hook) : null; 106 106 107 107 redirect(forum_link($forum_url['admin_panels']), $lang_admin_panels['Panel deleted'].' '.$lang_admin_common['Redirect']); … … 115 115 ); 116 116 117 ($hook = get_hook(' afo_del_forum_qr_get_forum_name')) ? eval($hook) : null;117 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_qr_get_panel_name')) ? eval($hook) : null; 118 118 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 119 119 if (!$forum_db->num_rows($result)) … … 132 132 ); 133 133 134 ($hook = get_hook(' afo_del_forum_pre_header_load')) ? eval($hook) : null;134 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_pre_header_load')) ? eval($hook) : null; 135 135 136 136 define('FORUM_PAGE_SECTION', 'start'); … … 141 141 ob_start(); 142 142 143 ($hook = get_hook(' afo_del_forum_output_start')) ? eval($hook) : null;143 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_output_start')) ? eval($hook) : null; 144 144 145 145 ?> … … 156 156 </div> 157 157 <div class="frm-buttons"> 158 <span class="submit"><input type="submit" name="del_ forum_comply" value="<?php echo $lang_admin_panels['Delete panel'] ?>" /></span>159 <span class="cancel"><input type="submit" name="del_ forum_cancel" value="<?php echo $lang_admin_common['Cancel'] ?>" /></span>158 <span class="submit"><input type="submit" name="del_panel_comply" value="<?php echo $lang_admin_panels['Delete panel'] ?>" /></span> 159 <span class="cancel"><input type="submit" name="del_panel_cancel" value="<?php echo $lang_admin_common['Cancel'] ?>" /></span> 160 160 </div> 161 161 </form> … … 164 164 <?php 165 165 166 ($hook = get_hook(' afo_del_forum_end')) ? eval($hook) : null;166 ($hook = get_hook('xn_portal_by_daris_apn_del_panel_end')) ? eval($hook) : null; 167 167 168 168 $tpl_temp = forum_trim(ob_get_contents()); … … 221 221 generate_panels_cache(); 222 222 223 ($hook = get_hook(' afo_update_positions_pre_redirect')) ? eval($hook) : null;223 ($hook = get_hook('xn_portal_by_daris_apn_update_positions_pre_redirect')) ? eval($hook) : null; 224 224 225 225 redirect(forum_link($forum_url['admin_panels']), $lang_admin_panels['Panels updated'].' '.$lang_admin_common['Redirect']); … … 233 233 message($lang_common['Bad request']); 234 234 235 ($hook = get_hook(' afo_edit_forum_selected')) ? eval($hook) : null;235 ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_selected')) ? eval($hook) : null; 236 236 237 237 // Update panel … … 291 291 ); 292 292 293 ($hook = get_hook(' afo_edit_forum_pre_header_load')) ? eval($hook) : null;293 ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_header_load')) ? eval($hook) : null; 294 294 295 295 define('FORUM_PAGE_SECTION', 'start'); … … 300 300 ob_start(); 301 301 302 ($hook = get_hook(' afo_edit_forum_output_start')) ? eval($hook) : null;302 ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_output_start')) ? eval($hook) : null; 303 303 304 304 ?> … … 314 314 <h3 class="hn"><span><?php echo $lang_admin_panels['Edit panel details head'] ?></span></h3> 315 315 </div> 316 <?php ($hook = get_hook(' afo_edit_forum_pre_details_fieldset')) ? eval($hook) : null; ?>316 <?php ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_details_fieldset')) ? eval($hook) : null; ?> 317 317 <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 318 318 <legend class="group-legend"><strong><?php echo $lang_admin_panels['Edit panel details legend'] ?></strong></legend> 319 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_name')) ? eval($hook) : null; ?>319 <?php ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_panel_name')) ? eval($hook) : null; ?> 320 320 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 321 321 <div class="sf-box text"> … … 324 324 </div> 325 325 </div> 326 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_cat')) ? eval($hook) : null; ?>326 <?php ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_panel_file')) ? eval($hook) : null; ?> 327 327 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 328 328 <div class="sf-box select"> … … 333 333 </div> 334 334 </div> 335 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_cat')) ? eval($hook) : null; ?>335 <?php ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_panel_location')) ? eval($hook) : null; ?> 336 336 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 337 337 <div class="sf-box select"> … … 345 345 </div> 346 346 </div> 347 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_descrip')) ? eval($hook) : null; ?>347 <?php ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_pre_panel_content')) ? eval($hook) : null; ?> 348 348 <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>"> 349 349 <div class="txt-box textarea"> … … 360 360 <?php 361 361 362 ($hook = get_hook(' afo_edit_forum_end')) ? eval($hook) : null;362 ($hook = get_hook('xn_portal_by_daris_apn_edit_panel_end')) ? eval($hook) : null; 363 363 364 364 $tpl_temp = forum_trim(ob_get_contents()); … … 383 383 ); 384 384 385 ($hook = get_hook(' afo_pre_header_load')) ? eval($hook) : null;385 ($hook = get_hook('xn_portal_by_daris_apn_pre_header_load')) ? eval($hook) : null; 386 386 387 387 define('FORUM_PAGE_SECTION', 'start'); … … 392 392 ob_start(); 393 393 394 ($hook = get_hook(' afo_main_output_start')) ? eval($hook) : null;394 ($hook = get_hook('xn_portal_by_daris_apn_main_output_start')) ? eval($hook) : null; 395 395 396 396 ?> … … 403 403 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_panels']).'?action=adddel') ?>" /> 404 404 </div> 405 <?php ($hook = get_hook(' afo_pre_add_forum_fieldset')) ? eval($hook) : null; ?>405 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_add_panel_fieldset')) ? eval($hook) : null; ?> 406 406 <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 407 407 <legend class="group-legend"><strong><?php echo $lang_admin_panels['Add panel legend'] ?></strong></legend> 408 <?php ($hook = get_hook(' afo_pre_new_forum_name')) ? eval($hook) : null; ?>408 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_add_panel_name')) ? eval($hook) : null; ?> 409 409 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 410 410 <div class="sf-box text"> … … 413 413 </div> 414 414 </div> 415 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_cat')) ? eval($hook) : null; ?>415 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_add_panel_location')) ? eval($hook) : null; ?> 416 416 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 417 417 <div class="sf-box select"> … … 425 425 </div> 426 426 </div> 427 <?php ($hook = get_hook(' afo_edit_forum_pre_forum_cat')) ? eval($hook) : null; ?>427 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_add_panel_file')) ? eval($hook) : null; ?> 428 428 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 429 429 <div class="sf-box select"> … … 434 434 </div> 435 435 </div> 436 <?php ($hook = get_hook(' afo_pre_add_forum_fieldset_end')) ? eval($hook) : null; ?>436 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_add_panel_fieldset_end')) ? eval($hook) : null; ?> 437 437 </fieldset> 438 <?php ($hook = get_hook(' afo_add_forum_fieldset_end')) ? eval($hook) : null; ?>438 <?php ($hook = get_hook('xn_portal_by_daris_apn_add_panel_fieldset_end')) ? eval($hook) : null; ?> 439 439 <div class="frm-buttons"> 440 440 <span class="submit"><input type="submit" name="add_panel" value=" <?php echo $lang_admin_panels['Add panel'] ?> " /></span> … … 452 452 ); 453 453 454 ($hook = get_hook(' afo_qr_get_cats_and_forums')) ? eval($hook) : null;454 ($hook = get_hook('xn_portal_by_daris_apn_qr_get_panels')) ? eval($hook) : null; 455 455 $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 456 456 … … 495 495 } 496 496 497 ($hook = get_hook(' afo_pre_edit_cur_forum_fieldset')) ? eval($hook) : null;497 ($hook = get_hook('xn_portal_by_daris_apn_pre_edit_cur_panel_fieldset')) ? eval($hook) : null; 498 498 499 499 ?> … … 501 501 <legend><span><?php printf($lang_admin_panels['Edit or delete'], '<a href="'.forum_link($forum_url['admin_panels']).'?edit_panel='.$cur_panel['id'].'">'.$lang_admin_panels['Edit'].'</a>', '<a href="'.forum_link($forum_url['admin_panels']).'?del_panel='.$cur_panel['id'].'">'.$lang_admin_panels['Delete'].'</a>') ?></span></legend> 502 502 <div class="mf-box"> 503 <?php ($hook = get_hook(' afo_pre_edit_cur_forum_name')) ? eval($hook) : null; ?>503 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_edit_cur_panel_name')) ? eval($hook) : null; ?> 504 504 <div class="mf-field mf-field1 forum-field"> 505 505 <span class="aslabel"><?php echo $lang_admin_panels['Panel name'] ?></span> 506 506 <span class="fld-input"><?php echo forum_htmlencode($cur_panel['name']) ?></span> 507 507 </div> 508 <?php ($hook = get_hook(' afo_pre_edit_cur_forum_position')) ? eval($hook) : null; ?>508 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_edit_cur_panel_position')) ? eval($hook) : null; ?> 509 509 <div class="mf-field"> 510 510 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_panels['Position label'] ?></span></label><br /> … … 512 512 </div> 513 513 </div> 514 <?php ($hook = get_hook(' afo_pre_edit_cur_forum_fieldset_end')) ? eval($hook) : null; ?>514 <?php ($hook = get_hook('xn_portal_by_daris_apn_pre_edit_cur_panel_fieldset_end')) ? eval($hook) : null; ?> 515 515 </fieldset> 516 516 <?php 517 517 518 ($hook = get_hook(' afo_edit_cur_forum_fieldset_end')) ? eval($hook) : null;518 ($hook = get_hook('xn_portal_by_daris_apn_edit_cur_panel_fieldset_end')) ? eval($hook) : null; 519 519 520 520 ++$i; … … 533 533 534 534 535 ($hook = get_hook(' afo_end')) ? eval($hook) : null;535 ($hook = get_hook('xn_portal_by_daris_apn_end')) ? eval($hook) : null; 536 536 537 537 $tpl_temp = forum_trim(ob_get_contents()); -
branches/portal_by_daris/include/url/Default.php
r5 r17 20 20 'admin_settings_portal' => 'admin/settings.php?section=portal', 21 21 'forums' => '?forum', 22 'articles' => '?articles',23 'article' => '?article=$1',24 22 'pages' => '?pages', 25 23 'page_id' => '?page=$1', -
branches/portal_by_daris/include/url/File_based.php
r5 r17 20 20 'admin_settings_portal' => 'admin/settings.php?section=portal', 21 21 'forums' => 'forum.html', 22 'articles' => 'articles.html',23 'article' => 'article$1.html',24 22 'pages' => 'pages.html', 25 23 'page_id' => 'page$1.html', -
branches/portal_by_daris/include/url/File_based_(fancy).php
r5 r17 20 20 'admin_settings_portal' => 'admin/settings.php?section=portal', 21 21 'forums' => 'forum.html', 22 'articles' => 'articles.html',23 'article' => 'article$1-$2.html',24 22 'pages' => 'pages.html', 25 23 'page_id' => 'page$1-$2.html', -
branches/portal_by_daris/include/url/Folder_based.php
r5 r17 20 20 'admin_settings_portal' => 'admin/settings.php?section=portal', 21 21 'forums' => 'forum/', 22 'articles' => 'articles/',23 'article' => 'article/$1/',24 22 'pages' => 'pages/', 25 23 'page_id' => 'page/$1/', -
branches/portal_by_daris/include/url/Folder_based_(fancy).php
r5 r17 20 20 'admin_settings_portal' => 'admin/settings.php?section=portal', 21 21 'forums' => 'forum/', 22 'articles' => 'articles/',23 'article' => 'article/$1/$2/',24 22 'pages' => 'pages/', 25 23 'page_id' => 'page/$1/$2/',