config save not saving cong in /configs | Report Bugs | Free Forums

All Wordpress Forum requests have been moved to Wordpress Support Forums

 

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
config save not saving cong in /configs
October 12, 2012
12:46 am
Avatar
Christopher
Member
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: UTC 0

Most Users Ever Online: 867

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tom_1: 70

mlguru: 33

Django29: 29

D: 21

Andy: 21

Marcus: 20

Member Stats:

Guest Posters: 737

Members: 41732

Moderators: 1

Admins: 1

Forum Stats:

Groups: 3

Forums: 7

Topics: 2517

Posts: 8419

Newest Members:

mashaa mashaa

Moderators: Ovidiu - Support!: 0

Administrators: XCloner! Support: 2485

Quick contact

place

Hi there, my name is Ovidiu Liuta and i support the XCloner! project
XCloner is a Joomla backup component, Wordpress backup plugin and Free website backup tool.
Contact me here!

About company

XCloner.com is a dynamic company focusing on providing backup and recovery solutions for small to medium websites.
We are based in Romania and offer 24/7 support through forums and our private ticket system for Premium users support.

© 2020 XCloner - Website Backup and Restore made simple
All Rights Reserved | Privacy Policy