<?php
//top of every page or script
include_once '../screenstack.class.php' ;
session_start() ;
if (! $_SESSION['sst']) {
$_SESSION['sst'] = new screenstack('default.php?stack=i', FALSE, FALSE) ;
}
$rs = $_SESSION['sst']->doURLcommand() ;
// if (! $rs) { if you want to handle an error in the same script-run do it here }
//for debugging:
/*
echo 'Object: '.print_r($_SESSION['sst'], TRUE).'<br>' ;
echo 'URL-stack: '.print_r($_SESSION['sst']->stackURLs, TRUE).'<br>' ;
echo 'ids-stack: '.print_r($_SESSION['sst']->stackids, TRUE).'<br>' ;
echo 'stackpointer: '.$_SESSION['sst']->stackpointer.'<br>' ;
echo 'currentURL: '.$_SESSION['sst']->currentURL.'<br>' ;
echo 'currentid: '.$_SESSION['sst']->currentid.'<br>' ;
echo 'freshid: '.$_SESSION['sst']->freshid.'<br>' ;
echo 'urlcommand: '.$_SESSION['sst']->urlcommand.'<br>' ;
echo 'needredirect: '.$_SESSION['sst']->needredirect.'<br>' ;
*/
?>
|