CMS  Version 3.9
delete.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("report", "report_manager");
3 
4 
5 if(!checkRole("admin,data"))
6 {
7  Fakoli::end("Insufficient privileges to delete a report.");
8 }
9 
10 $report_id = checkNumeric($_GET["report_id"]);
11 
12 if ($report_id)
13 {
15  $report->delete();
16 }
17 
18 Fakoli::end("OK");
19 ?>
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
Definition: core.inc:1149
if(!checkRole("admin,data")) $report_id
Definition: delete.inc:10
$report
Definition: save_report.inc:38