diff --git a/ext/chatbox/history/index.php b/ext/chatbox/history/index.php
index 94642523..fd5c0f42 100644
--- a/ext/chatbox/history/index.php
+++ b/ext/chatbox/history/index.php
@@ -1,4 +1,4 @@
-
+banned($post['adminInfo']['ip']);
$html .= '
' . "\n";
+
+ $ts = '';
+
switch($prefs['timestamp']) {
case 12:
$ts = date('h:i', $post['timestamp']);
diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php
index 4598f66b..27af8810 100644
--- a/themes/danbooru/layout.class.php
+++ b/themes/danbooru/layout.class.php
@@ -47,7 +47,7 @@ class Layout {
global $config, $user;
$theme_name = $config->get_string('theme');
- $base_href = $config->get_string('base_href');
+ //$base_href = $config->get_string('base_href');
$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');
@@ -122,11 +122,9 @@ class Layout {
$custom_sublinks = "";
// hack
- global $user;
$username = url_escape($user->name);
// hack
$qp = explode("/", ltrim(@$_GET["q"], "/"));
- $hw = class_exists("Wiki");
// php sucks
switch($qp[0]) {
default:
@@ -142,10 +140,10 @@ class Layout {
case "upload":
if(class_exists("NumericScore")){ $custom_sublinks .= "
Popular by Day/Month/Year";}
$custom_sublinks .= "
All";
- if(class_exists("Favorites")){ $custom_sublinks .= "
My Favorites";}
+ if(class_exists("Favorites")){ $custom_sublinks .= "
My Favorites";}
if(class_exists("RSS_Images")){ $custom_sublinks .= "
Feed";}
if(class_exists("RandomImage")){ $custom_sublinks .= "
Random Image";}
- if($hw){ $custom_sublinks .= "
Help";
+ if(class_exists("Wiki")){ $custom_sublinks .= "
Help";
}else{ $custom_sublinks .= "
Help";}
break;
case "comment":
@@ -252,7 +250,7 @@ EOD;
$re1='.*?';
$re2='((?:[a-z][a-z_]+))';
- if ($c=preg_match_all ("/".$re1.$re2."/is", $url, $matches)) {
+ if (preg_match_all("/".$re1.$re2."/is", $url, $matches)) {
$url=$matches[1][0];
}
diff --git a/themes/danbooru2/layout.class.php b/themes/danbooru2/layout.class.php
index 728af1cd..d7e108b2 100644
--- a/themes/danbooru2/layout.class.php
+++ b/themes/danbooru2/layout.class.php
@@ -46,9 +46,9 @@ class Layout {
public function display_page($page) {
global $config, $user;
- $theme_name = $config->get_string('theme');
- $base_href = $config->get_string('base_href');
- $data_href = get_base_href();
+ //$theme_name = $config->get_string('theme');
+ //$base_href = $config->get_string('base_href');
+ //$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');
@@ -124,11 +124,9 @@ class Layout {
$custom_sublinks = "";
// hack
- global $user;
$username = url_escape($user->name);
// hack
$qp = explode("/", ltrim(@$_GET["q"], "/"));
- $hw = class_exists("Wiki");
// php sucks
switch($qp[0]) {
default:
@@ -156,11 +154,11 @@ class Layout {
case "upload":
if(class_exists("NumericScore")){ $custom_sublinks .= "
Popular by Day/Month/Year";}
$custom_sublinks .= "
Listing";
- if(class_exists("Favorites")){ $custom_sublinks .= "
My Favorites";}
+ if(class_exists("Favorites")){ $custom_sublinks .= "
My Favorites";}
if(class_exists("RSS_Images")){ $custom_sublinks .= "
Feed";}
if(class_exists("RandomImage")){ $custom_sublinks .= "
Random";}
$custom_sublinks .= "
Upload";
- if($hw){ $custom_sublinks .= "
Help";
+ if(class_exists("Wiki")){ $custom_sublinks .= "
Help";
}else{ $custom_sublinks .= "
Help";}
break;
case "comment":
@@ -278,7 +276,7 @@ EOD;
$re1='.*?';
$re2='((?:[a-z][a-z_]+))';
- if ($c=preg_match_all ("/".$re1.$re2."/is", $url, $matches)) {
+ if (preg_match_all("/".$re1.$re2."/is", $url, $matches)) {
$url=$matches[1][0];
}