Location: PHPKode > projects > Banshee PHP Framework > public/slimstat/changes.txt
- add session_name("WebsiteSessionID") to index.php, before session_start().
- add unset($_SESSION) to logout() in index.php, after session_destroy().
- end of logout() in index.php:
	@setcookie('slimstatuser');

	header("Location: /");
	exit;
- add following code to _lib/config.php, start of SlimStatConfig():
	$settings = array();
	foreach (file("../../settings/website.conf") as $line) {
		if (($line  = preg_replace('/#.*/', "", trim($line))) == "") {
			continue;
		}
		list($key, $value) = explode("=", $line);
		$settings[trim($key)] = trim($value);
	}
	$this->db_server = $settings["DB_HOSTNAME"];
	$this->db_username = $settings["DB_USERNAME"];
	$this->db_password = $settings["DB_PASSWORD"];
	$this->db_database = $settings["DB_DATABASE"];

	$this->slimstat_username = $settings["SLIMSTAT_USERNAME"];
	$this->slimstat_password = $settings["SLIMSTAT_PASSWORD"];
- add following lines to page/_head.php, after logout menu item:
	echo '<li><a href="/admin">CMS</a></li>';
	echo '<li><a href="/">Website</a></li>';
  CMS line also after } else {
Return current item: Banshee PHP Framework