mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +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:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user