From: alex <bin...@li...> - 2001-08-09 00:54:44
|
alex Wed Aug 8 17:54:39 2001 EDT Removed files: /r2/binarycloud/user/htdocs cache.php Modified files: /r2/binarycloud/user/htdocs page_cache_test.php Log: don't need this, early test file. Index: r2/binarycloud/user/htdocs/page_cache_test.php diff -u /dev/null r2/binarycloud/user/htdocs/page_cache_test.php:1.4 --- /dev/null Wed Aug 8 17:54:39 2001 +++ r2/binarycloud/user/htdocs/page_cache_test.php Wed Aug 8 17:54:39 2001 @@ -0,0 +1,123 @@ +<?php +// {{{ Header +/* + * -File $Id: page_cache_test.php,v 1.4 2001/08/09 00:54:39 alex Exp $ + * -License LGPL (http://www.gnu.org/copyleft/lesser.html) + * -Copyright 2001, The Turing Studio, Inc. + * -Author alex black, en...@tu... + */ +// }}} + +include_once('./prepend.php'); + +import('binarycloud.init.Init'); + +// ripped from /path/to/binarycloud/user/htdocs/index.xml +$gPageDef = array( + 'cache' => array( + 'expires' => '30', + 'var' => 'moo' + ), + 'title' => "binarycloud page title", + 'init' => array( + 'ini' => true, + 'auth' => false, + 'perm' => false, + 'sess' => true, + 'lang' => true, + 'cache' => true, + ), + 'templates' => array( + 'default' => array( + 'name' => "example", + 'package' => "html.masters", + 'type' => "html", + ), + 'other' => array( + 'name' => "other", + 'package' => "html.masters", + 'type' => "html", + ) + ), + + 'modules' => array( + 'content' => array( + 'layout' => array( + 'name' => "example", + 'package' => "html.layouts", + ), + 'load' => array( + array( + 'id' => 'mooboo', + 'name' => "OtherWorld", + 'package' => "hello_world", + 'load_order' => "3" + ), + array( + 'id' => 'some_other_unique_name', + 'name' => "SetLangExample", + 'package' => "set_lang_example", + 'load_order' => "6" + ), + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "1", + 'params' => array ( + 'example' => "this is an option value", + 'another' => 1 + ), + ), + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "5" + ), + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "4" + ), + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "2" + ), + + ), + ), + 'left' => array( + 'load' => array( + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "2" + ), + array( + 'name' => "HelloWorld", + 'package' => "hello_world", + 'load_order' => "1" + ), + ), + ), + ), +); + +$Init = new Init(); +$Init->Startup(); +$Page->BuildPage(); +$Init->Shutdown(); + +// output debug +$Debug->Output('script_time'); +//$Debug->Output('all_classes'); +//$Debug->Output('core_classes'); +$Debug->Output('messages'); +//$Debug->Output('system_constants'); +//$Debug->Output('user_constants'); +//$Debug->Output('vars'); +//$Debug->Output('server_env'); +//$Debug->Output('globals'); +//$Debug->Output('all'); + +?> |