New pages to control generation queue
This commit is contained in:
parent
8b3d771fd1
commit
5836a3c3d8
6 changed files with 139 additions and 6 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
@$template->assign("DEF_TIME", $VAR['default_time']);
|
||||
|
||||
if (empty($VAR['misc_dir']))
|
||||
{
|
||||
erreur("Please add <var>misc_dir</var> variable into <code>root.xml</code> configuration.");
|
||||
|
|
@ -10,10 +12,7 @@ if (empty($VAR['misc_dir']))
|
|||
$misc_dir = $VAR['misc_dir'];
|
||||
|
||||
if (!is_dir("$misc_dir/shared") || !is_writable("$misc_dir/shared"))
|
||||
{
|
||||
erreur("<code>$misc_dir/shared/</code> directory not writable.");
|
||||
return "admin/home";
|
||||
}
|
||||
|
||||
$template->assign("cert_writable", is_writable("$misc_dir/shared/") && is_writable("$misc_dir/PKI/"));
|
||||
|
||||
|
|
@ -37,4 +36,10 @@ if (file_exists($srv_file))
|
|||
openssl_x509_parse(file_get_contents($srv_file)));
|
||||
}
|
||||
|
||||
/* GENERATION */
|
||||
|
||||
$queue = explode("\n", pipe_backend_scheduler("show"));
|
||||
unset($queue[0], $queue[1]);
|
||||
$template->assign("queue", array_filter($queue, function($var){ return !empty($var); }));
|
||||
|
||||
return "admin/home";
|
||||
|
|
|
|||
Reference in a new issue