]> git.mxchange.org Git - friendica.git/blobdiff - mod/modexp.php
Merge branch 'master' of git://github.com/friendica/friendica
[friendica.git] / mod / modexp.php
old mode 100644 (file)
new mode 100755 (executable)
index d424b4c..bba2c28
@@ -1,6 +1,6 @@
 <?php
 
-include('library/asn1.php');
+require_once('library/asn1.php');
 
 function modexp_init(&$a) {
 
@@ -8,14 +8,14 @@ function modexp_init(&$a) {
                killme();
 
        $nick = $a->argv[1];
-       $r = q("SELECT `pubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
+       $r = q("SELECT `spubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
                        dbesc($nick)
        );
 
        if(! count($r))
                killme();
 
-       $lines = explode("\n",$r[0]['pubkey']);
+       $lines = explode("\n",$r[0]['spubkey']);
        unset($lines[0]);
        unset($lines[count($lines)]);
        $x = base64_decode(implode('',$lines));
@@ -30,4 +30,5 @@ function modexp_init(&$a) {
 
        killme();
 
-}
\ No newline at end of file
+}
+