mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
parent
64040451a7
commit
23425cf57d
@ -115,7 +115,8 @@ if (user_logged_in() === true) {
|
|||||||
|
|
||||||
if (preg_match("/^[a-zA-Z_ ]+$/", $_POST['guild_name'])) {
|
if (preg_match("/^[a-zA-Z_ ]+$/", $_POST['guild_name'])) {
|
||||||
// Only allow normal symbols as guild name
|
// Only allow normal symbols as guild name
|
||||||
|
if (strlen($_POST['guild_name']) < 31) {
|
||||||
|
|
||||||
$guildname = sanitize($_POST['guild_name']);
|
$guildname = sanitize($_POST['guild_name']);
|
||||||
|
|
||||||
$gid = get_guild_id($guildname);
|
$gid = get_guild_id($guildname);
|
||||||
@ -125,7 +126,8 @@ if (user_logged_in() === true) {
|
|||||||
$guilds = guild_list($config['TFSVersion']);
|
$guilds = guild_list($config['TFSVersion']);
|
||||||
header('Location: success.php');
|
header('Location: success.php');
|
||||||
exit();
|
exit();
|
||||||
} else echo 'A guild with that name already exist.';
|
} 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 'Guild name may only contain a-z, A-Z and spaces.';
|
||||||
} else echo 'You are already in a guild.';
|
} else echo 'You are already in a guild.';
|
||||||
} else echo 'You need a premium account to create a guild.';
|
} else echo 'You need a premium account to create a guild.';
|
||||||
@ -936,4 +938,4 @@ if ($forumExist !== false) {
|
|||||||
} // display form if user has a character in guild
|
} // display form if user has a character in guild
|
||||||
} // user logged in
|
} // user logged in
|
||||||
} // if warname as $_GET
|
} // if warname as $_GET
|
||||||
include 'layout/overall/footer.php'; ?>
|
include 'layout/overall/footer.php'; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user