diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/policy/public/naplo | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
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 - -?> |