function run() { session_start(); require_once '../civicrm.config.php'; require_once 'CRM/Core/Config.php'; $config =& CRM_Core_Config::singleton(); // this does not return on failure CRM_Utils_System::authenticateScript(true); require_once 'CRM/Core/BAO/Setting.php'; CRM_Core_BAO_Setting::doSiteMove(); echo "Site Move Completed. Please visit <a href=\"{$config->userFrameworkBaseURL}\">your moved site</a> and test the move<p>"; }
function run() { session_start(); require_once '../../civicrm.config.php'; require_once 'CRM/Core/Config.php'; $config =& CRM_Core_Config::singleton(); // this does not return on failure CRM_Utils_System::authenticateScript(true); require_once 'CRM/Core/BAO/Setting.php'; $moveStatus = CRM_Core_BAO_Setting::doSiteMove(); echo $moveStatus . '<br />'; echo ts("If no errors are displayed above, the site move steps have completed successfully. Please visit <a href=\"{$config->userFrameworkBaseURL}\">your moved site</a> and test the move."); }