Skip to content

Commit e71b49c

Browse files
committed
remove formTokenGet
1 parent eb5dc38 commit e71b49c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

plugins/restapi/call.php

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
$doc->output();
2929
return;
3030
}
31-
//No HTML-output, please!
3231
ob_end_clean();
3332

3433
$cmd = $_REQUEST['cmd'];

plugins/restapi/includes/messages.php

-9
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,4 @@ public static function messageUpdate($id = 0)
171171
}
172172
}
173173

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

0 commit comments

Comments
 (0)