From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php | 48 ---------------------- mayor-orig/www/policy/public/naplo/rpc/rpc.php | 7 ---- 2 files changed, 55 deletions(-) delete mode 100644 mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php delete mode 100644 mayor-orig/www/policy/public/naplo/rpc/rpc.php (limited to 'mayor-orig/www/policy/public/naplo/rpc') diff --git a/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php b/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php deleted file mode 100644 index 53328c7c..00000000 --- a/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php +++ /dev/null @@ -1,48 +0,0 @@ -setRemoteOMKod($initOMKod); - $REQUEST = $RPC->processRequest($rpcDetails); - $func = $REQUEST->func; - } - catch (Exception $e) - { - $func=''; - $DATA = array('error'=>$e->getMessage()); - } - // processing - - // MASTER BOSS -> portal/rpc/rpc, ez itt ELAVULT - $DATA = array(); - if (isset($func) && $func!='') { - switch ($func) { - case 'getVersion': - case 'ping': - $DATA = $RPC->prepareReply( - array('func'=>'getVersion','response_revision'=>_MAYORREV,'pong') - ); - $RPC->setResponse($DATA); - break; - case 'checkRegistration': - $otherPublicKey = getSslPublicKeyByOMKod($REQUEST->OMKOD); - if ($otherPublicKey===false) $valid=0; - elseif ($REQUEST->publicKey == $otherPublicKey) $valid=1; - else $valid=2; - $DATA = $RPC->prepareReply( - array('func'=>$func,'response'=>serialize($REQUEST),'valid'=>$valid) - ); - $RPC->setResponse($DATA); - default: - break; - } - } -?> diff --git a/mayor-orig/www/policy/public/naplo/rpc/rpc.php b/mayor-orig/www/policy/public/naplo/rpc/rpc.php deleted file mode 100644 index be00b0a5..00000000 --- a/mayor-orig/www/policy/public/naplo/rpc/rpc.php +++ /dev/null @@ -1,7 +0,0 @@ -0) putResponse($DATA); // reply - -?> -- cgit v1.2.3