and blocks */
+code br, pre br { display: none; }
+
+/* Make radio buttons look not terrible */
+input[type=radio] { color: black; background: white; }
+
+/* Spoiler tag code */
.pstspl1 {opacity:0;}
.pstspl1:hover {opacity:1;}
.pstspl2 {background:#000;color:#FFF;display:block;}
+
+/* Stop avatars from being huge */
+.avatar {
+ max-width: 200px;
+ }
+
+/* On mobile, make avatars smaller */
+.mobile-avatar {
+ float: left;
+ height: 50px;
+ width: 50px;
+ padding: 2px;
+ text-align: center;
+}
+.mobile-avatar > .avatar {
+ max-height: 100%;
+ max-width: 100%;
+}
diff --git a/css/basics.css b/css/basics.css
new file mode 100644
index 0000000..4688976
--- /dev/null
+++ b/css/basics.css
@@ -0,0 +1,33 @@
+textarea,input,select {
+ border: 1px solid #000;
+ background: #000;
+ color: #EEE;
+ font: 10pt monospace;
+}
+input[type=radio] {
+ border: none;
+}
+input[type=submit] {
+ border: #000 solid 2px;
+ font: 10pt 'verdana', sans-serif;
+}
+body, table, thead, tbody, span, td, tr, th, a, img, br { padding: 0; margin: 0; border: 0; font-size: 100%; }
+center { text-align: center; }
+.tdbgh, .tbl, .tdbgc, .tdbg1, .tdbg2 { line-height: 1; padding: 1px;}
+table { border-spacing: 0; border-collapse: collapse; }
+a:link,a:visited,a:active,a:hover { text-decoration:none; font-weight: bold; }
+table { padding: 0.5em; }
+span.lastpost { font-size: 90%; padding: 0; margin: 0; }
+div.lastpost { font-size: 90%; text-align: right !important; }
+
+.table { width: 100%; empty-cells: show;}
+.sparkline { display: none; }
+.center, center { text-align: center; }
+.right { text-align: right; }
+
+code { overflow: auto; width: 100%; white-space: pre; display: block; }
+code br { display: none; }
+
+.pstspl1 {opacity:0;}
+.pstspl1:hover {opacity:1;}
+.pstspl2 {background:#000;color:#FFF;display:block;}
diff --git a/images/photobucket.png b/images/photobucket.png
new file mode 100644
index 0000000..b761da7
Binary files /dev/null and b/images/photobucket.png differ
diff --git a/lib/function.php b/lib/function.php
index e9af9bc..87f7451 100644
--- a/lib/function.php
+++ b/lib/function.php
@@ -14,7 +14,7 @@
$id = 0;
// Wait for the midnight backup to finish...
- if ((int)date("Gi") < 5) {
+ if ((int)date("Gi") < 1) {
require "lib/downtime.php";
}
@@ -323,12 +323,13 @@ function readpostread($userid){
}
function timeunits($sec){
- if($sec<60) return "$sec sec.";
- if($sec<3600) return floor($sec/60).' min.';
- if($sec<7200) return '1 hour';
- if($sec<86400) return floor($sec/3600).' hours';
- if($sec<172800) return '1 day';
- return floor($sec/86400).' days';
+ if($sec<60) return "$sec sec.";
+ if($sec<3600) return floor($sec/60).' min.';
+ if($sec<7200) return '1 hour';
+ if($sec<86400) return floor($sec/3600).' hours';
+ if($sec<172800) return '1 day';
+ if($sec<31556926) return floor($sec/86400).' days';
+ return sprintf("%.1f years", floor($sec/31556926));
}
function timeunits2($sec){
@@ -1177,14 +1178,6 @@ function adminlinkbar($sel = 'admin.php') {
return $r;
}
-function nuke_js($before, $after) {
-
- global $sql, $loguser;
- $page = addslashes($_SERVER['REQUEST_URI']);
- $time = ctime();
- $sql -> query("INSERT INTO `jstrap` SET `loguser` = '". $loguser['id'] ."', `ip` = '". $_SERVER['REMOTE_ADDR'] ."', `text` = '". addslashes($before) ."', `url` = '$page', `time` = '$time', `filtered` = '". addslashes($after) ."'");
-
-}
function include_js($fn, $as_tag = false) {
// HANDY JAVASCRIPT INCLUSION FUNCTION
if ($as_tag) {
@@ -1206,9 +1199,6 @@ function dofilters($p){
$p=preg_replace("'