Ok I noticed there is a glitch with the kick command and I cant kick people with spaces in their name. Is there a way to fix that or block spaces from people's names?
If so please reply with what to change. Thanks in advance.
Moderators: OldWolf, re*s.t.a.r.s.*2
snipey50 wrote:Ok I noticed there is a glitch with the kick command and I cant kick people with spaces in their name. Is there a way to fix that or block spaces from people's names?
If so please reply with what to change. Thanks in advance.
<?php
$n = $_POST[name]
// page 2, name has been posted in a simple form, max 8 characters
$string = strtolower($n);
// name is now lower case
$new_string = preg_replace("/[^a-zA-Z0-9s]/", "", $string);
// alphabet only
// remove spaces
$new = str_replace(' ', '', $new_string);
// passed into session for the next page
$_SESSION[name]=$new;
?>
Return to General Support (v1.x)
Users browsing this forum: No registered users and 67 guests