diff --git a/inc/config.php b/inc/config.php index 640999ac..38468f57 100644 --- a/inc/config.php +++ b/inc/config.php @@ -419,4 +419,9 @@ // 'status' => 'http://status.example.org/' //); + // Set custom locations for stylesheets, scripts and maybe a banner. + // This can be good for load balancing across multiple servers or hostnames. + // $config['url_stylesheet'] = 'http://static.example.org/style.css'; + // $config['url_javascript'] = 'http://static.example.org/script.js'; + // $config['url_banner'] = '/banner.php'; ?> \ No newline at end of file diff --git a/inc/display.php b/inc/display.php index c6570002..966ddab6 100644 --- a/inc/display.php +++ b/inc/display.php @@ -61,7 +61,7 @@ if(function_exists('sql_close')) sql_close(); die(Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Error', 'subtitle'=>'An error has occured.', 'body'=>"
Message sent successfully to ' . htmlentities($to['username']) . '.
', 'mod'=>true @@ -252,7 +252,7 @@ ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'New PM for ' . htmlentities($to['username']), 'body'=>$body ,'mod'=>true @@ -314,7 +314,7 @@ $body .= ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Manage users', 'body'=>$body ,'mod'=>true @@ -372,7 +372,7 @@ ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'New user', 'body'=>$body ,'mod'=>true @@ -461,7 +461,7 @@ ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Edit user', 'body'=>$body ,'mod'=>true @@ -522,7 +522,7 @@ ($reports == $count['count'] ? 'all ' . $reports . ' reports' : $reports . ' of ' . $count['count'] . ' reports') . '.'; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Report queue', 'body'=>$body, 'mod'=>true @@ -637,7 +637,7 @@ ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Manage – ' . sprintf($config['board_abbreviation'], $board['uri']), 'body'=>$body, 'mod'=>true @@ -721,7 +721,7 @@ } echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Ban list', 'body'=>$body, 'mod'=>true @@ -792,7 +792,7 @@ $body = ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Configuration', 'body'=>$body, 'mod'=>true @@ -873,7 +873,7 @@ // TODO: Statistics, etc, in the dashboard. echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'New board', 'body'=>$body, 'mod'=>true @@ -1186,7 +1186,7 @@ $body = form_newBan($post['ip'], null, isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : false, $delete ? $post['id'] : false, $delete ? $boardName : false); echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'New ban', 'body'=>$body, 'mod'=>true @@ -1295,7 +1295,7 @@ $body .= form_newBan($ip, null, isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : false); echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'IP: ' . $ip, 'subtitle' => $host, 'body'=>$body, diff --git a/templates/index.html b/templates/index.html index b14e2e4e..30cb3259 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,20 +1,22 @@ - +{mod?Return to dashboard}