From: alex <bin...@li...> - 2001-07-26 01:52:21
|
alex Wed Jul 25 18:52:15 2001 EDT Modified files: /r2/binarycloud/base/core Page.php /r2/binarycloud/base/utils processprepend.php Log: Header mod, super simple. Index: r2/binarycloud/base/core/Page.php diff -u r2/binarycloud/base/core/Page.php:1.10 r2/binarycloud/base/core/Page.php:1.11 --- r2/binarycloud/base/core/Page.php:1.10 Sat Jul 14 17:28:10 2001 +++ r2/binarycloud/base/core/Page.php Wed Jul 25 18:52:06 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: Page.php,v 1.10 2001/07/15 00:28:10 alex Exp $ + * -File $Id: Page.php,v 1.11 2001/07/26 01:52:06 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Authors alex black, en...@tu... @@ -92,7 +92,7 @@ * This method first checks to see if $gPageDef[templates] exists. * If it doesn't exist, all of the module output is printed. * If it does exist, we find out if we should use the default template, - * $gPageDef[templates][def], or another named template: + * $gPageDef[templates][default], or another named template: * $gPageDef[templates][whatever_you_like]. This is done by checking the * query string for "whatever_you_like" (the key of the template you * would like to use). If that key is found, the master template defined @@ -106,7 +106,7 @@ $templates =& $gPageDef['templates']; if (isset($templates)) { global $_tmpl; - $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['def']; + $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['default']; import("user.tmpl.$tmpl[package].$tmpl[name]"); } else { echo join('', $this->output); @@ -128,7 +128,7 @@ $this->modules[$_group] = array_pad(array(),count($modules[$_group]['load']),0); foreach ($modules[$_group]['load'] as $pos=>$mod) { import("user.mod.$mod[package].$mod[name]"); - $this->modules[$_group][$pos] = new $mod['name']($mod['options']); + $this->modules[$_group][$pos] = new $mod['name']($mod['params']); if (isset($mod['id'])) { $this->modules_id[$mod['id']] =& $this->modules[$_group][$pos]; Index: r2/binarycloud/base/utils/processprepend.php diff -u r2/binarycloud/base/utils/processprepend.php:1.3 r2/binarycloud/base/utils/processprepend.php:1.4 --- r2/binarycloud/base/utils/processprepend.php:1.3 Mon Jun 25 10:01:32 2001 +++ r2/binarycloud/base/utils/processprepend.php Wed Jul 25 18:52:15 2001 @@ -2,10 +2,10 @@ <?php // {{{ Header /* - * -File $Id: processprepend.php,v 1.3 2001/06/25 17:01:32 odysseas Exp $ - * -License LGPL (http://www.gnu.org/copyleft/lesser.html) + * -File $Id: processprepend.php,v 1.4 2001/07/26 01:52:15 alex Exp $ + * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, Intacct Corp. - * -Author odysseas tsatalos, ody...@ya... + * -Author odysseas tsatalos, ody...@ya... */ // }}} |