コード例 #1
0
ファイル: session.php プロジェクト: akeeba/angie
 public function main()
 {
     $session = $this->container->session;
     if ($session->isStorageWorking()) {
         $this->setRedirect('index.php?view=main');
         return;
     }
     parent::main();
 }
コード例 #2
0
ファイル: session.php プロジェクト: WineWorld/joomlatrialcmbg
 public function main()
 {
     $session = ASession::getInstance();
     if ($session->isStorageWorking()) {
         $this->setRedirect('index.php?view=main');
         return;
     }
     parent::main();
 }
コード例 #3
0
ファイル: mauticreplacedata.php プロジェクト: akeeba/angie
 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();
 }
コード例 #4
0
ファイル: wordpressreplacedata.php プロジェクト: akeeba/angie
 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();
 }