Permalink
Browse files

v3.0.4 - Fix bugs with backupCore

-v3.0.4.
-Fix bugs with backupCore on and around lines 61, 81, and 88.
-Revise some of the checks.
-Hide the Backup Now button in settings page when $BackupsEnabled is set to anything but '1'.
-Commit the first version of cron shell script for testing.
  • Loading branch information...
zelon88 committed Jan 6, 2019
1 parent ea81a79 commit a1effaccc5f98e0eedf2b97d2e168a27408b7eb0
Showing with 1 addition and 1 deletion.
  1. +1 −1 settingsCore.php
@@ -353,7 +353,7 @@ function selectChanged(id1, id2) {
// / -----------------------------------------------------------------------------------
// / The following code loads the backupCore to perform an admin on-demand backup,
if (isset($_POST['backupNowToken'])) {
if (isset($_POST['backupUserDataNow'])) {
if (!file_exists(realpath(dirname(__FILE__)).'/backupCore.php')) die ('</head><body>ERROR!!! HRC2SettingsCore355, Cannot process the HRCloud2 Backup Core file (backupCore.php)!<br /></body></html>');
else require(realpath(dirname(__FILE__)).'/backupCore.php');
echo('Backup Complete!'.$br);

0 comments on commit a1effac

Please sign in to comment.