diff options
Diffstat (limited to 'mayor-orig/www/policy/public/naplo')
-rw-r--r-- | mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php | 48 | ||||
-rw-r--r-- | mayor-orig/www/policy/public/naplo/rpc/rpc.php | 7 |
2 files changed, 0 insertions, 55 deletions
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 @@ -<?php - - require_once('include/share/ssl/ssl.php'); - /* Class: Interconnect AES */ - - /* remote procedure call remote controller */ - $rpcDetails = $_GET['detail']; - $initOMKod = readVariable($_GET['init'],'strictstring',0); - - try - { - $RPC = new Interconnect(); - $RPC->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 @@ -<?php - - global $DATA; - - if (count($DATA)>0) putResponse($DATA); // reply - -?> |