PHP Classes


Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Wolter Kaper  >  Screen Stack  >  >  Download  
Role: Auxiliary script
Content type: text/plain
Description: top include for all scripts
Class: Screen Stack
Implement stacked pages navigation
Author: By
Last change:
Date: 10 years ago
Size: 918 bytes


Class file image Download
//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>' ;