User.php: Removed use of checkForumUsername. ajax.php: Changed username check to allways return true.
This commit is contained in:
1 parent
5e9754bc2d
commit
057082578a
2 files changed
+22
-35
No files matched your search
+11
-10
@@ -72,15 +72,16 @@ if ($action == 'checkZip'){
|
||||
printRemoveCatXML($type);
|
||||
|
||||
}else if ($action == 'checkUsername') {
|
||||
$username = $_REQUEST['username'];
|
||||
$conn = db_connect("forum");
|
||||
$sql = sprintf("SELECT user_id FROM phpbb_users u "."WHERE username_clean = '%s' ", strtolower($username));
|
||||
$result = & $conn->query($sql);
|
||||
if ($result->numRows() == 0) {
|
||||
$status = "true";
|
||||
}else {
|
||||
$status = "false";
|
||||
}
|
||||
$status = "true";
|
||||
//$username = $_REQUEST['username'];
|
||||
//$conn = db_connect("forum");
|
||||
//$sql = sprintf("SELECT user_id FROM phpbb_users u "."WHERE username_clean = '%s' ", strtolower($username));
|
||||
//$result = & $conn->query($sql);
|
||||
//if ($result->numRows() == 0) {
|
||||
// $status = "true";
|
||||
//}else {
|
||||
// $status = "false";
|
||||
//}
|
||||
?><username>
|
||||
<status><?php print $status; ?></status>
|
||||
</username>
|
||||
@@ -114,4 +115,4 @@ function printRemoveCatXML($type){
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Reference in new issue
Block a user