Skip to content

Commit

Permalink
remove formTokenGet
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Nov 18, 2015
1 parent eb5dc38 commit e71b49c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion plugins/restapi/call.php
Expand Up @@ -28,7 +28,6 @@
$doc->output();
return;
}
//No HTML-output, please!
ob_end_clean();

$cmd = $_REQUEST['cmd'];
Expand Down
9 changes: 0 additions & 9 deletions plugins/restapi/includes/messages.php
Expand Up @@ -171,13 +171,4 @@ public static function messageUpdate($id = 0)
}
}

public static function formtokenGet()
{
$key = md5(time().mt_rand(0, 10000));
Sql_Query(sprintf('insert into %s (adminid,value,entered,expires) values(%d,"%s",%d,date_add(now(),interval 1 hour))',
$GLOBALS['tables']['admintoken'], $_SESSION['logindetails']['id'], $key, time()), 1);
$response = new Response();
$response->setData('formtoken', $key);
$response->output();
}
}

0 comments on commit e71b49c

Please sign in to comment.