backup lock

This commit is contained in:
usman@cyberpersons.com
2023-02-12 10:04:58 +05:00
parent e5122dbaf4
commit db41cd2b39
2 changed files with 6 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ class CPBackupsV2:
pass
def BackupData(self):
### This function will backup data of the website, also need to take care of directories that we need to exclude
### excluded directories are in a list self.data['ExcludedDirectories'] only backup data if backupdata check is on
## For example if self.data['BackupData'] is one then only run this function otherwise not

View File

@@ -1084,6 +1084,11 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
except:
pass
try:
cursor.execute("ALTER TABLE websiteFunctions_websites ADD COLUMN BackupLock INT DEFAULT 0;")
except:
pass
except OSError as msg:
Upgrade.stdOut(str(msg) + " [applyLoginSystemMigrations]")