From 92310f445ca443bb6c83a372ba59761b15361c3b Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 26 Mar 2011 18:23:15 +1100 Subject: Allow custom URLs for stylesheet/javascript/banner --- mod.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index ad3ee85d..37a86c4a 100644 --- a/mod.php +++ b/mod.php @@ -109,7 +109,7 @@ } echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Dashboard', 'body'=>$body //,'mod'=>true /* All 'mod' does, at this point, is put the "Return to dashboard" link in. */ @@ -140,7 +140,7 @@ $body .= ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Moderation log', 'body'=>$body, 'mod'=>true @@ -187,7 +187,7 @@ ''; echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'Private message', 'body'=>$body, 'mod'=>true @@ -225,7 +225,7 @@ $query->execute() or error(db_error($query)); echo Element('page.html', Array( - 'index'=>$config['root'], + 'config'=>$config, 'title'=>'PM sent', '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 = '
Configuration' . $data . '
'; 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, -- cgit v1.3