#!/usr/local/cpanel/3rdparty/bin/perl # gniza WHM Plugin — Dashboard use strict; use warnings; use lib '/usr/local/cpanel/whostmgr/docroot/cgi/gniza-whm/lib'; use Whostmgr::HTMLInterface (); use Cpanel::Form (); use GnizaWHM::Config; use GnizaWHM::Cron; use GnizaWHM::UI; # Redirect to setup wizard if gniza is not configured unless (GnizaWHM::UI::is_configured()) { print "Status: 302 Found\r\n"; print "Location: setup.cgi\r\n\r\n"; exit; } print "Content-Type: text/html\r\n\r\n"; Whostmgr::HTMLInterface::defheader('gniza Backup Manager — Dashboard', '', '/cgi/gniza-whm/index.cgi'); print GnizaWHM::UI::page_header('gniza Backup Manager'); print GnizaWHM::UI::render_nav('index.cgi'); print GnizaWHM::UI::render_flash(); # Quick links print qq{
| Name | Host | Port | Retention |
|---|---|---|---|
| $esc_name | $host | $port | $retention |
No remotes configured. Run the setup wizard to add one.
\n}; } print qq{| Schedule | Timing |
|---|---|
| $esc_name | $human |
No active gniza cron entries.
\n}; } print qq{| gniza version | } . GnizaWHM::UI::esc($version) . qq{ |