Location: PHPKode > scripts > TinyWebGallery > tinywebgallery/inc/startsession.inc.php
  Copyright (c) 2004-2010 TinyWebGallery
  written by Michael Dempfle
  This program is free software; you can redistribute it and/or modify 
  it under the terms of the TinyWebGallery license (based on the GNU  
  General Public License as published by the Free Software Foundation;  
  either version 2 of the License, or (at your option) any later version. 
  See license.txt for details.
  TWG version: 1.8
  $Date: 2007-05-17 01:16:29 +0200 (Do, 17 Mai 2007) $
  $Revision: 56 $

defined('_VALID_TWG') or die('Direct Access to this location is not allowed.');

include_once dirname(__FILE__) . "/filefunctions.inc.php";

set_error_handler("on_error_no_output"); // this is needed because the session is already started if this include is used by index.php - at all other places here is the initialization of the session!

$current = get_server_name() . dirname(__FILE__); // used to avoid session infererence between two twg installations

if (isset($_SESSION['twg_latestlocation'])) {
	if ($_SESSION['twg_latestlocation'] != $current) {
		set_error_handler('on_error_no_output');// @does not work
$_SESSION['twg_latestlocation'] = $current;

$input_invalid = false;
$input_wrong_chars = false;

Return current item: TinyWebGallery