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-10-03 23:56:07
|
alex Wed Oct 3 16:56:01 2001 EDT
Modified files:
/r2/binarycloud/make/lib MakePHPDoc.php
Log:
Correting path in new phpdoc make class to match path in ext/
Index: r2/binarycloud/make/lib/MakePHPDoc.php
diff -u r2/binarycloud/make/lib/MakePHPDoc.php:1.1 r2/binarycloud/make/lib/MakePHPDoc.php:1.2
--- r2/binarycloud/make/lib/MakePHPDoc.php:1.1 Wed Oct 3 16:41:19 2001
+++ r2/binarycloud/make/lib/MakePHPDoc.php Wed Oct 3 16:56:01 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*
- * -File $Id: MakePHPDoc.php,v 1.1 2001/10/03 23:41:19 alex Exp $
+ * -File $Id: MakePHPDoc.php,v 1.2 2001/10/03 23:56:01 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, The Turing Studio, Inc.
* -Author alex black, en...@tu...
@@ -37,12 +37,12 @@
// document phpdoc itself.
// Directory with include files
- define("PHPDOC_INCLUDE_DIR", "../docs/phpdoc/");
+ define("PHPDOC_INCLUDE_DIR", "../ext/phpdoc/");
// Important: set this to the Linebreak sign of your system!
define("PHPDOC_LINEBREAK", "\n");
// main PHPDoc Include File
- include("../docs/phpdoc/prepend.php");
+ include("../ext/phpdoc/prepend.php");
$doc = new Phpdoc;
@@ -57,7 +57,7 @@
$doc->setTarget($this->target_dir);
// use these templates:
- $doc->setTemplateDirectory("../docs/phpdoc/renderer/html/templates/");
+ $doc->setTemplateDirectory("../ext/phpdoc/renderer/html/templates/");
// source files have one of these suffixes:
$doc->setSourceFileSuffix( array ("php") );
|
|
From: alex <bin...@li...> - 2001-10-03 23:55:06
|
alex Wed Oct 3 16:55:01 2001 EDT
Added files:
/r2/binarycloud/make makefile.in
Log:
Sample Makefile.in to be generated by configure --- not done
Index: r2/binarycloud/make/makefile.in
+++ r2/binarycloud/make/makefile.in
# {{{ Header
# -File $Id: makefile.in,v 1.1 2001/10/03 23:55:01 alex Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, The Turing Studio, Inc.
# -Author alex black, en...@tu...
# }}}
# Paths
SOURCE_PATH='/home/alex/r2/binarycloud'
BUILD_PATH='/home/alex/r2/binarycloud/build'
# Apps
RM='/bin/rm'
INSTALL='/usr/bin/install'
MAKE_PATH='/home/alex/r2/binarycloud/make'
PHP_PATH='/usr/local/php4/bin/php'
INSTALLCODE='/home/alex/r2/binarycloud/make/Install.php'
PHPDOC='/home/alex/r2/binarycloud/make/PHPDoc.php'
BCC='/home/alex/r2/binarycloud/make/BCC.php'
# Excluded Paths
EXCLUDE=${MAKE_PATH} \
${BUILD_PATH} \
${SOURCE_PATH}/docs \
${SOURCE_PATH}/ext \
${EMPTY}
|
alex Wed Oct 3 16:54:36 2001 EDT
Removed files:
/r2/binarycloud/docs/phpdoc README prepend.php
/r2/binarycloud/docs/phpdoc/accessor PhpdocAccessor.php
PhpdocClassAccessor.php
PhpdocDocumentAccessor.php
PhpdocIndexAccessor.php
PhpdocModuleAccessor.php
PhpdocWarningAccessor.php
/r2/binarycloud/docs/phpdoc/analyser PhpdocAnalyser.php
PhpdocClassAnalyser.php
PhpdocModuleAnalyser.php
/r2/binarycloud/docs/phpdoc/apidoc/keep empty.html index2.html
phpdoc.css phpdoc.dtd
/r2/binarycloud/docs/phpdoc/core Phpdoc.php PhpdocArgvHandler.php
PhpdocObject.php
PhpdocSetupHandler.php
/r2/binarycloud/docs/phpdoc/exceptions PhpdocError.php
/r2/binarycloud/docs/phpdoc/filehandler PhpdocFileHandler.php
/r2/binarycloud/docs/phpdoc/indexer PhpdocIndexer.php
/r2/binarycloud/docs/phpdoc/parser PhpdocClassParser.php
PhpdocConstantParser.php
PhpdocFunctionParser.php
PhpdocModuleParser.php
PhpdocParser.php
PhpdocParserCore.php
PhpdocParserRegExp.php
PhpdocParserTags.php
PhpdocUseParser.php
PhpdocVariableParser.php
/r2/binarycloud/docs/phpdoc/redist IT.php ITX.php
/r2/binarycloud/docs/phpdoc/renderer PhpdocRendererObject.php
/r2/binarycloud/docs/phpdoc/renderer/html
PhpdocHTMLClassRenderer.php
PhpdocHTMLDocumentRenderer.php
PhpdocHTMLIndexRenderer.php
PhpdocHTMLModuleRenderer.php
PhpdocHTMLRenderer.php
PhpdocHTMLRendererManager.php
PhpdocHTMLWarningRenderer.php
/r2/binarycloud/docs/phpdoc/renderer/html/templates class.html
classtree.html
elementlist.html
frame_packageelementlist.html
frame_packagelist.html
module.html
modulegroup.html
packagelist.html
phpdoc.css
warnings.html
xmlfiles.html
/r2/binarycloud/docs/phpdoc/warning PhpdocWarning.php
/r2/binarycloud/docs/phpdoc/xmlexporter PhpdocXMLClassExporter.php
PhpdocXMLDocumentExporter.php
PhpdocXMLExporter.php
PhpdocXMLIndexExporter.php
PhpdocXMLModuleExporter.php
PhpdocXMLWarningExporter.php
/r2/binarycloud/docs/phpdoc/xmlreader PhpdocXMLReader.php
/r2/binarycloud/docs/phpdoc/xmlwriter PhpdocXMLWriter.php
Log:
Removing PHPDoc from docs/
|
|
From: alex <bin...@li...> - 2001-10-03 23:54:19
|
alex Wed Oct 3 16:54:13 2001 EDT
Added files:
/r2/binarycloud/ext/phpdoc/renderer/html/templates class.html
classtree.html
elementlist.html
frame_packageelementlist.html
frame_packagelist.html
module.html
modulegroup.html
packagelist.html
phpdoc.css
warnings.html
xmlfiles.html
Log:
Adding PHPDoc to ext/
|
|
From: alex <bin...@li...> - 2001-10-03 23:53:37
|
alex Wed Oct 3 16:53:31 2001 EDT
Added files:
/r2/binarycloud/ext/phpdoc/apidoc/keep empty.html index2.html
phpdoc.css phpdoc.dtd
/r2/binarycloud/ext/phpdoc/renderer/html
PhpdocHTMLClassRenderer.php
PhpdocHTMLDocumentRenderer.php
PhpdocHTMLIndexRenderer.php
PhpdocHTMLModuleRenderer.php
PhpdocHTMLRenderer.php
PhpdocHTMLRendererManager.php
PhpdocHTMLWarningRenderer.php
Log:
Adding PHPDoc to ext/
|
|
From: alex <bin...@li...> - 2001-10-03 23:52:25
|
alex Wed Oct 3 16:52:19 2001 EDT
Added files:
/r2/binarycloud/ext/file_cache_class filecacheclass.html
filecacheclass.php
/r2/binarycloud/ext/phpdoc README index.php prepend.php
Log:
Adding PHPDoc where it should be
|
|
From: alex <bin...@li...> - 2001-10-03 23:41:25
|
alex Wed Oct 3 16:41:19 2001 EDT
Added files:
/r2/binarycloud/make bcc.php install.php phpdoc.php
/r2/binarycloud/make/lib MakeInstall.php MakePHPDoc.php
Log:
Shell files for 2nd gen make
|
|
From: alex <bin...@li...> - 2001-10-03 23:40:58
|
alex Wed Oct 3 16:40:53 2001 EDT
Removed files:
/r2/binarycloud/make FileAndDirList.sh
Log:
Moving this, useless here
|
|
From: alex <bin...@li...> - 2001-10-03 23:38:07
|
alex Wed Oct 3 16:38:02 2001 EDT
Removed files:
/r2/binarycloud/make BCC.php
Log:
Removing this
|
|
From: alex <bin...@li...> - 2001-10-03 22:34:52
|
alex Wed Oct 3 15:34:47 2001 EDT
Added files:
/r2/tools/scripts FixPerms.sh
Log:
Simple Fix perm script, probably to be integrated into Make
Index: r2/tools/scripts/FixPerms.sh
+++ r2/tools/scripts/FixPerms.sh
find . -type f -exec chmod u+rw,g+rw,a+r {} \;
find . -type f -exec chmod u-Xx,g-Xx,a-Xx {} \;
find . -type f -name '*.sh' -exec chmod u+x,g+x {} \;
find . -type f -name '*.pl' -exec chmod u+x,g+x {} \;
find . -type d -exec chmod u+rwx,g+rwx,a+rx {} \;
find . -type d -name 'CVS' -exec chmod -R u+rwx,g+rw,a+rx {} \;
find . -type f -path '*CVS*' -prune -exec chmod u+rw,g+rw,a+r {} \;
|
|
From: alex <bin...@li...> - 2001-10-03 22:03:51
|
alex Wed Oct 3 15:03:46 2001 EDT
Modified files:
/r2/binarycloud/user Makefile
Log:
Change to user makefile to support removals
Index: r2/binarycloud/user/Makefile
diff -u r2/binarycloud/user/Makefile:1.9 r2/binarycloud/user/Makefile:1.10
--- r2/binarycloud/user/Makefile:1.9 Tue Sep 25 12:55:51 2001
+++ r2/binarycloud/user/Makefile Wed Oct 3 15:03:45 2001
@@ -1,5 +1,5 @@
# {{{ Header
-# -File $Id: Makefile,v 1.9 2001/09/25 19:55:51 alex Exp $
+# -File $Id: Makefile,v 1.10 2001/10/03 22:03:45 alex Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
@@ -8,13 +8,8 @@
include ../Makefile.in
USERDIRS= \
- cache \
conf \
- db \
- lang \
- lib \
mod \
- roles \
tmpl \
$(EMPTY)
|
|
From: alex <bin...@li...> - 2001-10-03 21:57:05
|
alex Wed Oct 3 14:57:00 2001 EDT
Removed files:
/r2/binarycloud/user/cache README.txt
Log:
Unnecessary
|
|
From: alex <bin...@li...> - 2001-10-03 21:57:04
|
alex Wed Oct 3 14:56:43 2001 EDT
Removed files:
/r2/binarycloud/user/db/before README
/r2/binarycloud/user/db/dump year_mo_dy_hr_mn_sc.txt
/r2/binarycloud/user/db/objects README
/r2/binarycloud/user/db/schema bc_errors.xml
bc_form_submissions.xml
bc_knowledge_base_tables.xml
bc_perm_auth.xml bc_users.xml
create_db.xml
/r2/binarycloud/user/lang strings.xml
/r2/binarycloud/user/lib README
/r2/binarycloud/user/roles god.php god.xml
Log:
Removing extraneous files in user/, keeping only basics necessary to keep make working
|
alex Tue Oct 2 23:51:06 2001 EDT
Modified files:
/r2/binarycloud/user/bcdev/htdocs compilertest.html
/r2/binarycloud/user/bcdev/htdocs/resources/edit bc_edit.htc
/r2/binarycloud/user/bcdev/tmpl/html/masters example.php other.php
static_example.php
/r2/binarycloud/user/default/htdocs/resources/edit bc_edit.htc
/r2/binarycloud/user/htdocs compilertest.html
/r2/binarycloud/user/htdocs/resources/edit bc_edit.htc
/r2/binarycloud/user/tmpl/html/masters example.php other.php
static_example.php
Log:
Fixed broken rsrc link to base_lib
|
|
From: andi <bin...@li...> - 2001-10-02 17:39:19
|
andi Tue Oct 2 10:39:13 2001 EDT
Modified files:
/r2/binarycloud/base/mod/bcc Bcc.php
Log:
Changed standard behaviour if outfile is missing. Now writes to the same file if outfile is not provided to Compile()
Index: r2/binarycloud/base/mod/bcc/Bcc.php
diff -u r2/binarycloud/base/mod/bcc/Bcc.php:1.1 r2/binarycloud/base/mod/bcc/Bcc.php:1.2
--- r2/binarycloud/base/mod/bcc/Bcc.php:1.1 Sat Sep 22 12:58:15 2001
+++ r2/binarycloud/base/mod/bcc/Bcc.php Tue Oct 2 10:39:13 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*
- * -File $Id: Bcc.php,v 1.1 2001/09/22 19:58:15 andi Exp $
+ * -File $Id: Bcc.php,v 1.2 2001/10/02 17:39:13 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Andreas Aderhold
* -Authors Andreas Aderhold, <an...@bi...>
@@ -27,8 +27,20 @@
* import('binarycloud.mod.bcc.BccInit');
* $Bcc->Compile('source.thtml','destination.html');
*
+ * TODO: - setup some rules for output filenames so that
+ * only infile is required and other xml files are
+ * recognized automatically (config, rules, query, etc)
+ * - accept list of files or config file with list of files
+ * - set up global parser or in this class so that Modules
+ * don't have to setup/destroy a parser on every tag
+ * Maybe the Bcc*Compiler have to extent this class or
+ * make BCC global, have to think about it.
+ *
+ *
+ *
+ *
* @author Andreas Aderhold, a.a...@th...
- * @version $Id: Bcc.php,v 1.1 2001/09/22 19:58:15 andi Exp $
+ * @version $Id: Bcc.php,v 1.2 2001/10/02 17:39:13 andi Exp $
*/
class Bcc {
@@ -46,6 +58,10 @@
var $infile = null;
var $outfile = null;
+ /** contains a xml parser object that can be used */
+ var $xmlParser = 0;
+
+
// Bcc() {{{
/**
* Constructor. Imports default compiler if wanted
@@ -70,9 +86,15 @@
* @author Andreas Aderhold, <a.a...@th...>
*/
- function Compile($_infile, $_outfile = 'stdout') {
+ function Compile($_infile, $_outfile = null) {
$this->infile = $_infile;
- $this->outfile = $_outfile;
+
+ if (!$_outfile) {
+ $this->outfile = $_infile;
+ } else {
+ $this->outfile = $_outfile;
+ }
+
$success = $this->_CompileFile();
return $success;
}
@@ -149,7 +171,7 @@
}
}
- echo "Compiling tags...\n";
+ printf("Compiling %s...\n", $this->infile);
/* found at least one block, loop through and call compiler */
for ($i = 0; $i < count($tagData); $i++) {
|
|
From: andi <bin...@li...> - 2001-10-02 13:17:16
|
andi Tue Oct 2 06:17:10 2001 EDT
Modified files:
/r2/binarycloud Makefile.in
Log:
Updated BCC variable to new location (MAKE_DIR)
Index: r2/binarycloud/Makefile.in
diff -u r2/binarycloud/Makefile.in:1.10 r2/binarycloud/Makefile.in:1.11
--- r2/binarycloud/Makefile.in:1.10 Wed Sep 26 04:02:41 2001
+++ r2/binarycloud/Makefile.in Tue Oct 2 06:17:10 2001
@@ -1,5 +1,5 @@
# {{{ Header
-# -File $Id: Makefile.in,v 1.10 2001/09/26 11:02:41 andi Exp $
+# -File $Id: Makefile.in,v 1.11 2001/10/02 13:17:10 andi Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
@@ -25,7 +25,7 @@
INSTALLCODE = $(TOOLS_DIR)/installcode.sh
PROCESSPREPEND = $(PHP_COMMAND) $(TOOLS_DIR)/processprepend.php
XML2PHP = $(PHP_COMMAND) $(TOOLS_DIR)/xml2php.php
-BCC = $(PHP_COMMAND) $(TOOLS_DIR)/bcc.php
+BCC = $(PHP_COMMAND) $(MAKE_DIR)/BCC.php
.SUFFIXES:
.SUFFIXES: .php .xml
|
|
From: andi <bin...@li...> - 2001-10-02 13:12:40
|
andi Tue Oct 2 06:12:34 2001 EDT
Modified files:
/r2/binarycloud/base/mod/bcc BccModuleCompiler.php
Log:
Staticmodule, GroupOutput and ModuleOutput syntax works now
Index: r2/binarycloud/base/mod/bcc/BccModuleCompiler.php
diff -u r2/binarycloud/base/mod/bcc/BccModuleCompiler.php:1.2 r2/binarycloud/base/mod/bcc/BccModuleCompiler.php:1.3
--- r2/binarycloud/base/mod/bcc/BccModuleCompiler.php:1.2 Tue Sep 25 15:51:51 2001
+++ r2/binarycloud/base/mod/bcc/BccModuleCompiler.php Tue Oct 2 06:12:34 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*
- * -File $Id: BccModuleCompiler.php,v 1.2 2001/09/25 22:51:51 andi Exp $
+ * -File $Id: BccModuleCompiler.php,v 1.3 2001/10/02 13:12:34 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Andreas Aderhold
* -Authors Andreas Aderhold, <an...@bi...>
@@ -14,42 +14,75 @@
class BccModuleCompiler {
- /* config var, echo output? */
- var $output = false;
+ /** config var, echo output? */
+ var $output = false;
- /* config var, tagdata to compile */
+ /** strip newlines, tabs, whitespaces from output */
+ var $compact = false;
+
+ /** config var, tagdata to compile */
var $data = "";
- /* internal buffer */
+ /** internal buffer */
var $compiled =""; // compiled data buffer
+ /** format templates for the tags */
+ var $tmplModuleOutput = "<?global \$Page?>\n<?=\$Page->output['%s']['%s'];?>";
+ var $tmplGroupOutput = "<?global \$Page?>\n<?=\$Page->output['%s'];?>";
+ var $tmplStaticOutput = "<?global \$Page?>\n<?=\$Page->BuildStaticModule(%s);?>";
/** */
function BccModuleCompiler($_params) {
+
+ /* extract module parameters to class namespace */
extract_params($this, $_params);
- import('ext.metabase.xml_parser');
+
+ /* import the xml utils */
import('binarycloud.lib.XMLUtils');
+ /* generate php array from xml data */
$trees = XMLUtils::XMLStr2XML($this->data);
$xmlTree = $trees[0];
$phpTree = XMLUtils::XML2PHP($xmlTree);
- $txtTree = XMLUtils::PHP2PHPArr($phpTree, false);
- $this->compiled = str_replace(');',')', $txtTree);
- return true;
+ /* look what tag type occured and apply format */
+ if (isset($phpTree['group'])) {
+ /* we have a module output tag */
+ if (isset($phpTree['index'])) {
+ $this->compiled = sprintf($this->tmplModuleOutput, $phpTree['group'], $phpTree['index']);
+ return true;
+ } else {
+ /* we have a group output tag */
+ $this->compiled = sprintf($this->tmplGroupOutput, $phpTree['group']);
+ return true;
+ }
+ } else {
+ /* we have a static module tag */
+ $txtTree = XMLUtils::PHP2PHPArr($phpTree, false);
+ $strArray = str_replace(');',')', $txtTree);
+ $this->compiled = sprintf($this->tmplStaticOutput, $strArray);
+ return true;
+ }
}
/** */
function Output() {
+
+ /* look if we want formated output or strip whitespace, tabs, etc */
+ if ($this->compact != false) {
+ $this->compiled=preg_replace ("/([\r\n\t])[\s]+/", "", $this->compiled);
+ }
- $strFormat = "<? global \$Page;\n\$Page->BuildStaticModule(".$this->compiled.");\n?>";
+ /* check if error occured */
if (!$this->error) {
+ /* all done, check if compiled tag to be echoed or returned */
if ($this->output != true) {
- return $strFormat;
+ return $this->compiled;
} else {
- echo $strFormat;
+ echo $this->compiled;
}
} else {
+ /* display error, return false to bcc */
echo $this->error;
return false;
}
|
|
From: andi <bin...@li...> - 2001-10-02 13:11:25
|
andi Tue Oct 2 06:11:14 2001 EDT
Modified files:
/r2/binarycloud/user/htdocs compilertest.html
/r2/binarycloud/user/bcdev/htdocs compilertest.html
Log:
Added some comments
Index: r2/binarycloud/user/htdocs/compilertest.html
diff -u r2/binarycloud/user/htdocs/compilertest.html:1.4 r2/binarycloud/user/htdocs/compilertest.html:1.5
--- r2/binarycloud/user/htdocs/compilertest.html:1.4 Wed Sep 26 07:46:15 2001
+++ r2/binarycloud/user/htdocs/compilertest.html Tue Oct 2 06:11:14 2001
@@ -1,7 +1,7 @@
<?php
// {{{ Header
/*
- * -File $Id: compilertest.html,v 1.4 2001/09/26 14:46:15 andi Exp $
+ * -File $Id: compilertest.html,v 1.5 2001/10/02 13:11:14 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, The Turing Studio, Inc.
* -Author alex black, en...@tu...
@@ -33,7 +33,11 @@
);
$Init->Startup();
?>
-
+<!-- a binarycloud system tag -->
+<bc:global>
+ <page>true</page>
+</bc:global>
+<!-- a binarycloud system tag -->
<html>
<head>
<title>Test</title>
@@ -44,6 +48,7 @@
<b> blah </b>
+<!-- a binary cloud static module -->
<bc:module>
<id>moo</id>
<name>HelloWorld</name>
@@ -58,27 +63,48 @@
<another_param_name>another_value</another_param_name>
</params>
</bc:module>
+<!-- /binarycloud static module -->
+
+<!-- a binarycloud module output tag -->
+<bc:module>
+ <group>content</group>
+ <index>1</index>
+</bc:module>
+<!-- /binarycloud module output tag -->
+<!-- a binarycloud group output tag -->
+<bc:module>
+ <group>content</group>
+</bc:module>
+<!-- /binarycloud group output tag -->
+
+<!-- a binarycloud image tag -->
<bc:img>
<id>abcimg</id>
</bc:img>
+<!-- /binarycloud image tag -->
+<!-- a binarycloud javascript tag -->
<bc:js>
<id>moo</id>
<inline>true</true>
</bc:js>
+<!-- a binarycloud javascript tag -->
+<!-- a binarycloud stylesheet tag -->
<bc:css>
<id>moo</id>
<inline>false</inline>
</bc:css>
+<!-- a binarycloud stylesheet tag -->
+<!-- a binarycloud link tag -->
<bc:href>
<id>somelink</id>
<href>/archive/mp3/any_document.mp3</href>
<usedocroot>true</usedocroot>
</bc:href>
-
+<!-- a binarycloud link tag -->
</body>
</html>
Index: r2/binarycloud/user/bcdev/htdocs/compilertest.html
diff -u r2/binarycloud/user/bcdev/htdocs/compilertest.html:1.1 r2/binarycloud/user/bcdev/htdocs/compilertest.html:1.2
--- r2/binarycloud/user/bcdev/htdocs/compilertest.html:1.1 Tue Sep 25 11:18:08 2001
+++ r2/binarycloud/user/bcdev/htdocs/compilertest.html Tue Oct 2 06:11:14 2001
@@ -1,3 +1,43 @@
+<?php
+// {{{ Header
+/*
+ * -File $Id: compilertest.html,v 1.2 2001/10/02 13:11:14 andi 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",
+ 'cache' => array(
+ 'expires' => '30',
+ ),
+ '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();
+?>
+<!-- a binarycloud system tag -->
+<bc:global>
+ <page>true</page>
+</bc:global>
+<!-- a binarycloud system tag -->
<html>
<head>
<title>Test</title>
@@ -8,18 +48,87 @@
<b> blah </b>
-<bc:module id="moo" name="HelloWorld" package="hello_world">
- <cache expires="30" use_uri="true" var="$moo"/>
+<!-- a binary cloud static module -->
+<bc:module>
+ <id>moo</id>
+ <name>HelloWorld</name>
+ <package>hello_world</package>
+ <cache>
+ <expires>30</expires>
+ <use_uri>true</use_uri>
+ <var>$moo</var>
+ </cache>
<params>
<param_name>value</param_name>
<another_param_name>another_value</another_param_name>
</params>
</bc:module>
+<!-- /binarycloud static module -->
-<bc:img id="abcimg" />
-<bc:js id="moo" inline="true" />
-<bc:css id="moo" inline="false" />
-<bc:href id="href" href="/archive/mp3/any_document.mp3" usedocroot="true" />
+<!-- a binarycloud module output tag -->
+<bc:module>
+ <group>content</group>
+ <index>1</index>
+</bc:module>
+<!-- /binarycloud module output tag -->
+
+<!-- a binarycloud group output tag -->
+<bc:module>
+ <group>content</group>
+</bc:module>
+<!-- /binarycloud group output tag -->
+
+<!-- a binarycloud image tag -->
+<bc:img>
+ <id>abcimg</id>
+</bc:img>
+<!-- /binarycloud image tag -->
+<!-- a binarycloud javascript tag -->
+<bc:js>
+ <id>moo</id>
+ <inline>true</true>
+</bc:js>
+<!-- a binarycloud javascript tag -->
+
+<!-- a binarycloud stylesheet tag -->
+<bc:css>
+ <id>moo</id>
+ <inline>false</inline>
+</bc:css>
+<!-- a binarycloud stylesheet tag -->
+
+<!-- a binarycloud link tag -->
+<bc:href>
+ <id>somelink</id>
+ <href>/archive/mp3/any_document.mp3</href>
+ <usedocroot>true</usedocroot>
+</bc:href>
+<!-- a binarycloud link tag -->
</body>
</html>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
|
From: alex <bin...@li...> - 2001-10-01 23:52:11
|
alex Mon Oct 1 16:52:05 2001 EDT
Added files:
/r2/binarycloud/docs/tasks MakeProcess.html Makefiles.html
Modified files:
/r2/binarycloud/docs/tasks BCCStringModule.html
ConfigureSystem.html PHPDoc.html
index.html
Log:
Updates task html
|
|
From: alex <bin...@li...> - 2001-10-01 23:39:58
|
alex Mon Oct 1 16:39:53 2001 EDT
Added files:
/r2/binarycloud/make BCC.php
/r2/binarycloud/make/handlers README
Log:
Added make/ hierarchy...
Index: r2/binarycloud/make/BCC.php
+++ r2/binarycloud/make/BCC.php
#!/usr/local/php4/bin/php -q
<?php
// {{{ Header
/*
* -File $Id: BCC.php,v 1.1 2001/10/01 23:39:53 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Intacct Corp.
* -Author odysseas tsatalos, ody...@ya...
* -Author Andris Spruds, an...@do...
* -Author Andreas Aderhold, a.a...@th...
*/
// }}}
// main entry point {{{
function main(&$_argv) {
if ( sizeof($_argv) != 5 ) {
_PrintUsage($_argv[0]);
}
$bcLang = $_argv[1];
$bcBuildPath = $_argv[2];
/* this is the constant for lang/htdocs */
define('BC_PATH_RESOURCES', '/'.$bcLang);
include_once($bcBuildPath. '/prepend.php');
$in = realpath($_argv[3]);
$out = $_argv[4];
$Bcc =& _InitBcc();
// setup parser and engage
$Bcc->Compile($in, $out);
}
// }}}
// display usage information
function _PrintUsage($_self) {
$strSyntax = "Usage: $_self langcode buildpath infile outfile\n";
die($strSyntax);
}
// }}}
// Init bcc
function &_InitBcc() {
import('binarycloud.mod.bcc.Bcc');
$bcc =& new Bcc;
// register and import (internal to bcc) compiler classes
$bcc->RegisterTag('BC:MODULE', "BccModuleCompiler");
$bcc->RegisterTag('BC:IMG', "BccImgCompiler");
return $bcc;
}
// }}}
main($HTTP_SERVER_VARS['argv']);
// }}} end
/*
* Local Variables:
* mode: php
* tab-width: 4
* c-basic-offset: 4
* End:
*/
?>
|
|
From: alex <bin...@li...> - 2001-10-01 23:37:40
|
alex Mon Oct 1 16:37:35 2001 EDT
Added files:
/r2/binarycloud/make FileAndDirList.sh
Log:
Adding a quick hack script for listing dirs and files.
Index: r2/binarycloud/make/FileAndDirList.sh
+++ r2/binarycloud/make/FileAndDirList.sh
find ../ -type f \
| grep -ve 'CVS' \
| grep -ve './docs/' \
| grep -ve './make/' \
| grep -ve './ext/' \
| grep -ve './build/' \
| grep -ve 'Makefile' \
| grep -ve 'Makefile.in' \
| grep -ve '.cvsignore' \
> ./FileList.php
find ../ -type d \
| grep -ve 'CVS' \
| grep -ve './make/' \
| grep -ve './docs/' \
| grep -ve './ext/' \
| grep -ve './build/' \
> ./DirList.php
|
|
From: alex <bin...@li...> - 2001-10-01 23:37:06
|
alex Mon Oct 1 16:37:01 2001 EDT
Added files:
/r2/binarycloud/docs/dev SampleSourceTrees.txt
/r2/binarycloud/docs/dev/make DirsOnlyMakefile.sh
FilesAndDirsMakefile.sh
FilesOnlyMakefile.sh
TopLevelMakefile.in.sh
TopLevelMakefile.sh
Modified files:
/r2/binarycloud/docs/dev R2Classes.txt
/r2/binarycloud/user/bcdev/conf MakeConf.php.xml
Log:
many changes, mostly documentation
|
|
From: alex <bin...@li...> - 2001-10-01 21:41:27
|
alex Mon Oct 1 14:41:21 2001 EDT
Removed files:
/r2/binarycloud/user/bcdev/cache README.txt
Modified files:
/r2/binarycloud/user/bcdev/mod/hello_world HelloWorld.php
Log:
This is a build only dir
Index: r2/binarycloud/user/bcdev/mod/hello_world/HelloWorld.php
diff -u r2/binarycloud/user/bcdev/mod/hello_world/HelloWorld.php:1.1 r2/binarycloud/user/bcdev/mod/hello_world/HelloWorld.php:1.2
--- r2/binarycloud/user/bcdev/mod/hello_world/HelloWorld.php:1.1 Tue Sep 25 11:18:52 2001
+++ r2/binarycloud/user/bcdev/mod/hello_world/HelloWorld.php Mon Oct 1 14:41:21 2001
@@ -1,9 +1,9 @@
<?php
// Header {{{
/*
- * -File $Id: HelloWorld.php,v 1.1 2001/09/25 18:18:52 alex Exp $
+ * -File $Id: HelloWorld.php,v 1.2 2001/10/01 21:41:21 alex Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
- * -Copyright 2001, The Turing Studio, Inc.
+ * -Copyright 2001, The Turing Studio, Inc.
* -Author alex black, en...@tu...
*/
// }}}
|
|
From: alex <bin...@li...> - 2001-10-01 19:22:57
|
alex Mon Oct 1 12:22:51 2001 EDT
Modified files:
/r2/binarycloud/user/bcdev/conf MakeConf.php.xml
Log:
Added Symlinks.
Index: r2/binarycloud/user/bcdev/conf/MakeConf.php.xml
diff -u r2/binarycloud/user/bcdev/conf/MakeConf.php.xml:1.2 r2/binarycloud/user/bcdev/conf/MakeConf.php.xml:1.3
--- r2/binarycloud/user/bcdev/conf/MakeConf.php.xml:1.2 Mon Oct 1 09:50:51 2001
+++ r2/binarycloud/user/bcdev/conf/MakeConf.php.xml Mon Oct 1 12:22:51 2001
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<!--
// {{{ Header
--File $Id: MakeConf.php.xml,v 1.2 2001/10/01 16:50:51 alex Exp $
+-File $Id: MakeConf.php.xml,v 1.3 2001/10/01 19:22:51 alex Exp $
-License LGPL (http://www.gnu.org/copyleft/lesser.html)
-Copyright 2001, The Turing Studio, Inc.
-Author alex black, en...@tu...
@@ -80,6 +80,13 @@
<!-- use shared binarycloud core? -->
<use_shared>false</use_shared>
</core>
+
+ <symlinks>
+ <link>
+ <source>/path/to/htdocs/in/build</source>
+ <target>/usr/local/apache/htdocs/en</target>
+ </link>
+ </symlinks>
</distribution>
|
|
From: alex <bin...@li...> - 2001-10-01 17:28:08
|
alex Mon Oct 1 10:28:02 2001 EDT
Modified files:
/r2/binarycloud/user/bcdev/lang ExampleStringRepository.php.xml
Log:
Removed old format, added new string repository example
Index: r2/binarycloud/user/bcdev/lang/ExampleStringRepository.php.xml
diff -u r2/binarycloud/user/bcdev/lang/ExampleStringRepository.php.xml:1.1 r2/binarycloud/user/bcdev/lang/ExampleStringRepository.php.xml:1.2
--- r2/binarycloud/user/bcdev/lang/ExampleStringRepository.php.xml:1.1 Mon Oct 1 10:13:26 2001
+++ r2/binarycloud/user/bcdev/lang/ExampleStringRepository.php.xml Mon Oct 1 10:28:02 2001
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
-** -File $Id: ExampleStringRepository.php.xml,v 1.1 2001/10/01 17:13:26 alex Exp $
+** -File $Id: ExampleStringRepository.php.xml,v 1.2 2001/10/01 17:28:02 alex Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
@@ -11,14 +11,20 @@
<strings>
<string>
<id>hello</id>
- <lang:en>Hello</lang:en>
- <lang:fr>Bonjour</lang:fr>
- <description>This string is used on the home page in "hello, $username".</description>
+ <langs>
+ <en>Hello</en>
+ <fr>Bonjour</fr>
+ <de>Hallo</de>
+ </langs>
+ <description>This string is used in a few places: "hello, $username".</description>
</string>
<string>
<id>bye</id>
- <lang:en>Bye</lang:en>
- <lang:fr>Au Revoir</lang:fr>
- <description>Used on the logout page</description>
+ <langs>
+ <en>Bye</en>
+ <fr>Au Revior</fr>
+ <de>Auf Weidersehen</de>
+ </langs>
+ <description>This string is used in a few places: "hello, $username".</description>
</string>
</strings>
|