mirror of
https://github.com/friendica/friendica
synced 2025-04-27 10:30:10 +00:00
inline salmon magic keys
This commit is contained in:
parent
cc64742e23
commit
013d2604f8
4 changed files with 31 additions and 8 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue