Pas 3.6 > Pas / Sitetemplate / Includes / Globalvar.inc.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Pas 3.6

Download:
pas-3.6.zip

Category:
Development Tools

Archive Content:

Pas > Class > Mysql

Pas > Class

Pas > Class > Odbc

Pas > Class > Pgsql

Pas

Pas > Events

Pas > Registry

Pas > Scripts

Pas > Sitetemplate

Pas > Sitetemplate > Includes

Pas > Sitetemplate > Report

Pas > Templates

Pas > Templates > Packagedefaultstructure > Docs > Defaultstructure

Pas > Templates > Packagedefaultstructure

Globalvar.inc.php:


<?php 
// Copyright 2001 - 2004 SQLFusion LLC           info <at> sqlfusion <dot> com

  /**
   * Global events to manage Event specific global vars.
   * This is where the Event saved in session are managed and killed.
   *
   * @package PASSiteTemplate
   * @author Philippe Lewicki  <phil <at> sqlfusion <dot> com>
   * @copyright  SQLFusion LLC 2001-2004
   * @version 3.0
   */

  
if (!is_array($globalevents)) {
    
$globalevents['Init'] = ;
    
session_register("globalevents") ;
  } else {
    while (list(
$key,  $value)= each($globalevents)) {
      if (
$value) {
        if((
eregi($value,  $PHP_SELF)) && ($value) && (is_object($$key))) {
            
$params = $$key->getParams() ;
            if (
is_array($params)) {
                while(list(
$name,  $value) = each($params)) {
                    $
$name $value ;
                }
            }
            $
$key->setFree() ;
        } elseif(
is_object($$key) && ($$key->isFree())) {
            $
$key->free($key) ;
        }
      }
    }
    if (!
is_array($garbagevents)) {
      
$garbagevents['init'] = ;
      
session_register("garbagevents") ;
    }
    while (list(
$key,  $value)= each($garbagevents)) {
      if((
$value) && ($mydb_events[20] != "mydb.registerGlobalEvent" ) && (is_object($$key))) {
         $
$key->free($key) ;
      }
    }
  }

?>


Other Development Tools Scripts:

WebMaster Resources Home

©RingsWorld.com