Current Path : /home/c247essa/public_html/

Linux c22487.sgvps.net 3.12.18-clouder0 #1 SMP Tue Oct 9 18:14:47 EEST 2018 x86_64

Upload File :
Current File : /home/c247essa/public_html/checkuser.php
<?php
include 'backend.php';
foreach($_GET as $key => $value) {
	$get[$key] = filter($value);
}

$user = mysql_real_escape_string($get['user']);

if(isset($get['cmd']) && $get['cmd'] == 'check') {

if(!isUserID($user)) {
echo "Use only letters, numbers, or underscore";
exit();
}

if(empty($user) && strlen($user) <=3) {
echo "Enter 6 chars or more";
exit();
}
$rs_duplicate = mysql_query("select count(*) as total from mu_members where username='$user' ") or die(mysql_error());
list($total) = mysql_fetch_row($rs_duplicate);

	if ($total > 0)
	{
	echo "Already taken. Please choose another username";
	} else {
	echo "Available: You can use this.";
	}
	exit();
}
?>