11-22-2012, 06:49 AM
(This post was last modified: 11-22-2012, 06:54 AM by SashaSansay.)
It's all so cool, but I don't understand, why server kicks me with DC "Bad Login", when auth in launcher is okay and all other Information is okay
This is checkserver.php
and this is setting.ini
in MySQL Charset is UTF-8
UPD:
Also It doesn't works if
This is checkserver.php
PHP Code:
<?php
define('INCLUDE_CHECK',true);
include ("connect.php");
$user = mysql_real_escape_string($_GET['user']);
$serverid = mysql_real_escape_string($_GET['serverId']);
$result = mysql_query("Select $db_columnUser From $db_table Where $db_columnUser='$user'") or die ("Запрос к базе завершился ошибкой.");
if(mysql_num_rows($result) == 1){
echo "YES";
} else{
echo "NO";
}
?>
and this is setting.ini
PHP Code:
[Authentication]
Server=http://tramway.in
Address=/auth/checkserver.php?user=%USERNAME%
; &serverId=%SERVERID%
Authenticate=1
in MySQL Charset is UTF-8
UPD:
Also It doesn't works if
PHP Code:
<?php
define('INCLUDE_CHECK',true);
include ("connect.php");
$user = mysql_real_escape_string($_GET['user']);
$serverid = mysql_real_escape_string($_GET['serverId']);
$result = mysql_query("Select $db_columnUser From $db_table Where $db_columnUser='$user'") or die ("Запрос к базе завершился ошибкой.");
if(mysql_num_rows($result) == 1){
echo "YES";
} else{
echo "YES";
}
?>