* qascript@ifsoft.co.uk * * Copyright 2012-2016 Demyanchuk Dmitry (https://vk.com/dmitry.demyanchuk) */ include_once $_SERVER['DOCUMENT_ROOT'] . "/core/init.inc.php"; if (!admin::isSession()) { header("Location: /admin/login.php"); } $report = new report($dbo); if (isset($_GET['act'])) { $act = isset($_GET['act']) ? $_GET['act'] : ''; $token = isset($_GET['access_token']) ? $_GET['access_token'] : ''; if (admin::getAccessToken() === $token && !APP_DEMO) { switch ($act) { case "clear": $report->removeAllPhotoReports(); header("Location: /admin/photo_reports.php"); break; default: header("Location: /admin/photo_reports.php"); } } header("Location: /admin/photo_reports.php"); } $page_id = "photo_reports"; $error = false; $error_message = ''; helper::newAuthenticityToken(); $css_files = array("admin.css"); $page_title = "Photo Reports"; include_once $_SERVER['DOCUMENT_ROOT'] . "/common/header.inc.php";