示例#1
0
 /**
  * Executes this step.
  */
 public function execute()
 {
     // extend execution limit
     set_time_limit(0);
     // validate all previous steps
     if (!$this->validateForm()) {
         SpoonHTTP::redirect('index.php?step=1');
     }
     // delete cached data
     $this->deleteCachedData();
     // create configuration files
     $this->createConfigurationFiles();
     // init database
     $this->initDatabase();
     // define paths
     $this->definePaths();
     // install modules
     $this->installModules();
     // create locale cache
     $this->createLocaleFiles();
     // already installed
     SpoonFile::setContent(dirname(__FILE__) . '/../cache/installed.txt', date('Y-m-d H:i:s'));
     // show success message
     $this->showSuccess();
     // clear session
     SpoonSession::destroy();
     // show output
     $this->tpl->display('layout/templates/step_7.tpl');
 }
示例#2
0
<?php

date_default_timezone_set('Europe/Berlin');
// set include path
ini_set("include_path", ".:../../library/");
// required classes
require_once 'spoon/spoon.php';
require_once 'publicApp/publicApp.php';
SpoonSession::start();
SpoonSession::destroy();
SpoonHTTP::redirect('index.php');