Backup Execution Fatal Error

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 13, 2012   (RSS)

Re: [sidcam] Backup Execution Fatal Error

By Jason - August 13, 2012

Hi Sid,

You can make a custom change to the backupDatabase function.

Always back a backup of your CMS file first!

Open up cmsAdmin/lib/database_functions.php

You can change the backupDatabase function around line 635 like this:

// leave tablename blank for all tables
function backupDatabase($filename = '', $selectedTable = '') {
global $TABLE_PREFIX;
$prefixPlaceholder = '#TABLE_PREFIX#_';

// allow up to 5 minutes to backup database
set_time_limit(60*5);


// error checking
if ($selectedTable != '') {
$schemaTables = getSchemaTables();
if (preg_match("/[^\w\d\-\.]/", $selectedTable)) { die(__FUNCTION__ ." : \$selectedTable contains invalid chars! " . htmlspecialchars($selectedTable)); }
if (!in_array($selectedTable, $schemaTables)) { die("Unknown table selected '" .htmlspecialchars($selectedTable). "'!"); }
}


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/