From 6ac5e048b3dc5206331186bab571e02f75c3454c Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 13 Nov 2012 20:53:33 -0800 Subject: cleanup --- mod/modexp.php | 34 ---------------------------------- mod/mood.php | 4 ++++ 2 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 mod/modexp.php (limited to 'mod') diff --git a/mod/modexp.php b/mod/modexp.php deleted file mode 100644 index a869fc1f9..000000000 --- a/mod/modexp.php +++ /dev/null @@ -1,34 +0,0 @@ -argc != 2) - killme(); - - $nick = $a->argv[1]; - $r = q("SELECT `pubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1", - dbesc($nick) - ); - - if(! count($r)) - killme(); - - $lines = explode("\n",$r[0]['pubkey']); - unset($lines[0]); - unset($lines[count($lines)]); - $x = base64_decode(implode('',$lines)); - - $r = ASN_BASE::parseASNString($x); - - $m = $r[0]->asnData[1]->asnData[0]->asnData[0]->asnData; - $e = $r[0]->asnData[1]->asnData[0]->asnData[1]->asnData; - - header("Content-type: application/magic-public-key"); - echo 'RSA' . '.' . $m . '.' . $e ; - - killme(); - -} - diff --git a/mod/mood.php b/mod/mood.php index ddd721823..98064beab 100755 --- a/mod/mood.php +++ b/mod/mood.php @@ -96,6 +96,10 @@ function mood_init(&$a) { } call_hooks('post_local_end', $arr); + + if($_SESSION['return_url']) + goaway(z_root() . '/' . $_SESSION['return_url']); + return; } -- cgit v1.2.3