/** * Logic for export process. */ public function doExport() { global $supported; // Test connection $msg = $this->testDatabase(); if ($msg === true) { // Test src tables' existence structure $msg = $this->ex->verifySource($this->sourceTables); if ($msg === true) { // Good src tables - Start dump $this->ex->useCompression(true); $this->ex->filenamePrefix = $this->dbInfo['dbname']; set_time_limit(60 * 60); // ob_start(); $this->forumExport($this->ex); // $Errors = ob_get_clean(); $msg = $this->ex->comments; // Write the results. Send no path if we don't know where it went. $relativePath = $this->param('destpath', false) ? false : $this->ex->path; viewExportResult($msg, 'Info', $relativePath); } else { viewForm(array('Supported' => $supported, 'Msg' => $msg, 'Info' => $this->dbInfo)); } // Back to form with error } else { viewForm(array('Supported' => $supported, 'Msg' => $msg, 'Info' => $this->dbInfo)); } // Back to form with error }