Re: Fail XI monitoring wizard on CentOS 5.2.5
Posted: Tue Mar 08, 2016 3:53 pm
Welp, as it turns out, I was wrong. If the last portion of the array is not exactly 40 characters, then absolutely nothing happens. If you update that block of code to the following, it should resolve your issues:
Sorry about that! 
Code: Select all
// Determine wizard directory/file name
$cdir = system("ls -1 ".$tmpdir."/");
$cname = $cdir;
if (strlen($cdir) > 40) {
$a = explode('-', $cdir);
if (strlen(end($a)) == 40) {
$i = count($a);
unset($a[$i-1]);
unset($a[$i-2]);
$cname = implode('-', $a);
}
}