-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch.php
More file actions
38 lines (33 loc) · 702 Bytes
/
batch.php
File metadata and controls
38 lines (33 loc) · 702 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* @file
* Default page for batch operations.
*/
if(!defined('e107_INIT'))
{
require_once('../../class2.php');
}
if(!e107::isInstalled('batch'))
{
e107::redirect();
exit;
}
e107_require_once(e_PLUGIN . 'batch/includes/batch.php');
$output = _batch_page();
if($output === false)
{
// Access denied page.
require_once(HEADERF);
$error = e107::getError();
$error->set(403);
$error->setCaption('Access denied');
$error->setContent('You are not allowed to access this page.');
$error->render();
require_once(FOOTERF);
}
elseif(isset($output['content']))
{
require_once(HEADERF);
e107::getRender()->tablerender($output['caption'], $output['content']);
require_once(FOOTERF);
}