-
Notifications
You must be signed in to change notification settings - Fork 6
/
glld.php
26 lines (21 loc) · 918 Bytes
/
glld.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
//automate graphing of multiple LLD items on same graph
require_once dirname(__FILE__).'/include/config.inc.php';
require_once dirname(__FILE__).'/glld/glld.inc.php';
if (!empty($_GET['popup'])) itemPopup(); //popup for item proto select
$page['title'] = _('Graph multiple LLD items');
$page['file'] = 'glld.php';
$page['scripts'] = ['multiselect.js'];
require_once dirname(__FILE__).'/include/page_header.php';
//routing
switch (getRequest('action')) {
case 'task.massdisable': taskStatus(true); break;
case 'task.massenable': taskStatus(false); break;
case 'task.massrun': taskRun(); break;
case 'task.massclean': taskClean(); taskList(); break;
case 'task.massdelete': taskDelete(); taskList(); break;
default:
if (isset($_REQUEST['form'])) taskEdit();
else taskList();
}
require_once dirname(__FILE__).'/include/page_footer.php';