mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-06-15 09:14:30 +02:00
Added client 11 and above restriction to login webservice (#414)
* Added client 11 and above restriction to login webservice
This commit is contained in:
parent
b99cf6fd3e
commit
8d959350d3
@ -643,6 +643,7 @@
|
||||
);
|
||||
|
||||
// Gameserver info is used for client 11+ loginWebService
|
||||
$config['login_web_service'] = true; // loginWebService for client 11+ enabled?
|
||||
$config['gameserver'] = array(
|
||||
'ip' => '127.0.0.1',
|
||||
'port' => 7172,
|
||||
|
@ -2,7 +2,7 @@
|
||||
require_once 'engine/init.php';
|
||||
|
||||
// Client 11 loginWebService
|
||||
if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === 'TFS_10') {
|
||||
if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === 'TFS_10' && $config['login_web_service'] == true) {
|
||||
|
||||
function jsonError($message, $code = 3) {
|
||||
die(json_encode(array('errorCode' => $code, 'errorMessage' => $message)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user