mirror of
https://github.com/moudsen/mailGraph
synced 2025-01-30 20:01:38 +01:00
v2.16 - Added auto-creation of IMAGES directory if not present
This commit is contained in:
parent
a7196f8bc5
commit
62a3ee6149
@ -683,7 +683,7 @@
|
|||||||
$z_tmp_cookies = $z_path.'tmp/';
|
$z_tmp_cookies = $z_path.'tmp/';
|
||||||
$z_log_path = $z_path.'log/';
|
$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))
|
if (!is_dir($z_tmp_cookies))
|
||||||
{
|
{
|
||||||
mkdir($z_tmp_cookies);
|
mkdir($z_tmp_cookies);
|
||||||
@ -696,6 +696,12 @@
|
|||||||
_log('+ created LOG directory "'.$z_log_path.'"');
|
_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)
|
// Zabbix user (requires Super Admin access rights to access image generator script)
|
||||||
$z_user = $config['zabbix_user'];
|
$z_user = $config['zabbix_user'];
|
||||||
$z_pass = $config['zabbix_user_pwd'];
|
$z_pass = $config['zabbix_user_pwd'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user