function setShopPid($shop_pid) { $this->shop_pid = $shop_pid; $ms = array(); $tmp = mslib_befe::loadConfiguration($this->shop_pid); $ms['MODULES'] = $tmp; $ms = mslib_befe::convertConfiguration($ms); $this->ms = $ms; }
$content .= '<BR><strong>' . $insert_records . '</strong> ' . ($insert_records == 1 ? 'record' : 'records') . ' added.<hr><BR>'; } } else { $content .= 'File is not valid. Restore didn\'t succeed.'; } $content .= '</fieldset>'; // now remove the backup folder if ($fullpath) { $tmp = $this->deltree($fullpath); } } // restore database eof break; case 'backup': $this->ms['MODULES'] = mslib_befe::loadConfiguration($_GET['page_uid']); $this->ms = mslib_befe::convertConfiguration($this->ms); // backup database if ($_GET['action'] == 'backup' and is_numeric($_GET['page_uid'])) { $tables = array(); if (in_array('customers', $_GET['tx_multishop_pi']['selected_tables']) or !count($_GET['tx_multishop_pi']['selected_tables'])) { $tables[] = 'tt_address'; $tables[] = 'fe_users'; } if (in_array('cms', $_GET['tx_multishop_pi']['selected_tables']) or !count($_GET['tx_multishop_pi']['selected_tables'])) { $tables[] = 'tx_multishop_cms'; $tables[] = 'tx_multishop_cms_description'; } if (in_array('configuration', $_GET['tx_multishop_pi']['selected_tables']) or !count($_GET['tx_multishop_pi']['selected_tables'])) { $tables[] = 'tx_multishop_configuration'; $tables[] = 'tx_multishop_configuration_values'; }