* * @package SendStudio * @subpackage SendStudio_Functions */ /** * Include the base sendstudio functions. */ require(dirname(__FILE__) . '/sendstudio_functions.php'); $GLOBALS['ROOTDIR'] = $ROOTDIR; $GLOBALS['TABLEPREFIX'] = $TABLEPREFIX; $GLOBALS['ROOTURL'] = $ROOTURL; $GLOBALS['DBHOST'] = $DBHOST; $GLOBALS['DBUSER'] = $DBUSER; $GLOBALS['DBPASS'] = $DBPASS; $GLOBALS['DBNAME'] = $DBNAME; $GLOBALS['LicenseKey'] = $LicenseKey; $GLOBALS['ServerSending'] = $ServerSending; /** * Class for the upgrade process. This will run through all the queries needed to upgrade sendstudio 2004 to sendstudio nx, and change the config file. * * @package SendStudio * @subpackage SendStudio_Functions */ class Upgrade extends SendStudio_Functions { /** * Default characterset * @var String */ var $default_charset = 'ISO-8859-1'; /** * Process * Works out which step we are up to in the install process and passes it off for the other methods to handle. * * @return Void Works out which step you are up to and that's it. */ function Process() { if (isset($_GET['Action'])) { $action = strtolower($_GET['Action']); switch ($action) { case 'createbackup': $this->CreateBackup(); return; break; case 'popupiframe': header('Content-type: text/html; charset="' . SENDSTUDIO_CHARSET . '"'); $variables = array(); switch ($_GET['SubAction']) { case 'Backup': $tempList = $this->FetchTables(); $variables['ProgressTitle'] = 'Backup In Progress ...'; $variables['ProgressMessage'] = sprintf('Please wait while we attempt to backup %s tables...', count($tempList)); $variables['ProgressReport'] = ''; $variables['ProgressStatus'] = ''; $variables['ProgressURLAction'] = 'index.php?Page=Upgrade&Action=CreateBackup'; break; case 'CopyFiles': $tempList = list_directories($GLOBALS['ROOTDIR'] . 'temp/images', null, true); $variables['ProgressTitle'] = 'Copying files to new location ...'; $variables['ProgressMessage'] = sprintf('Please wait while we copy %s files to a new location...', count($tempList)); $variables['ProgressReport'] = ''; $variables['ProgressStatus'] = ''; $variables['ProgressURLAction'] = 'index.php?Page=Upgrade&Action=CopyFiles'; break; case 'UpgradeDatabase': $variables['ProgressTitle'] = 'Upgrading database ...'; $variables['ProgressMessage'] = 'Please wait while we upgrade tables in your database...'; $variables['ProgressReport'] = ''; $variables['ProgressStatus'] = ''; $variables['ProgressURLAction'] = 'index.php?Page=Upgrade&Action=UpgradeDatabase'; break; } print '
'. 'Step 1: Backup Errors |
There were problems creating a backup of your database. |
Step 2: Copy Errors |
There were problems copying images and attachments to their new locations. |
Step 3: Upgrade Errors |
There were problems upgrading your database. Please contact help@interspire.com and tell them the following errors occurred: |
Step 4: Upgrade Complete | ||||
|
Step 1: Problem Upgrading | ||
|