diff --git a/css/base.css b/css/base.css
index efab625..a291063 100644
--- a/css/base.css
+++ b/css/base.css
@@ -78,3 +78,18 @@ input[type=radio] { color: black; background: white; }
.imgtag { max-width: 100%; }
.post { position: relative; }
+
+textarea.newposttextbox {
+ max-width: 100%;
+ width: 800px;
+ height: 20em;
+ resize: both;
+}
+
+table.table-fixed {
+ table-layout: fixed;
+}
+
+input, select { vertical-align: middle; }
+
+img[src^="images/smilies/"] { vertical-align: middle; }
diff --git a/lib/function.php b/lib/function.php
index e11c463..c1dd636 100644
--- a/lib/function.php
+++ b/lib/function.php
@@ -268,6 +268,11 @@
*/
+function v(&$v, $d = null) {
+ $v = isset($v) ? $v : $d;
+ return $v;
+}
+
function filter_int(&$v) {
if (!isset($v)) {
return null;
@@ -950,9 +955,13 @@ function jspageexpand($start, $end) {
}
*/
-function redirect($url,$msg,$delay){
- if($delay<1) $delay=1;
- return "You will now be redirected to $msg...";
+function redirect($url,$msg,$delay = 1){
+ if ($delay >= 0) {
+ return "You will now be redirected to $msg...";
+ } else {
+ return "Go back to $msg.";
+
+ }
}
function postradar($userid){
@@ -1076,49 +1085,62 @@ function errorpage($text, $redir = '', $redirurl = '') {
die();
}
+
+function boardmessage($text, $title = "Message") {
+ global $header,$tblstart,$tccellh,$tccell1,$tblend,$footer,$startingtime;
+
+ print "
+ $header
+
+ $tblstart
+