[Authentication]
#4
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
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=

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";
}

?>
Reply
Thanks given by:


Messages In This Thread
[Authentication] - by SashaSansay - 11-21-2012, 10:00 PM
RE: [Authentication] - by xoft - 11-21-2012, 10:59 PM
RE: [Authentication] - by SashaSansay - 11-21-2012, 11:05 PM
RE: [Authentication] - by SashaSansay - 11-22-2012, 06:49 AM
RE: [Authentication] - by FakeTruth - 11-22-2012, 11:09 AM
RE: [Authentication] - by SashaSansay - 11-22-2012, 05:06 PM
RE: [Authentication] - by FakeTruth - 11-22-2012, 10:44 PM
RE: [Authentication] - by SashaSansay - 11-22-2012, 11:14 PM
RE: [Authentication] - by FakeTruth - 11-23-2012, 01:39 AM
RE: [Authentication] - by SashaSansay - 11-23-2012, 02:02 AM
RE: [Authentication] - by FakeTruth - 11-23-2012, 02:07 AM
RE: [Authentication] - by SashaSansay - 11-23-2012, 02:57 AM
RE: [Authentication] - by xoft - 11-23-2012, 06:13 AM
RE: [Authentication] - by SashaSansay - 11-24-2012, 06:00 PM
RE: [Authentication] - by NiLSPACE - 01-18-2013, 05:25 AM
RE: [Authentication] - by Luksor - 01-18-2013, 08:49 PM
RE: [Authentication] - by xoft - 01-19-2013, 04:20 AM



Users browsing this thread: 6 Guest(s)