You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(47) |
Aug
(73) |
Sep
(104) |
Oct
(55) |
Nov
|
Dec
|
|---|
|
From: alex <bin...@li...> - 2001-08-22 18:22:55
|
alex Wed Aug 22 11:22:49 2001 EDT
Modified files:
/r2/binarycloud/user/conf datasources.php
/r2/binarycloud/user/mod/query_example QueryExample.php
Log:
Working QM & QueryExample module
Index: r2/binarycloud/user/conf/datasources.php
diff -u r2/binarycloud/user/conf/datasources.php:1.4 r2/binarycloud/user/conf/datasources.php:1.5
--- r2/binarycloud/user/conf/datasources.php:1.4 Mon Aug 20 13:00:14 2001
+++ r2/binarycloud/user/conf/datasources.php Wed Aug 22 11:22:49 2001
@@ -1,10 +1,10 @@
<?php
// {{{ Header
/*
- * -File $Id: datasources.php,v 1.4 2001/08/20 20:00:14 alex Exp $
- * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
+ * -File $Id: datasources.php,v 1.5 2001/08/22 18:22:49 alex Exp $
+ * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, The Turing Studio, Inc.
- * -Author alex black, en...@tu... *
+ * -Author alex black, en...@tu...
*/
// }}}
// {{{ Datasources
@@ -12,44 +12,35 @@
global $QueryManager;
$QueryManager->datasources = array(
+// uncomment if you use oci
'query_example' => array(
'database_name' => 'test',
- 'Type' => "mysql",
- 'Host' => "localhost", // replace
- 'User' => "root", // with your
- 'Password' => "sql", // setup
+ 'Type' => "oci",
+ 'User' => "r2",
+ 'Password' => "testpasswd",
'IncludePath' => BC_PATH."/ext/metabase",
'Persistent' => true,
- ),
- 'oracle_dev' => array(
- 'database_name' => "binarycloud_db",
- 'Type' => "oci",
- 'User' => "your_user",
- 'Password' => "your_password",
- 'IncludePath' => BC_PATH_BASE."db/",
- 'Persistent' => TRUE,
'Options' => array(
- 'SID' => "sidv",
+ 'SID' => "DBTRNG",
'HOME' => "/u01/oracle/product/8.1.6",
- 'DBAUser' => "system",
- 'DBAPassword' => "sys_passwd",
- 'mcryptkey' => "Kay string. Can be a file.",
- 'mcryptmode' => MCRYPT_MODE_CFB,
- 'mcryptcipher' => MCRYPT_TripleDES,
- 'mcryptiv' => "qwertyui"
+ 'DBAUser' => "System",
+ 'DBAPassword' => "Systhma",
),
),
- 'mysql_base' => array(
- 'database_name' => 'binarycloud',
+// uncomment if you use mysql
+/*
+ 'query_example' => array(
+ 'database_name' => 'test',
'Type' => "mysql",
- 'Host' => "localhost",
- 'User' => "example_user",
- 'Password' => "example_password",
- 'IncludePath' => BC_PATH_BASE."db/",
- 'Persistent' => TRUE
+ 'Host' => "localhost", // replace
+ 'User' => "root", // with your
+ 'Password' => "sql", // setup
+ 'IncludePath' => BC_PATH."/ext/metabase",
+ 'Persistent' => true,
),
+*/
);
// }}}
-?>
\ No newline at end of file
+?>
Index: r2/binarycloud/user/mod/query_example/QueryExample.php
diff -u r2/binarycloud/user/mod/query_example/QueryExample.php:1.2 r2/binarycloud/user/mod/query_example/QueryExample.php:1.3
--- r2/binarycloud/user/mod/query_example/QueryExample.php:1.2 Tue Aug 21 19:02:43 2001
+++ r2/binarycloud/user/mod/query_example/QueryExample.php Wed Aug 22 11:22:49 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*
- * -File $Id: QueryExample.php,v 1.2 2001/08/22 02:02:43 alex Exp $
+ * -File $Id: QueryExample.php,v 1.3 2001/08/22 18:22:49 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Entity
* -Author Andreas Aderhold, a.a...@th...
@@ -29,7 +29,7 @@
// doing a simple custom SELECT query
$query = array(
- 'QUERY' => 'SELECT newsid, news FROM news',
+ 'QUERY' => 'SELECT NEWSID, NEWS FROM NEWS',
'ARGTYPES' => array('integer','text'),
);
$this->result = $QueryManager->DoCustomQuery($query, null, true);
@@ -46,21 +46,24 @@
*/
function Output() {
- echo "<table>";
- echo "<th>NewsId</th>";
- echo "<th>News</th>";
- for ($row = 0; $row < count($this->result); $row++) {
- printf("<tr valign=\"top\"><td>%s</td><td>%s</td></tr>",
- $this->result[$row]['newsId'],
- $this->result[$row]['news']
- );
- }
- echo "</table>";
+?>
+<table>
+<th>News ID</th>
+<th>News</th>
+<? for ($row = 0; $row < count($this->result); $row++) { ?>
+<tr valign="top">
+<td><? echo $this->result[$row]['NEWSID']; ?></td>
+<td><? echo $this->result[$row]['NEWS']; ?></td>
+</tr>
+<? } ?>
+</table>
+<?
}
// }}}
// {{{ Vars
var $params;
+ var $result;
// }}}
}
// }}}
|
|
From: alex <bin...@li...> - 2001-08-22 17:51:00
|
alex Wed Aug 22 10:50:52 2001 EDT
Modified files:
/r2/binarycloud/base/core Debug.php
Log:
Charlie's Additions.
Index: r2/binarycloud/base/core/Debug.php
diff -u r2/binarycloud/base/core/Debug.php:1.6 r2/binarycloud/base/core/Debug.php:1.7
--- r2/binarycloud/base/core/Debug.php:1.6 Wed Aug 1 15:49:50 2001
+++ r2/binarycloud/base/core/Debug.php Wed Aug 22 10:50:52 2001
@@ -1,15 +1,14 @@
<?php
-// Header {{{
-/*******************************************************************************
- ** -File $Id: Debug.php,v 1.6 2001/08/01 22:49:50 alex Exp $
- ** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
- ** -Copyright 2001, The Turing Studio, Inc.
- ** -Author alex black, en...@tu...
- ******************************************************************************/
+// {{{ Header
+/* -File $Id: Debug.php,v 1.7 2001/08/22 17:50:52 alex Exp $
+ * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
+ * -Copyright 2001, The Turing Studio, Inc.
+ * -Author alex black, en...@tu...
+ */
+// }}}
$PACKAGE='binarycloud.core';
-// }}}
// {{{ Debug
/**
@@ -80,8 +79,9 @@
* @access public
*/
- function CaptureError($error) {
+ function CaptureError($label, $error='') {
if (BC_FLAG_DEBUG == true) {
+ $this->errors[] = $label;
$this->errors[] = $error;
return true;
} else {
@@ -227,6 +227,7 @@
$this->_output_vars();
$this->_output_server_env();
$this->_output_globals();
+ $this->_output_included_files();
break;
case "script_time":
$this->_output_script_time();
@@ -264,6 +265,9 @@
case "globals":
$this->_output_globals();
break;
+ case "included_files":
+ $this->_output_included_files();
+ break;
default:
$this->_output_script_time();
$this->_output_auth_info();
@@ -277,6 +281,7 @@
$this->_output_vars();
$this->_output_server_env();
$this->_output_globals();
+ $this->_output_included_files();
break;
}
@@ -653,16 +658,38 @@
// {{{ _output_errors
/**
- * Ditto _output_auth_info, but for Perm.
+ * Ditto _output_messages, but for Errors.
*
* @author alex black, en...@tu...
* @access private
*/
function _output_errors() {
+
$this->_output_header('Errors');
- }
+ if (is_array($this->errors)) {
+ $i = 0;
+ foreach ($this->errors as $key) {
+ if ($i == "0") {
+ $i++;
+ echo $key;
+ echo ": ";
+ } else {
+ if (is_array($key)) {
+ print_r($key);
+ } else {
+ echo $key;
+ }
+ echo "\n";
+ $i = 0;
+ }
+ }
+ } else {
+ echo "No errors have been captured";
+ }
+ }
+
// }}}
// {{{ _output_queries
@@ -697,6 +724,28 @@
}
// }}}
+ // {{{ _output_included_files
+ /**
+ * This method prints all of the included/required files.
+ *
+ * @author charles killian, ch...@al...
+ * @access private
+ */
+
+ function _output_included_files() {
+ $this->_output_header('Included files');
+ $included_files = get_included_files();
+ if (count($included_files) > 0) {
+ foreach ($included_files as $key) {
+ print_r($key);
+ echo "\n";
+ }
+ } else {
+ echo "No files have been included";
+ }
+ }
+
+ // }}}
// {{{ _output_header
/**
@@ -730,6 +779,7 @@
}
// }}}
+
}
// }}}
|
|
From: alex <bin...@li...> - 2001-08-22 02:02:50
|
alex Tue Aug 21 19:02:43 2001 EDT
Modified files:
/r2/binarycloud/user/mod/query_example QueryExample.php schema.sql
Log:
Modified the module and SQL to be oracle compatible. I suppose I shold test this on MySQL :)
Index: r2/binarycloud/user/mod/query_example/QueryExample.php
diff -u r2/binarycloud/user/mod/query_example/QueryExample.php:1.1 r2/binarycloud/user/mod/query_example/QueryExample.php:1.2
--- r2/binarycloud/user/mod/query_example/QueryExample.php:1.1 Mon Aug 20 14:08:52 2001
+++ r2/binarycloud/user/mod/query_example/QueryExample.php Tue Aug 21 19:02:43 2001
@@ -1,10 +1,10 @@
<?php
// Header {{{
/*
- * -File $Id: QueryExample.php,v 1.1 2001/08/20 21:08:52 alex Exp $
- * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
+ * -File $Id: QueryExample.php,v 1.2 2001/08/22 02:02:43 alex Exp $
+ * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Entity
- * -Author Andreas Aderhold, a.a...@th...
+ * -Author Andreas Aderhold, a.a...@th...
*/
// {{{ class QueryExample
@@ -29,7 +29,7 @@
// doing a simple custom SELECT query
$query = array(
- 'QUERY' => 'SELECT newsId, news FROM news',
+ 'QUERY' => 'SELECT newsid, news FROM news',
'ARGTYPES' => array('integer','text'),
);
$this->result = $QueryManager->DoCustomQuery($query, null, true);
Index: r2/binarycloud/user/mod/query_example/schema.sql
diff -u r2/binarycloud/user/mod/query_example/schema.sql:1.1 r2/binarycloud/user/mod/query_example/schema.sql:1.2
--- r2/binarycloud/user/mod/query_example/schema.sql:1.1 Mon Aug 20 14:08:52 2001
+++ r2/binarycloud/user/mod/query_example/schema.sql Tue Aug 21 19:02:43 2001
@@ -1,13 +1,16 @@
--- You have to insert these in database test
---
--- Table structure for table `news`
---
-CREATE TABLE news (
- newsId int(11) default NULL,
- news text
-) TYPE=MyISAM;
-
---
--- Dumping data for table `news`
---
-INSERT INTO news (newsId, news) VALUES ( '1', 'Hey, Congratualtions. Querymanager is working. You are reading a database record from the query_example. See user.mod.query_example for details.');
+-- You have to insert these in database test
+--
+-- Table structure for table `news`
+--
+CREATE TABLE news (
+ newsId int(11) default NULL,
+ news text
+) TYPE=MyISAM;
+
+-- For Oracle:
+CREATE TABLE news (newsid int default NULL,news varchar(255));
+
+--
+-- Dumping data for table `news`
+--
+INSERT INTO news (newsId, news) VALUES ( '1', 'Hey, Congratualtions. Querymanager is working. You are reading a database record from the query_example. See user.mod.query_example for details.');
|
|
From: Andreas A. <a.a...@th...> - 2001-08-21 09:38:13
|
r2/binarycloud/base/core/Debug.php
Added implementation of _output_errors() method. You can now output error
messages catched with $Debug->CaptureError(). Add $Debug->output('errors')
at the bottom of your bcp.
Andi
|
|
From: alex <bin...@li...> - 2001-08-21 03:25:22
|
alex Mon Aug 20 20:25:17 2001 EDT
Added files:
/r2/binarycloud/user/htdocs xml2phptest.xml.php
Log:
Xml2php htdocs test.
Index: r2/binarycloud/user/htdocs/xml2phptest.xml.php
+++ r2/binarycloud/user/htdocs/xml2phptest.xml.php
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: xml2phptest.xml.php,v 1.1 2001/08/21 03:25:17 alex Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************
}}} -->
<page>
<!--
Core components can be excluded from the load process by setting these
tags to FALSE. If the tags aren't defined, init assumes that their value is "TRUE"
-->
<init>
<ini>TRUE</ini>
<auth>FALSE</auth>
<perm>FALSE</perm>
<sess>FALSE</sess>
<output>FALSE</output>
<debug>FALSE</debug>
</init>
<!--
the "default" template is loaded automatically, unless one of the other tag names
exists in the query string: ?print for example, would cause the master template to
be switched to "masters/print.phtml"
-->
<template>
<def>
<path>masters/binarycloud.phtml</path>
<handler>html</handler>
</def>
<print>
<path>masters/print.phtml</path>
<handler>html</handler>
</print>
<other>
<path>masters/other.phtml</path>
<handler>wml</handler>
</other>
</template>
<modules>
<content>
<layout>tmpl/html/layouts/example.html</layout>
<module>
<path>static_pages/static_pages.cls</path>
<order>1</order>
<options>
<file>foo.phtml</file>
<string>1</string>
</options>
</module>
<module>
<path>static_pages/static_pages.cls</path>
<order>2</order>
<options>
<file>haa.phtml</file>
<string>1</string>
</options>
</module>
</content>
<left>
<module>
<path>static_pages/static_pages.cls</path>
<order>3</order>
<options>
<template>hello.phtml</template>
<string>2</string>
</options>
</module>
</left>
</modules>
</page>
|
|
From: alex <bin...@li...> - 2001-08-21 03:25:03
|
alex Mon Aug 20 20:24:57 2001 EDT
Added files:
/r2/binarycloud/user/conf conf.xml.php datasources.xml.php
langs.xml.php operations.xml.php
Modified files:
/r2/binarycloud/base/lib XMLUtils.php
/r2/binarycloud/base/utils xml2php.php
Log:
Andris' Conf files.
|
|
From: alex <bin...@li...> - 2001-08-20 21:08:58
|
alex Mon Aug 20 14:08:52 2001 EDT
Added files:
/r2/binarycloud/user/mod/query_example QueryExample.php schema.sql
schema.xml
Log:
Andreas' Query Mod.
Index: r2/binarycloud/user/mod/query_example/QueryExample.php
+++ r2/binarycloud/user/mod/query_example/QueryExample.php
<?php
// Header {{{
/*
* -File $Id: QueryExample.php,v 1.1 2001/08/20 21:08:52 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Entity
* -Author Andreas Aderhold, a.a...@th...
*/
// {{{ class QueryExample
/**
* This is the QueryExample class
*
*/
class QueryExample {
// {{{ method QueryExample($_params)
/**
* This method
*
* @access public
*/
function QueryExample($_params) {
$this->params = $_params;
global $QueryManager;
// doing a simple custom SELECT query
$query = array(
'QUERY' => 'SELECT newsId, news FROM news',
'ARGTYPES' => array('integer','text'),
);
$this->result = $QueryManager->DoCustomQuery($query, null, true);
return true;
}
// }}}
// {{{ method Output()
/**
* This method is responsible for output.
* Uhhrg, thats only a quick hack to demonstrate QueryManager.
*
* @access public
*/
function Output() {
echo "<table>";
echo "<th>NewsId</th>";
echo "<th>News</th>";
for ($row = 0; $row < count($this->result); $row++) {
printf("<tr valign=\"top\"><td>%s</td><td>%s</td></tr>",
$this->result[$row]['newsId'],
$this->result[$row]['news']
);
}
echo "</table>";
}
// }}}
// {{{ Vars
var $params;
// }}}
}
// }}}
?>
Index: r2/binarycloud/user/mod/query_example/schema.sql
+++ r2/binarycloud/user/mod/query_example/schema.sql
-- You have to insert these in database test
--
-- Table structure for table `news`
--
CREATE TABLE news (
newsId int(11) default NULL,
news text
) TYPE=MyISAM;
--
-- Dumping data for table `news`
--
INSERT INTO news (newsId, news) VALUES ( '1', 'Hey, Congratualtions. Querymanager is working. You are reading a database record from the query_example. See user.mod.query_example for details.');
Index: r2/binarycloud/user/mod/query_example/schema.xml
+++ r2/binarycloud/user/mod/query_example/schema.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<database>
<name>test</name>
<create>0</create>
<table>
<name>news</name>
<declaration>
<field>
<name>newsId</name>
<type>integer</type>
</field>
<field>
<name>news</name>
<type>text</type>
</field>
</declaration>
<initialization>
<insert>
<field>
<name>newsId</name>
<value>1</value>
</field>
<field>
<name>news</name>
<value>Hey, Congratualtions. Querymanager is working. You are reading a database record from the query_example. See user.mod.query_example for details..</value>
</field>
</insert>
</initialization>
</table>
</database>
|
|
From: alex <bin...@li...> - 2001-08-20 21:08:41
|
alex Mon Aug 20 14:08:35 2001 EDT
Added files:
/r2/binarycloud/user/htdocs query_example.php
Log:
andreas' query module
Index: r2/binarycloud/user/htdocs/query_example.php
+++ r2/binarycloud/user/htdocs/query_example.php
<?php
// {{{ Header
/*
* -File $Id: query_example.php,v 1.1 2001/08/20 21:08:35 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(
'title' => "binarycloud page title",
'init' => array(
'ini' => true,
'auth' => false,
'perm' => false,
'sess' => true,
'lang' => true,
'cache' => true,
'database' => true,
),
'database' => array(
'source' => 'query_example',
'mcrypt' => false,
'manage' => false,
),
'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' => 'Querytest',
'name' => "QueryExample",
'package' => "query_example",
'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('errors');
//$Debug->Output('system_constants');
//$Debug->Output('user_constants');
$Debug->Output('vars');
//$Debug->Output('server_env');
$Debug->Output('globals');
//$Debug->Output('all');
?>
|
|
From: alex <bin...@li...> - 2001-08-20 20:00:29
|
alex Mon Aug 20 13:00:23 2001 EDT
Modified files:
/r2 INSTALL.WIN32
/r2/binarycloud/base/core Request.php Sess.php
/r2/binarycloud/base/init Init.php
/r2/binarycloud/base/mgr EntityManager.php QueryManager.php
/r2/binarycloud/ext/metabase metabase_mysql.php
/r2/binarycloud/user/conf datasources.php
/r2/binarycloud/user/htdocs bcp.xml
Log:
Update to support db initialization in page.
|
|
From: alex <bin...@li...> - 2001-08-20 19:36:24
|
alex Mon Aug 20 12:36:19 2001 EDT
Modified files:
/r2 INSTALL.WIN32
Log:
Added Charlie's suggestion re argv.
Index: r2/INSTALL.WIN32
diff -u r2/INSTALL.WIN32:1.8 r2/INSTALL.WIN32:1.9
--- r2/INSTALL.WIN32:1.8 Thu Aug 16 10:08:02 2001
+++ r2/INSTALL.WIN32 Mon Aug 20 12:36:19 2001
@@ -32,9 +32,7 @@
it's vi in cygwin or UltraEdit in Windows, but make sure it can work with UNIX
type EOL, otherwise you will find all the files are very messy.
-5. use an editor to open $BCHOME/base/utils/installcode.sh, add the following
- line to the very beginning of the file (the first line, ok...).
- #!/bin/sh (yes, is UNIX style path this time)
+5. Ensure that register_globals = On; (in php.ini)
6. use an editor to open $BCHOME/base/utils/processprepend.php and xml2php.php
you can see these in the first line, #!/usr/local/php4/bin/php -q, of both
|
|
From: alex <bin...@li...> - 2001-08-20 19:30:34
|
alex Mon Aug 20 12:30:29 2001 EDT
Modified files:
/r2/binarycloud/base/init prepend.php
Log:
Removed odysseas' path info, put in "generic" info to make error obvious.
Index: r2/binarycloud/base/init/prepend.php
diff -u r2/binarycloud/base/init/prepend.php:1.3 r2/binarycloud/base/init/prepend.php:1.4
--- r2/binarycloud/base/init/prepend.php:1.3 Mon Jun 25 09:57:29 2001
+++ r2/binarycloud/base/init/prepend.php Mon Aug 20 12:30:29 2001
@@ -1,7 +1,7 @@
<?php
// {{{ Header
/*
- * -File $Id: prepend.php,v 1.3 2001/06/25 16:57:29 odysseas Exp $
+ * -File $Id: prepend.php,v 1.4 2001/08/20 19:30:29 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Intacct Corp.
* -Author odysseas tsatalos, ody...@ya...
@@ -11,8 +11,8 @@
/* Constants (DO NOT EDIT. Autogenerated by Makefile) {{{ */
/* @AUTO_GENERATED_BEGIN@ */
-define('BC_PATH', '/u02/home/odysseas/r2/binarycloud');
-define('BUILD_PATH', '/u02/home/odysseas/r2/binarycloud/make/en');
+define('BC_PATH', '/path/to/binarycloud');
+define('BUILD_PATH', '/path/to/binarycloud/make/en');
/* @AUTO_GENERATED_END@ */
// }}}
|
|
From: alex <bin...@li...> - 2001-08-20 19:28:33
|
alex Mon Aug 20 12:28:12 2001 EDT
Modified files:
/r2/binarycloud/base/utils installcode.sh
Log:
Added #!/bin/sh per ronald's suggestion.
Index: r2/binarycloud/base/utils/installcode.sh
diff -u r2/binarycloud/base/utils/installcode.sh:1.3 r2/binarycloud/base/utils/installcode.sh:1.4
--- r2/binarycloud/base/utils/installcode.sh:1.3 Mon Jun 25 10:01:32 2001
+++ r2/binarycloud/base/utils/installcode.sh Mon Aug 20 12:28:12 2001
@@ -1,5 +1,6 @@
+#!/bin/sh
# {{{ Header
-# -File $Id: installcode.sh,v 1.3 2001/06/25 17:01:32 odysseas Exp $
+# -File $Id: installcode.sh,v 1.4 2001/08/20 19:28:12 alex Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
|
|
From: Andreas A. <a.a...@th...> - 2001-08-19 15:55:41
|
r2/base/core/Sess.php Added method SetVar(). It sets a session variable name to a given value and returns it's old value if present. Optionally if the $_register parameter is set to true the variable is registered to the session (default). This comes in handy if register_globals is switched off. Changed header to new format |
|
From: Andreas A. <a.a...@th...> - 2001-08-19 15:39:27
|
r2/binarycloud/base/core/Request.php $Request->undefined values are not castet any more but simply retured. |
|
From: Andreas A. <a.a...@th...> - 2001-08-18 13:21:22
|
r2/binarycloud/base/mgr/QueryManager.php r2/binarycloud/base/init/Init.php r2/binarycloud/user/conf/datasources.php r2/binarycloud/user/mod/query_example/* r2/binarycloud/user/htdocs/query_example.php :) Andi |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 10:40:08
|
new solution entry in know problem, thx Charlie :) roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: charlie <bin...@li...> - 2001-08-17 19:43:43
|
charlie Fri Aug 17 12:43:37 2001 EDT
Modified files:
/r2 INFO
Log:
Test.
Index: r2/INFO
diff -u r2/INFO:1.1 r2/INFO:1.2
--- r2/INFO:1.1 Tue Aug 7 14:14:28 2001
+++ r2/INFO Fri Aug 17 12:43:36 2001
@@ -50,4 +50,3 @@
r2 Releases are done from a core r2 repository within turing.
sf.net CVS is synched to the core daily.
-
|
|
From: alex <bin...@li...> - 2001-08-17 18:55:05
|
alex Fri Aug 17 11:54:59 2001 EDT
Modified files:
/r2/binarycloud/base/core Request.php
Log:
Andreas' Commit.
Index: r2/binarycloud/base/core/Request.php
diff -u r2/binarycloud/base/core/Request.php:1.6 r2/binarycloud/base/core/Request.php:1.7
--- r2/binarycloud/base/core/Request.php:1.6 Sun Aug 12 17:54:25 2001
+++ r2/binarycloud/base/core/Request.php Fri Aug 17 11:54:59 2001
@@ -1,16 +1,15 @@
<?php
// Header {{{
-/*******************************************************************************
- ** -File $Id: Request.php,v 1.6 2001/08/13 00:54:25 alex Exp $
- ** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
- ** -Copyright 2001 Thyrell
- ** -Author Andreas Aderhold, <a.a...@th...>
- ******************************************************************************/
+/*
+ * -File $Id: Request.php,v 1.7 2001/08/17 18:54:59 alex Exp $
+ * -License LGPL (http://www.gnu.org/copyleft/lesser.html)
+ * -Copyright 2001, The Turing Studio, Inc.
+ * -Authors Andreas Aderhold, <a.a...@th...>
+ */
$PACKAGE='binarycloud.core';
// }}}
-
// {{{ Request
/**
* Request class.
@@ -37,7 +36,7 @@
* $val = $tmp['navbar'];
*
* @author Andreas Aderhold, a.a...@th...
- * @version $Id: Request.php,v 1.6 2001/08/13 00:54:25 alex Exp $
+ * @version $Id: Request.php,v 1.7 2001/08/17 18:54:59 alex Exp $
*/
class Request {
|
|
From: alex <bin...@li...> - 2001-08-17 18:48:10
|
alex Fri Aug 17 11:47:49 2001 EDT
Modified files:
/r2/binarycloud/base/mgr Makefile
Log:
Spelling Error.
Index: r2/binarycloud/base/mgr/Makefile
diff -u r2/binarycloud/base/mgr/Makefile:1.6 r2/binarycloud/base/mgr/Makefile:1.7
--- r2/binarycloud/base/mgr/Makefile:1.6 Thu Aug 16 15:25:17 2001
+++ r2/binarycloud/base/mgr/Makefile Fri Aug 17 11:47:49 2001
@@ -1,5 +1,5 @@
# {{{ Header
-# -File $Id: Makefile,v 1.6 2001/08/16 22:25:17 alex Exp $
+# -File $Id: Makefile,v 1.7 2001/08/17 18:47:49 alex Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
@@ -9,7 +9,7 @@
PACKAGEDFILES= \
CacheManager.php \
- QueryManagerr.php \
+ QueryManager.php \
$(EMPTY)
all: installcode
|
|
From: Andreas A. <a.a...@th...> - 2001-08-17 11:23:58
|
Request.php minor header changes to fit with the other headers |
|
From: Andreas A. <a.a...@th...> - 2001-08-17 08:19:57
|
/r2/binarycloud/base/mgr/Makefile corrected typo Andi |
|
From: alex <bin...@li...> - 2001-08-16 23:27:37
|
alex Thu Aug 16 16:27:29 2001 EDT
Added files:
/r2/binarycloud/base/mgr EntityManager.php
Log:
Added EntityManager.
|
|
From: alex <bin...@li...> - 2001-08-16 22:25:23
|
alex Thu Aug 16 15:25:17 2001 EDT
Modified files:
/r2/binarycloud/base/mgr Makefile
Log:
Added QueryManager to Makefile.
Index: r2/binarycloud/base/mgr/Makefile
diff -u r2/binarycloud/base/mgr/Makefile:1.5 r2/binarycloud/base/mgr/Makefile:1.6
--- r2/binarycloud/base/mgr/Makefile:1.5 Wed Aug 8 17:52:37 2001
+++ r2/binarycloud/base/mgr/Makefile Thu Aug 16 15:25:17 2001
@@ -1,5 +1,5 @@
# {{{ Header
-# -File $Id: Makefile,v 1.5 2001/08/09 00:52:37 alex Exp $
+# -File $Id: Makefile,v 1.6 2001/08/16 22:25:17 alex Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
@@ -9,6 +9,7 @@
PACKAGEDFILES= \
CacheManager.php \
+ QueryManagerr.php \
$(EMPTY)
all: installcode
|
|
From: alex <bin...@li...> - 2001-08-16 22:24:57
|
alex Thu Aug 16 15:24:48 2001 EDT
Added files:
/r2/binarycloud/base/mgr QueryManager.php
Log:
Added QueryManager
|
|
From: alex <bin...@li...> - 2001-08-16 20:44:34
|
alex Thu Aug 16 13:44:29 2001 EDT
Added files:
/r2/binarycloud/user/htdocs static_mod_cache_test.php
Modified files:
/r2/binarycloud/user/htdocs mod_cache_test.php static_module.php
Log:
modifications and additions in htdocs to test caching.
Index: r2/binarycloud/user/htdocs/mod_cache_test.php
diff -u /dev/null r2/binarycloud/user/htdocs/mod_cache_test.php:1.5
--- /dev/null Thu Aug 16 13:44:29 2001
+++ r2/binarycloud/user/htdocs/mod_cache_test.php Thu Aug 16 13:44:29 2001
@@ -0,0 +1,122 @@
+<?php
+// {{{ Header
+/*
+ * -File $Id: mod_cache_test.php,v 1.5 2001/08/16 20:44:29 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(
+ '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",
+ 'cache' => array(
+ 'expires' => '30',
+ 'use_uri' => true,
+ ),
+ ),
+ 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');
+
+?>
Index: r2/binarycloud/user/htdocs/static_module.php
diff -u r2/binarycloud/user/htdocs/static_module.php:1.1 r2/binarycloud/user/htdocs/static_module.php:1.2
--- r2/binarycloud/user/htdocs/static_module.php:1.1 Tue Aug 14 18:05:52 2001
+++ r2/binarycloud/user/htdocs/static_module.php Thu Aug 16 13:44:29 2001
@@ -1,7 +1,7 @@
<?php
// {{{ Header
/*
- * -File $Id: static_module.php,v 1.1 2001/08/15 01:05:52 alex Exp $
+ * -File $Id: static_module.php,v 1.2 2001/08/16 20:44:29 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, The Turing Studio, Inc.
* -Author alex black, en...@tu...
@@ -38,10 +38,10 @@
<p>
This page is rendering these modules without benefit of a $gPageDef['modules'] array - each of these modules is instantiated and output in place.
<p>
-<? $Page->BuildModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'first_one')); ?>
+<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'first_one')); ?>
<p>
-<? $Page->BuildModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'second_one')); ?>
-<? $Page->BuildModule(array('name' => 'OtherWorld','package' => 'hello_world','id' => 'third_one')); ?>
+<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'second_one')); ?>
+<? $Page->BuildStaticModule(array('name' => 'OtherWorld','package' => 'hello_world','id' => 'third_one')); ?>
<!-- end page html -->
<? $Page->BuildPage(); ?>
Index: r2/binarycloud/user/htdocs/static_mod_cache_test.php
+++ r2/binarycloud/user/htdocs/static_mod_cache_test.php
<?php
// {{{ Header
/*
* -File $Id: static_mod_cache_test.php,v 1.1 2001/08/16 20:44:29 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');
$Init = new Init();
$gPageDef = array(
'title' => "binarycloud page title",
'init' => array(
'ini' => true,
'auth' => false,
'perm' => false,
'sess' => true,
'lang' => true,
'cache' => true,
),
'templates' => array(
'default' => array(
'name' => "static_example",
'package' => "html.masters",
'type' => "html",
),
),
);
$Init->Startup();
?>
<!-- begin page html -->
<p>
This page is rendering these modules without benefit of a $gPageDef['modules'] array - each of these modules is instantiated and output in place.
<p>
<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'first_one','cache' => array('expires'=>'30'))); ?>
<p>
<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' => 'hello_world','id' => 'second_one')); ?>
<? $Page->BuildStaticModule(array('name' => 'OtherWorld','package' => 'hello_world','id' => 'third_one')); ?>
<!-- end page html -->
<? $Page->BuildPage(); ?>
<? $Init->Shutdown(); ?>
<? $Debug->Output('messages'); ?>
|