config save not saving cong in /configs | Report Bugs | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
config save not saving cong in /configs
October 12, 2012
12:46 am
Avatar
Christopher
Melbourne, Australia
Member
Members
Forum Posts: 13
Member Since:
October 6, 2012
sp_UserOfflineSmall Offline

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'] != "") {

//***CWM hack - 2012-10-12
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

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0