<commit_before><?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * S7Ncms - www.s7n.de
 *
 * Copyright (c) 2007-2009, <NAME> <eduard at baun.de>
 * All rights reserved.
 *
 * See license.txt for full text and disclaimer
 *
 * @author <NAME> <eduard at baun.de>
 * @copyright <NAME>, 2007-2009
 * @version $Id$
 */
class Install_Controller extends Template_Controller {

	public function __construct()
	{
		if (file_exists(DOCROOT.'config/database.php'))
			die('S7Ncms is already installed.');
		
		parent::__construct();
		
		$this->template->bind('title', $this->title);
		$this->template->bind('content', $this->content);
		$this->template->bind('error', $this->error);
	}

	public function index()
	{
		url::redirect('install/step_systemcheck');<commit_msg>destroy the session when you start installing<commit_after><?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * S7Ncms - www.s7n.de
 *
 * Copyright (c) 2007-2009, <NAME> <eduard at baun.de>
 * All rights reserved.
 *
 * See license.txt for full text and disclaimer
 *
 * @author <NAME> <eduard at baun.de>
 * @copyright <NAME>, 2007-2009
 * @version $Id$
 */
class Install_Controller extends Template_Controller {

	public function __construct()
	{
		if (file_exists(DOCROOT.'config/database.php'))
			die('S7Ncms is already installed.');
		
		parent::__construct();
		
		$this->template->bind('title', $this->title);
		$this->template->bind('content', $this->content);
		$this->template->bind('error', $this->error);
	}

	public function index()
	{
		Session::instance()->destroy();
		
		url::redirect('install/step_systemcheck');
{'fraction_non_alphanumeric': 0.17292307692307693, 'fraction_numerical': 0.023384615384615386, 'mean_word_length': 4.493243243243243, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3689838', 'n_tokens_mistral': 582, 'n_tokens_neox': 518, 'n_words': 126}