[Owp-cvs] owp/inc/startup owp.inc,1.4,1.5
Status: Inactive
Brought to you by:
scader
From: <owp...@li...> - 2006-04-25 22:27:15
|
Update of /cvsroot/owp/owp/inc/startup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8738/startup Modified Files: owp.inc Log Message: integrated main class with everything we need for work Index: owp.inc =================================================================== RCS file: /cvsroot/owp/owp/inc/startup/owp.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** owp.inc 20 Apr 2006 01:48:36 -0000 1.4 --- owp.inc 25 Apr 2006 22:27:07 -0000 1.5 *************** *** 41,44 **** --- 41,47 ---- @ define('owp_handlers_input','_process_input'); + /**Main class with environment info*/ + include_once 'tmain.class'; + /**Creates owp page and object if needed * @param string $file_name path to the template or owp file *************** *** 50,56 **** //if owp object was not created yet if(!is_object($smarty->owp)){ - include_once 'towp.class'; - $smarty->owp = &new towp($_SESSION); //creating main object, todo! }//\\if --- 53,63 ---- //if owp object was not created yet if(!is_object($smarty->owp)){ //creating main object, todo! + global $main; + $main = &new tmain(); + //owp object + include_once 'towp.class'; + $smarty->owp = &new towp($main->usersession->session); + }//\\if |