The free forums are no longer in use. It remains available as read-only archive.
12:46 am
October 6, 2012
Well, I think it's a bug... certainly a suggestion anyway.
When there is one (or more) config files in /configs folder, it (they) does not get saved when normal cron.config is saved.
It is very tedious having to delete then re-save the file for every change - especially when one has to do manual crons (when server-side cron-tab) not available.
I tried adding the following hack at line 270 of cloner.functions.php but am unable to get the file the file re-written (permission 0644) :
-- before your: if ($_REQUEST['cron_save_as'] != "") {
if ($_REQUEST['cron_save_as'] == "") {
if ($handle = @opendir($_CONFIG['multiple_config_dir'])) {
while (false !== ($file = readdir($handle))) {
if( ($file!=".") && ($file!="..") &&($file!="") && (strstr($file, '.php'))){
if ($fp = @fopen($file, "w")) {
fwrite($fp, $cfg);
fclose($fp);
} else {
$msg = "Unable to save " . $file ;
}
}
}
closedir($handle);
}
}
//*** CWM hack end
All of which is a hack of bits & pieces of your code 🙂
The above just happens to be the last after some cleaner attempts of AND-ing ( && ) a couple of the IF's etc.
I know you are busy Ovidiu, I just wanted to raise the flag so-to-speak.
The issue is by no means mission critical.
Regards,
Chris
1 Guest(s)