mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 12:24:20 +00:00
delete more change of songeriux (i prefer that users can register in any language), improve forum and BBcode (not 100%, but fix some bugs)
This commit is contained in:
@@ -57,9 +57,7 @@ class Account {
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
} elseif(preg_replace("/[a-zA-Z0-9_-]/","",$_POST['name'])){
|
||||
$form->addError("name","Unusable simbols. Allowed text format: a-z, A-Z, 0-9 and _ -");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
@@ -72,9 +70,7 @@ class Account {
|
||||
else if($_POST['pw'] == $_POST['name']) {
|
||||
$form->addError("pw",PW_INSECURE);
|
||||
|
||||
} elseif(preg_replace("/[a-zA-Z0-9]/","",$_POST['pw'])){
|
||||
$form->addError("name","Unusable simbols. Allowed text format: a-z, A-Z, 0-9");
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_EMPTY);
|
||||
|
||||
+1
-183
File diff suppressed because one or more lines are too long
@@ -863,6 +863,13 @@
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function ForumCatAlliance($id) {
|
||||
$q = "SELECT alliance from " . TB_PREFIX . "forum_cat where id = $id";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
return $dbarray['alliance'];
|
||||
}
|
||||
|
||||
function ForumCatName($id) {
|
||||
$q = "SELECT forum_name from " . TB_PREFIX . "forum_cat where id = $id";
|
||||
|
||||
Reference in New Issue
Block a user