Update guilds.php (#309)

* Update guilds.php

* Update guilds.php
This commit is contained in:
Glom83ersik 2017-10-08 19:35:23 +02:00 committed by Stefan A. Brannfjell
parent 64040451a7
commit 23425cf57d

View File

@ -115,6 +115,7 @@ if (user_logged_in() === true) {
if (preg_match("/^[a-zA-Z_ ]+$/", $_POST['guild_name'])) {
// Only allow normal symbols as guild name
if (strlen($_POST['guild_name']) < 31) {
$guildname = sanitize($_POST['guild_name']);
@ -126,6 +127,7 @@ if (user_logged_in() === true) {
header('Location: success.php');
exit();
} else echo 'A guild with that name already exist.';
} else echo 'Guild name is to long. It can has to be 30 or less characters long.';
} else echo 'Guild name may only contain a-z, A-Z and spaces.';
} else echo 'You are already in a guild.';
} else echo 'You need a premium account to create a guild.';