1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Test admin scripts are parsing correctly.

This commit is contained in:
Cameron
2021-01-16 13:32:35 -08:00
parent 692b8c8538
commit 04bbad449a
59 changed files with 709 additions and 4374 deletions

View File

@@ -8,7 +8,7 @@
* Exists only for BC.
*/
require_once("../class2.php");
require_once(__DIR__.'/../class2.php');
if (!getperms("B"))
{
@@ -19,11 +19,11 @@ if (!getperms("B"))
$tmp = explode(".", e_QUERY);
$table = $tmp[0];
$id = intval($tmp[1]);
$editid = intval($tmp[2]);
$id = (int) varset($tmp[1]);
$editid = (int) varset($tmp[2]);
$url = e_ADMIN_ABS."comment.php?searchquery=".$id."&filter_options=comment_type__".e107::getComment()->getCommentType($table);
e107::getRedirect()->go($url);
exit;