v2.16 - Added auto-creation of IMAGES directory if not present

This commit is contained in:
root 2023-08-17 06:39:34 -04:00
parent a7196f8bc5
commit 62a3ee6149

View File

@ -683,7 +683,7 @@
$z_tmp_cookies = $z_path.'tmp/';
$z_log_path = $z_path.'log/';
// If tmp or log does not exist, create them
// If tmp, log, or images does not exist, create them
if (!is_dir($z_tmp_cookies))
{
mkdir($z_tmp_cookies);
@ -696,6 +696,12 @@
_log('+ created LOG directory "'.$z_log_path.'"');
}
if (!is_dir($z_images_path))
{
mkdir($z_images_path);
_log('+ created IMAGES directory "'.$z_images_path.'"');
}
// Zabbix user (requires Super Admin access rights to access image generator script)
$z_user = $config['zabbix_user'];
$z_pass = $config['zabbix_user_pwd'];