public function main() { $session = $this->container->session; if ($session->isStorageWorking()) { $this->setRedirect('index.php?view=main'); return; } parent::main(); }
public function main() { $session = ASession::getInstance(); if ($session->isStorageWorking()) { $this->setRedirect('index.php?view=main'); return; } parent::main(); }
public function main() { /** @var AngieModelMauticConfiguration $config */ $config = AModel::getAnInstance('Configuration', 'AngieModel', array(), $this->container); // These values are stored inside the session, after the setup step $old_url = $config->get('old_live_site'); $new_url = $config->get('live_site'); // If we are restoring to the same URL we don't need to replace any data if ($old_url == $new_url) { $this->setRedirect('index.php?view=finalise'); return; } parent::main(); }
public function main() { /** @var AngieModelWordpressConfiguration $config */ $config = AModel::getAnInstance('Configuration', 'AngieModel', array(), $this->container); // These values are stored inside the session, after the setup step $old_url = $config->get('oldurl'); $new_url = $config->get('homeurl'); // If we are restoring to the same URL we don't need to replace any data if ($old_url == $new_url) { $this->setRedirect('index.php?view=finalise'); return; } if ($this->input->getBool('force', false)) { $session = $this->container->session; $session->set('dataReplacements', null); } parent::main(); }