PHP Classes

File: top.inc.php

Recommend this page to a friend!
  Classes of Wolter Kaper   Screen Stack   top.inc.php   Download  
File: top.inc.php
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: 19 years ago
Size: 918 bytes
 

 

Contents

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