<?php require_once colesoLibrarian::lib_lname("fileoperation"); class colesoCacheRegistry { var $config; //------------------------------------------------------------------ function colesoCacheRegistry($fromInstance = '') { if ($fromInstance == '') { colesoErrDie('This is singleton: use getInstance instead of constructor'); } $this->readConfig(); } //------------------------------------------------------------------ static function getInstance($action = 'get') { static $instance = false; if ($action == 'reset') { $instance = false; return $instance; } if (!$instance) { $instance = new colesoCacheRegistry('instance'); } return $instance; } //-------------------------------- static function testReset() { $myVoid = colesoCacheRegistry::getInstance('reset');
<?php /********************************************************************************** * Copyright 2002-2006 H-type. http://www.h-type.com, mailto: smirnov@h-type.com * * Released under the MIT license (http://www.opensource.org/licenses/mit-license.html) *********************************************************************************** * * $Id$ ***********************************************************************************/ require_once colesoLibrarian::lib_lname("db"); class colesoUserLogin { var $login; var $uid; var $sessID; var $passwdType; //Password storage Type encrypted | full var $dbConn; var $tPrefix; var $sessionControl; var $ACL; function colesoUserLogin() { $this->dbConn = colesoDB::getConnection(); $this->passwdType = colesoApplication::getConfigVal('/system/loginPasswordType'); $this->tPrefix = colesoApplication::getConfigVal('/system/db/tablePrefix'); $this->sessionControl = new colesoControlLoginSession(); $this->ACL = new colesoACL(); } //- - - - - - - - - - - - - - - - - - - - - - - - - - -