Login   Register  
PHP Classes
elePHPant
Icontem

File: top.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2005-07-31 10:29
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'FALSEFALSE) ;
}
$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>' ;
*/
?>