diff --git a/help.php b/help.php
index 56b6512..fe137a5 100644
--- a/help.php
+++ b/help.php
@@ -312,8 +312,8 @@
Please visit the following sites for more information:
Se7enet (Jamin's homepage)
Dragon Knight (official DK homepage)
-Forums (official DK forums)
-All original coding and graphics for the Dragon Knight game engine are © 2003-2004 by Jamin Seven.
+Forums (official DK forums)
+All original coding and graphics for the Dragon Knight game engine are © 2003-2005 by Jamin Seven.
[ Top ]
diff --git a/index.php b/index.php
index 0390b3f..fb0acd4 100644
--- a/index.php
+++ b/index.php
@@ -253,7 +253,7 @@ function babblebox() {
global $userrow;
- if (isset($_POST["submit"])) {
+ if (isset($_POST["babble"])) {
$safecontent = makesafe($_POST["babble"]);
if ($safecontent == "" || $safecontent == " ") { //blank post. do nothing.
} else { $insert = doquery("INSERT INTO {{table}} SET id='',posttime=NOW(),author='".$userrow["charname"]."',babble='$safecontent'", "babble"); }
diff --git a/lib.php b/lib.php
index 6e4a536..1491bce 100644
--- a/lib.php
+++ b/lib.php
@@ -2,7 +2,7 @@
$starttime = getmicrotime();
$numqueries = 0;
-$version = "1.1.8";
+$version = "1.1.9";
$build = "";
// Handling for servers with magic_quotes turned on.
diff --git a/templates/admin.php b/templates/admin.php
index fd96404..06764e4 100644
--- a/templates/admin.php
+++ b/templates/admin.php
@@ -54,7 +54,7 @@
DK Administration
Links:
Admin Home
-Game Home
+Game Home
Primary Data:
Main Settings
Add News Post
diff --git a/users.php b/users.php
index 30645c2..22b7357 100644
--- a/users.php
+++ b/users.php
@@ -29,6 +29,12 @@ function register() { // Register a new account.
if (preg_match("/[^A-z0-9_\-]/", $username)==1) { $errors++; $errorlist .= "Username must be alphanumeric.
"; } // Thanks to "Carlos Pires" from php.net!
$usernamequery = doquery("SELECT username FROM {{table}} WHERE username='$username' LIMIT 1","users");
if (mysql_num_rows($usernamequery) > 0) { $errors++; $errorlist .= "Username already taken - unique username required.
"; }
+
+ // Process charname.
+ if ($charname == "") { $errors++; $errorlist .= "Character Name field is required.
"; }
+ if (preg_match("/[^A-z0-9_\-]/", $charname)==1) { $errors++; $errorlist .= "Character Name must be alphanumeric.
"; } // Thanks to "Carlos Pires" from php.net!
+ $characternamequery = doquery("SELECT charname FROM {{table}} WHERE charname='$charname' LIMIT 1","users");
+ if (mysql_num_rows($characternamequery) > 0) { $errors++; $errorlist .= "Character Name already taken - unique Character Name required.
"; }
// Process email address.
if ($email1 == "" || $email2 == "") { $errors++; $errorlist .= "Email fields are required.
"; }