From 9b9b9a189704d311a17efee894b11c24398de523 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 10 Mar 2009 22:01:04 +0000 Subject: [PATCH] Remove. --- addKey.php | 121 ---------------------------------------------- add_key.php | 5 -- add_key_debug.php | 5 -- 3 files changed, 131 deletions(-) delete mode 100644 addKey.php delete mode 100644 add_key.php delete mode 100644 add_key_debug.php 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