User.php: Removed use of checkForumUsername. ajax.php: Changed username check to allways return true.

This commit is contained in:
nikolark committed 2011-08-29 22:22:06 +02:00
1 parent 5e9754bc2d
commit 057082578a
2 files changed
+22 -35

No files matched your search

+11 -10
View File
@@ -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
}
?>
?>