From 6fe97135a167df510ffd29d01087f6a2fcf0c714 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Mon, 28 Apr 2014 11:24:00 +0200 Subject: [PATCH] Use new Admin Access --- php/access/{admin.php => admin2.php} | 0 php/api.php | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename php/access/{admin.php => admin2.php} (100%) diff --git a/php/access/admin.php b/php/access/admin2.php similarity index 100% rename from php/access/admin.php rename to php/access/admin2.php diff --git a/php/api.php b/php/api.php index 95430c5..2056d45 100755 --- a/php/api.php +++ b/php/api.php @@ -73,7 +73,10 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) { ### define('LYCHEE_ACCESS_ADMIN', true); - require(__DIR__ . '/access/admin.php'); + require(__DIR__ . '/access/admin2.php'); + + $admin = new Admin($database, $plugins, $settings); + $admin->check($_POST['function']); } else {