Location: PHPKode > projects > PAS SiteManager > passitemanager/includes/globalvar.inc.php
<?php 
// Global events to manage Event specific global vars.
  if (!is_array($globalevents)) {
    $globalevents[Init] = 0 ;
    session_register("globalevents") ;
  } else {
    while (list($key, $value)= each($globalevents)) {
      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] = 0 ;
      session_register("garbagevents") ;
    }
    while (list($key, $value)= each($garbagevents)) {
      if(($value) && ($mydb_events[20] != "mydb.registerGlobalEvent" ) && (is_object($$key))) {
         $$key->free($key) ;
      }
    }
  }

?>
Return current item: PAS SiteManager