-
Notifications
You must be signed in to change notification settings - Fork 5
/
ddns_token_list.php
40 lines (29 loc) · 1.08 KB
/
ddns_token_list.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/** @var app $app */
/** @var auth $auth */
$auth = $app->auth;
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = 'list/ddns_token.list.php';
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$auth->check_module_permissions('dns');
$app->uses('listform_actions');
// load custom config for PROXY_HOST variable
$default_config = array('PROXY_HOST' => '');
if (file_exists(dirname(__FILE__) . '/update.config.local.php')) {
$config_local = include dirname(__FILE__) . '/update.config.local.php';
$config = array_merge($default_config, $config_local);
} else {
$config = $default_config;
}
$app->tpl->setVar('PROXY_HOST', $config['PROXY_HOST']);
// $app->listform_actions->SQLExtWhere = "dns_soa.access = 'REJECT'";
// $app->listform_actions->SQLOrderBy = 'ORDER BY dns_soa.origin';
$app->listform_actions->onLoad();
?>