3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
20 require_once '../../civicrm.config.php';
21 require_once 'CRM/Core/Config.php';
23 $config = CRM_Core_Config
::singleton();
25 // this does not return on failure
26 CRM_Utils_System
::authenticateScript(TRUE);
27 if (!CRM_Core_Permission
::check('administer CiviCRM')) {
28 CRM_Utils_System
::authenticateAbort("User does not have required permission (administer CiviCRM).\n", TRUE);
31 require_once 'CRM/Core/BAO/ConfigSetting.php';
32 $moveStatus = CRM_Core_BAO_ConfigSetting
::doSiteMove();
34 echo $moveStatus . '<br />';
35 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.");