315 if ( in_array($_POST['breadcrumb_mode'], array('subpages', 'always', 'never')) ) |
315 if ( in_array($_POST['breadcrumb_mode'], array('subpages', 'always', 'never')) ) |
316 { |
316 { |
317 setConfig('breadcrumb_mode', $_POST['breadcrumb_mode']); |
317 setConfig('breadcrumb_mode', $_POST['breadcrumb_mode']); |
318 } |
318 } |
319 |
319 |
|
320 // CDN path |
|
321 if ( preg_match('/^http:\/\//', $_POST['cdn_path']) || $_POST['cdn_path'] === '' ) |
|
322 { |
|
323 // trim off a trailing slash |
|
324 setConfig('cdn_path', preg_replace('#/$#', '', $_POST['cdn_path'])); |
|
325 } |
|
326 |
320 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
327 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
321 |
328 |
322 // Account lockout policy |
329 // Account lockout policy |
323 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
330 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
324 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
331 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
1993 redirect(makeUrlNS('Special', 'Login/'.$paths->page, 'level='.USER_LEVEL_ADMIN), 'Not authorized', 'You need an authorization level of '.USER_LEVEL_ADMIN.' to use this page, your auth level is: ' . $session->auth_level, 0); |
2017 redirect(makeUrlNS('Special', 'Login/'.$paths->page, 'level='.USER_LEVEL_ADMIN), 'Not authorized', 'You need an authorization level of '.USER_LEVEL_ADMIN.' to use this page, your auth level is: ' . $session->auth_level, 0); |
1994 exit; |
2018 exit; |
1995 } |
2019 } |
1996 else |
2020 else |
1997 { |
2021 { |
1998 $template->add_header('<script type="text/javascript" src="' . scriptPath . '/includes/clientside/static/admin-menu.js"></script>'); |
2022 $template->add_header('<script type="text/javascript" src="' . cdnPath . '/includes/clientside/static/admin-menu.js"></script>'); |
1999 if( !isset( $_GET['noheaders'] ) ) |
2023 if( !isset( $_GET['noheaders'] ) ) |
2000 { |
2024 { |
2001 $template->header(); |
2025 $template->header(); |
2002 } |
2026 } |
2003 echo $lang->get('adm_page_tagline'); |
2027 echo $lang->get('adm_page_tagline'); |
2086 ?> |
2110 ?> |
2087 var TREE_TPL = { |
2111 var TREE_TPL = { |
2088 'target' : '_self', // name of the frame links will be opened in |
2112 'target' : '_self', // name of the frame links will be opened in |
2089 // other possible values are: _blank, _parent, _search, _self and _top |
2113 // other possible values are: _blank, _parent, _search, _self and _top |
2090 |
2114 |
2091 'icon_e' : '<?php echo scriptPath; ?>/images/icons/empty.gif', // empty image |
2115 'icon_e' : '<?php echo cdnPath; ?>/images/icons/empty.gif', // empty image |
2092 'icon_l' : '<?php echo scriptPath; ?>/images/icons/line.gif', // vertical line |
2116 'icon_l' : '<?php echo cdnPath; ?>/images/icons/line.gif', // vertical line |
2093 'icon_32' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root leaf icon normal |
2117 'icon_32' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root leaf icon normal |
2094 'icon_36' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root leaf icon selected |
2118 'icon_36' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root leaf icon selected |
2095 'icon_48' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root icon normal |
2119 'icon_48' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root icon normal |
2096 'icon_52' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root icon selected |
2120 'icon_52' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root icon selected |
2097 'icon_56' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root icon opened |
2121 'icon_56' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root icon opened |
2098 'icon_60' : '<?php echo scriptPath; ?>/images/icons/base.gif', // root icon selected |
2122 'icon_60' : '<?php echo cdnPath; ?>/images/icons/base.gif', // root icon selected |
2099 'icon_16' : '<?php echo scriptPath; ?>/images/icons/folder.gif', // node icon normal |
2123 'icon_16' : '<?php echo cdnPath; ?>/images/icons/folder.gif', // node icon normal |
2100 'icon_20' : '<?php echo scriptPath; ?>/images/icons/folderopen.gif', // node icon selected |
2124 'icon_20' : '<?php echo cdnPath; ?>/images/icons/folderopen.gif', // node icon selected |
2101 'icon_24' : '<?php echo scriptPath; ?>/images/icons/folder.gif', // node icon opened |
2125 'icon_24' : '<?php echo cdnPath; ?>/images/icons/folder.gif', // node icon opened |
2102 'icon_28' : '<?php echo scriptPath; ?>/images/icons/folderopen.gif', // node icon selected opened |
2126 'icon_28' : '<?php echo cdnPath; ?>/images/icons/folderopen.gif', // node icon selected opened |
2103 'icon_0' : '<?php echo scriptPath; ?>/images/icons/page.gif', // leaf icon normal |
2127 'icon_0' : '<?php echo cdnPath; ?>/images/icons/page.gif', // leaf icon normal |
2104 'icon_4' : '<?php echo scriptPath; ?>/images/icons/page.gif', // leaf icon selected |
2128 'icon_4' : '<?php echo cdnPath; ?>/images/icons/page.gif', // leaf icon selected |
2105 'icon_8' : '<?php echo scriptPath; ?>/images/icons/page.gif', // leaf icon opened |
2129 'icon_8' : '<?php echo cdnPath; ?>/images/icons/page.gif', // leaf icon opened |
2106 'icon_12' : '<?php echo scriptPath; ?>/images/icons/page.gif', // leaf icon selected |
2130 'icon_12' : '<?php echo cdnPath; ?>/images/icons/page.gif', // leaf icon selected |
2107 'icon_2' : '<?php echo scriptPath; ?>/images/icons/joinbottom.gif', // junction for leaf |
2131 'icon_2' : '<?php echo cdnPath; ?>/images/icons/joinbottom.gif', // junction for leaf |
2108 'icon_3' : '<?php echo scriptPath; ?>/images/icons/join.gif', // junction for last leaf |
2132 'icon_3' : '<?php echo cdnPath; ?>/images/icons/join.gif', // junction for last leaf |
2109 'icon_18' : '<?php echo scriptPath; ?>/images/icons/plusbottom.gif', // junction for closed node |
2133 'icon_18' : '<?php echo cdnPath; ?>/images/icons/plusbottom.gif', // junction for closed node |
2110 'icon_19' : '<?php echo scriptPath; ?>/images/icons/plus.gif', // junction for last closed node |
2134 'icon_19' : '<?php echo cdnPath; ?>/images/icons/plus.gif', // junction for last closed node |
2111 'icon_26' : '<?php echo scriptPath; ?>/images/icons/minusbottom.gif',// junction for opened node |
2135 'icon_26' : '<?php echo cdnPath; ?>/images/icons/minusbottom.gif',// junction for opened node |
2112 'icon_27' : '<?php echo scriptPath; ?>/images/icons/minus.gif' // junction for last opended node |
2136 'icon_27' : '<?php echo cdnPath; ?>/images/icons/minus.gif' // junction for last opended node |
2113 }; |
2137 }; |
2114 |
2138 |
2115 addOnloadHook(function() |
2139 addOnloadHook(function() |
2116 { |
2140 { |
2117 load_component('ajax'); |
2141 load_component('ajax'); |
2197 exit; |
2221 exit; |
2198 } |
2222 } |
2199 else |
2223 else |
2200 { |
2224 { |
2201 |
2225 |
2202 $template->add_header('<script type="text/javascript" src="'.scriptPath.'/includes/clientside/dbx.js"></script>'); |
2226 $template->add_header('<script type="text/javascript" src="'.cdnPath.'/includes/clientside/dbx.js"></script>'); |
2203 $template->add_header('<script type="text/javascript" src="'.scriptPath.'/includes/clientside/dbx-key.js"></script>'); |
2227 $template->add_header('<script type="text/javascript" src="'.cdnPath.'/includes/clientside/dbx-key.js"></script>'); |
2204 $template->add_header('<script type="text/javascript" src="'.scriptPath.'/includes/clientside/sbedit.js"></script>'); |
2228 $template->add_header('<script type="text/javascript" src="'.cdnPath.'/includes/clientside/sbedit.js"></script>'); |
2205 $template->add_header('<link rel="stylesheet" type="text/css" href="'.scriptPath.'/includes/clientside/dbx.css" />'); |
2229 $template->add_header('<link rel="stylesheet" type="text/css" href="'.cdnPath.'/includes/clientside/dbx.css" />'); |
2206 |
2230 |
2207 $template->load_theme('oxygen', 'bleu'); |
2231 $template->load_theme('oxygen', 'bleu'); |
2208 $template->init_vars(); |
2232 $template->init_vars(); |
2209 |
2233 |
2210 $template->header(); |
2234 $template->header(); |