diff --git a/addKey.php b/addKey.php deleted file mode 100644 index c04200f..0000000 --- a/addKey.php +++ /dev/null @@ -1,121 +0,0 @@ - 0) { - debug('Key '.$keyid.' added. sn='.$sn.', usrid='.$usrid); - reply(S_OK, $ci['secret'], $client, $nonce, $sn); -} else { - reply(S_BACKEND_ERROR, $ci['secret'], $client, $nonce); - exit; -} - -function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') { - global $tokenId, $secret, $usrid; - - if ($status == null) { - $status = S_BACKEND_ERROR; - } - - $a = array(); - - echo 'nonce='.($a['nonce'] = $nonce).PHP_EOL; - echo 'status='.($a['status'] = $status).PHP_EOL; - - if ($info != '') { - echo 'info='.($a['info'] = $info).PHP_EOL; - } - - if ($sn != '') { - echo 'sn='.$sn.PHP_EOL; - } - - echo 'token_id='.($a['token_id'] = $tokenId).PHP_EOL; - echo 'user_id='.($a['user_id'] = $usrid).PHP_EOL;//TODO - - echo 't='.($a['t']=getUTCTimeStamp()).PHP_EOL; - $h = sign($a, $apiKey); - echo 'h='.$h.PHP_EOL; - echo PHP_EOL; - -} // End reply - -?> diff --git a/add_key.php b/add_key.php deleted file mode 100644 index a4db7ab..0000000 --- a/add_key.php +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/add_key_debug.php b/add_key_debug.php deleted file mode 100644 index 4a81993..0000000 --- a/add_key_debug.php +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file