Ejemplo n.º 1
0
 function migrateGeneralFromVmOne()
 {
     $this->checkPermissionForTools();
     $this->storeMigrationOptionsInSession();
     if (!class_exists('Migrator')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'migrator.php';
     }
     $migrator = new Migrator();
     $result = $migrator->migrateGeneral();
     if ($result) {
         $msg = 'Migration general finished';
     } else {
         $msg = 'Migration general was interrupted by max_execution time, please restart';
     }
     $this->setRedirect($this->redirectPath, $result);
 }
Ejemplo n.º 2
0
 function migrateGeneralFromVmOne()
 {
     $data = JRequest::get('get');
     JRequest::checkToken() or jexit('Invalid Token, in ' . JRequest::getWord('task'));
     $this->checkPermissionForTools();
     $this->storeMigrationOptionsInSession();
     if (!class_exists('Migrator')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'migrator.php';
     }
     $migrator = new Migrator();
     $result = $migrator->migrateGeneral();
     if ($result) {
         $msg = 'Migration general finished';
     } else {
         $msg = 'Migration general was interrupted by max_execution time, please restart';
     }
     $this->setRedirect($this->redirectPath, $result);
 }