Indentation fix (#477)

spaces to tab
This commit is contained in:
Evil Puncker 2021-07-02 04:36:02 -03:00 committed by GitHub
parent 4e6adb7ce3
commit 35b1412042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -30,20 +30,20 @@ if (empty($_POST) === false) {
if (strlen($_POST['name']) < $config['minL'] || strlen($_POST['name']) > $config['maxL']) { if (strlen($_POST['name']) < $config['minL'] || strlen($_POST['name']) > $config['maxL']) {
$errors[] = 'Your character name must be between ' . $config['minL'] . ' - ' . $config['maxL'] . ' characters long.'; $errors[] = 'Your character name must be between ' . $config['minL'] . ' - ' . $config['maxL'] . ' characters long.';
} }
// name restriction // name restriction
$resname = explode(" ", $_POST['name']); $resname = explode(" ", $_POST['name']);
$username = $_POST['name']; $username = $_POST['name'];
foreach($resname as $res) { foreach($resname as $res) {
if(in_array(strtolower($res), $config['invalidNameTags'])) { if(in_array(strtolower($res), $config['invalidNameTags'])) {
$errors[] = 'Your username contains a restricted word.'; $errors[] = 'Your username contains a restricted word.';
} }
if(strlen($res) == 1) { if(strlen($res) == 1) {
$errors[] = 'Too short words in your name.'; $errors[] = 'Too short words in your name.';
} }
} }
if(in_array(strtolower($username), $config['creatureNameTags'])) { if(in_array(strtolower($username), $config['creatureNameTags'])) {
$errors[] = 'Your username contains a creature name.'; $errors[] = 'Your username contains a creature name.';
} }
// Validate vocation id // Validate vocation id
if (!in_array((int)$_POST['selected_vocation'], $config['available_vocations'])) { if (!in_array((int)$_POST['selected_vocation'], $config['available_vocations'])) {
$errors[] = 'Permission Denied. Wrong vocation.'; $errors[] = 'Permission Denied. Wrong vocation.';