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-09-09 06:57:27
|
alex Sat Sep 8 23:57:22 2001 EDT Added files: /r2/binarycloud/docs/ref CountryCodes.txt Log: useful list of country codes. Index: r2/binarycloud/docs/ref/CountryCodes.txt +++ r2/binarycloud/docs/ref/CountryCodes.txt AD Andorra AE United Arab Emirates AF Afghanistan AG Antigua and Barbuda AI Anguilla AL Albania AM Armenia AN Netherlands Antilles AO Angola AQ Antarctica AR Argentina AS American Samoa AT Austria AU Australia AW Aruba AZ Azerbaijan BA Bosnia and Herzegovina BB Barbados BD Bangladesh BE Belgium BF Burkina Faso BG Bulgaria BH Bahrain BI Burundi BJ Benin BM Bermuda BN Brunei Darussalam BO Bolivia BR Brazil BS Bahamas BT Bhutan BV Bouvet Island BW Botswana BY Belarus BZ Belize CA Canada CC Cocos (Keeling) Islands CF Central African Republic CG Congo CH Switzerland CI Cote D'Ivoire (Ivory Coast) CK Cook Islands CL Chile CM Cameroon CN China CO Colombia CR Costa Rica CS Czechoslovakia (former) CU Cuba CV Cape Verde CX Christmas Island CY Cyprus CZ Czech Republic DE Germany DJ Djibouti DK Denmark DM Dominica DO Dominican Republic DZ Algeria EC Ecuador EE Estonia EG Egypt EH Western Sahara ER Eritrea ES Spain ET Ethiopia FI Finland FJ Fiji FK Falkland Islands (Malvinas) FM Micronesia FO Faroe Islands FR France FX France, Metropolitan GA Gabon GB Great Britain (UK) GD Grenada GE Georgia GF French Guiana GH Ghana GI Gibraltar GL Greenland GM Gambia GN Guinea GP Guadeloupe GQ Equatorial Guinea GR Greece GS S. Georgia and S. Sandwich Isls. GT Guatemala GU Guam GW Guinea-Bissau GY Guyana HK Hong Kong HM Heard and McDonald Islands HN Honduras HR Croatia (Hrvatska) HT Haiti HU Hungary ID Indonesia IE Ireland IL Israel IN India IO British Indian Ocean Territory IQ Iraq IR Iran IS Iceland IT Italy JM Jamaica JO Jordan JP Japan KE Kenya KG Kyrgyzstan KH Cambodia KI Kiribati KM Comoros KN Saint Kitts and Nevis KP Korea (North) KR Korea (South) KW Kuwait KY Cayman Islands KZ Kazakhstan LA Laos LB Lebanon LC Saint Lucia LI Liechtenstein LK Sri Lanka LR Liberia LS Lesotho LT Lithuania LU Luxembourg LV Latvia LY Libya MA Morocco MC Monaco MD Moldova MG Madagascar MH Marshall Islands MK Macedonia ML Mali MM Myanmar MN Mongolia MO Macau MP Northern Mariana Islands MQ Martinique MR Mauritania MS Montserrat MT Malta MU Mauritius MV Maldives MW Malawi MX Mexico MY Malaysia MZ Mozambique NA Namibia NC New Caledonia NE Niger NF Norfolk Island NG Nigeria NI Nicaragua NL Netherlands NO Norway NP Nepal NR Nauru NT Neutral Zone NU Niue NZ New Zealand (Aotearoa) OM Oman PA Panama PE Peru PF French Polynesia PG Papua New Guinea PH Philippines PK Pakistan PL Poland PM St. Pierre and Miquelon PN Pitcairn PR Puerto Rico PT Portugal PW Palau PY Paraguay QA Qatar RE Reunion RO Romania RU Russian Federation RW Rwanda SA Saudi Arabia Sb Solomon Islands SC Seychelles SD Sudan SE Sweden SG Singapore SH St. Helena SI Slovenia SJ Svalbard and Jan Mayen Islands SK Slovak Republic SL Sierra Leone SM San Marino SN Senegal SO Somalia SR Suriname ST Sao Tome and Principe SU USSR (former) SV El Salvador SY Syria SZ Swaziland TC Turks and Caicos Islands TD Chad TF French Southern Territories TG Togo TH Thailand TJ Tajikistan TK Tokelau TM Turkmenistan TN Tunisia TO Tonga TP East Timor TR Turkey TT Trinidad and Tobago TV Tuvalu TW Taiwan TZ Tanzania UA Ukraine UG Uganda UK United Kingdom UM US Minor Outlying Islands US United States UY Uruguay UZ Uzbekistan VA Vatican City State (Holy See) VC Saint Vincent and the Grenadines VE Venezuela VG Virgin Islands (British) VI Virgin Islands (U.S.) VN Viet Nam VU Vanuatu WF Wallis and Futuna Islands WS Samoa YE Yemen YT Mayotte YU Yugoslavia ZA South Africa ZM Zambia ZR Zaire ZW Zimbabwe COM US Commercial EDU US Educational GOV US Government INT International MIL US Military NET Network ORG Non-Profit Organization ARPA Old style Arpanet NATO Nato field |
From: alex <bin...@li...> - 2001-09-09 06:57:16
|
alex Sat Sep 8 23:57:11 2001 EDT Added files: /r2/binarycloud/docs/dev R2Classes.txt Log: This is the class hierarchy I expect to have once r2 is complete. Index: r2/binarycloud/docs/dev/R2Classes.txt +++ r2/binarycloud/docs/dev/R2Classes.txt binarycloud/base/ --------------------- init/ Init core/ Auth Perm Page Debug Lang Request Sess Err -> PEAR_Error mgr/ EntityManager QueryManager TemplateManager MessageManager EventManager PolicyManager JSRequestManager CSSRequestManager validators/ NoTags NoLineBreaks NoEntities OnlyChars OnlyTagList Charset Date Currency Decimal Integer Time ZipCode PhoneNumber EmailAddress Password Country State FASTASequence .... suggestions here? processors/ Charset Regex RemoveEntities EncodeEntities RemoveTags AllowOnlyTagList Trim RemoveLineBreaks AddLineBreaks AllowOnlyCharList FormatDate FormatCurrency FormatPhoneNumber FormatCountry FormatState .... suggestions here? bldr/ FormBuilder ListBuilder WizardBuilder TreeBuilder CalendarBuilder EmailBuilder FaxBuilder PDFBuilder PageDefBuilder .... suggestions here? UIControlBuilder uicontrols/ TextBoxControl WindowStatusControl PasswordControl TextareaControl MultiTextBoxControl PulldownControl SelectBoxControl MaskControl RadioButtonControl CheckBoxControl HrefControl ImageControl DateControl CurrencyControl ButtonControl TextHeaderControl OrderedTextHeaderControl ImageHeaderControl RowControl PaginationControl SimpleListControl .... suggestions here? lib/ ClientSniffer HTMLMimeMail SMTP Timer XMLUtils Webalizer Htdig LangKeyer ... utils/ xml2php php2xml pk2dir processprepend installcode langkey2string binarycloud/user/ --------------------- conf/ Configuration Datasources Languages Operations roles/ GodRole AdminRole etc htdocs/ resources images js css edit lib/ user-specific proprietary libs mod/ example_module ExampleModule AnotherExampleModule tmpl/ lang/ qry/ ent/ evt/ msg/ resources/ tmpl/ html email pdf ps xml wml etc.. What we don't need in the source tree: user/cache user/db user/lang user/roles The build tree: --------------------- lang_code/ binarycloud/ core/ init/ lib/ mgr/ bldr/ ext/ pear/ metabase/ vagrant/ etc/ htdocs/ resources/ ... user/ cache/ conf/ roles/ db/ schema/ before/ dump/ qry/ mod/ tmpl/ ent/ evt/ msg/ *Note how the build tree contains many more directories, like ent, msg, etc. This is because make will use the naming conventions below to move files from module and other directories into a single location. That means files must not have naming conflicts, etc - but it keeps the source tree, and the installation process simple. |
From: alex <bin...@li...> - 2001-09-09 06:56:50
|
alex Sat Sep 8 23:56:44 2001 EDT Added files: /r2/binarycloud/docs/dev OracleTablespace.sql Log: In case you have oracle and want to create a tablespace for r2. Index: r2/binarycloud/docs/dev/OracleTablespace.sql +++ r2/binarycloud/docs/dev/OracleTablespace.sql CREATE TABLESPACE r2data DATAFILE 'r2data.dbs' SIZE 50M AUTOEXTEND ON NEXT 100M MAXSIZE 200M; CREATE USER r2 IDENTIFIED BY testpasswd DEFAULT TABLESPACE r2data TEMPORARY TABLESPACE temp; GRANT CONNECT, RESOURCE TO r2; |
From: alex <bin...@li...> - 2001-09-09 06:54:30
|
alex Sat Sep 8 23:54:25 2001 EDT Modified files: /r2/binarycloud/docs/specs/xml EntityDefinition.php.xml Log: Added some notes to this file. No structural changes. Index: r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml diff -u r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml:1.1 r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml:1.2 --- r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml:1.1 Thu Aug 23 12:03:25 2001 +++ r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml Sat Sep 8 23:54:25 2001 @@ -1,5 +1,13 @@ <entity> - +<!-- this is a temp storage site for these notes: +For modules to be distributed with binarycloud or available +from the (upcoming) module repository, as well as for +binarycloud core components you must: +- Use field and table/entity names with less than 32 chars +- Use lowercase for all database, field and table/entity names +- Use CAPS for SQL command (SELECT, AS, FROM, DELETE...) +- Verify that your SQL & Schemas work with Oracle, MySQL, and PostgreSQL. +--> <!-- the name of the entity --> |
From: alex <bin...@li...> - 2001-09-09 06:54:16
|
alex Sat Sep 8 23:54:10 2001 EDT Added files: /r2/binarycloud/base/lib MXLookup.php Log: Similar to barcode - this scripts validates emails by actually looking to see if there is an MX for the email's domain! |
From: alex <bin...@li...> - 2001-09-09 06:53:43
|
alex Sat Sep 8 23:53:37 2001 EDT Added files: /r2/binarycloud/base/lib DrawBarcode.php Log: Esoteric BarCode draw script I thought would be hard to find in the future.. Index: r2/binarycloud/base/lib/DrawBarcode.php +++ r2/binarycloud/base/lib/DrawBarcode.php <?php $text = implode($argv, " "); $barcodeheight=40; $barcodethinwidth=2; $barcodethickwidth=$barcodethinwidth*3; $codingmap = Array("0"=> "000110100", "1"=> "100100001", "2"=> "001100001", "3"=> "101100000", "4"=> "000110001", "5"=> "100110000", "6"=> "001110000", "7"=> "000100101", "8"=> "100100100", "9"=> "001100100", "A"=> "100001001", "B"=> "001001001", "C"=> "101001000", "D"=> "000011001", "E"=> "100011000", "F"=> "001011000", "G"=> "000001101", "H"=> "100001100", "I"=> "001001100", "J"=> "000011100", "K"=> "100000011", "L"=> "001000011", "M"=> "101000010", "N"=> "000010011", "O"=> "100010010", "P"=> "001010010", "Q"=> "000000111", "R"=> "100000110", "S"=> "001000110", "T"=> "000010110", "U"=> "110000001", "V"=> "011000001", "W"=> "111000000", "X"=> "010010001", "Y"=> "110010000", "Z"=> "011010000", " "=> "011000100", "$"=> "010101000", "%"=> "000101010", "*"=> "010010100", "+"=> "010001010", "-"=> "010000101", "."=> "110000100", "/"=> "010100010"); $text = strtoupper($text); $text = "*$text*"; // add start/stop chars. $textlen = strlen($text); $barcodewidth = ($textlen)*(7*$barcodethinwidth+3*$barcodethickwidth)-$barcodethinwidth; $im = ImageCreate($barcodewidth,$barcodeheight); $black = ImageColorAllocate($im,0,0,0); $white = ImageColorAllocate($im,255,255,255); imagefill($im,0,0,$white); $xpos=0; for ($idx=0;$idx<$textlen;$idx++) { $char = substr($text,$idx,1); // make unknown chars a '-'; if (!isset($codingmap[$char])) $char = "-"; for ($baridx=0;$baridx<=8;$baridx++) { $elementwidth = (substr($codingmap[$char],$baridx,1)) ? $barcodethickwidth : $barcodethinwidth; if (($baridx+1)%2) { imagefilledrectangle($im,$xpos,0,$xpos+$elementwidth-1,$barcodeheight,$black); $xpos+=$elementwidth; } $xpos+=$barcodethinwidth; } } Header( "Content-type: image/gif"); ImageGif($im); ImageDestroy($im); return; ?> |
From: andi <bin...@li...> - 2001-09-09 00:14:51
|
andi Sat Sep 8 17:14:45 2001 EDT Modified files: /r2 TODO Log: Test Commit. Index: r2/TODO diff -u r2/TODO:1.16 r2/TODO:1.17 --- r2/TODO:1.16 Fri Jul 27 17:57:50 2001 +++ r2/TODO Sat Sep 8 17:14:45 2001 @@ -1,5 +1,4 @@ -# cvs: -# $Id: TODO,v 1.16 2001/07/28 00:57:50 alex Exp $ +cvs: $Id: TODO,v 1.17 2001/09/09 00:14:45 andi Exp $ r2 build: ------------------------------- |
From: alex <bin...@li...> - 2001-09-07 19:37:14
|
alex Fri Sep 7 12:37:07 2001 EDT Modified files: /r2/binarycloud/base/core Debug.php Page.php Log: Sync from sf Index: r2/binarycloud/base/core/Debug.php diff -u r2/binarycloud/base/core/Debug.php:1.7 r2/binarycloud/base/core/Debug.php:1.8 --- r2/binarycloud/base/core/Debug.php:1.7 Wed Aug 22 10:50:52 2001 +++ r2/binarycloud/base/core/Debug.php Fri Sep 7 12:37:07 2001 @@ -1,6 +1,6 @@ <?php // {{{ Header -/* -File $Id: Debug.php,v 1.7 2001/08/22 17:50:52 alex Exp $ +/* -File $Id: Debug.php,v 1.8 2001/09/07 19:37:07 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Author alex black, en...@tu... @@ -226,6 +226,7 @@ $this->_output_all_classes(); $this->_output_vars(); $this->_output_server_env(); + $this->_output_session_vars(); $this->_output_globals(); $this->_output_included_files(); break; @@ -262,6 +263,9 @@ case "server_env": $this->_output_server_env(); break; + case "session": + $this->_output_session_vars(); + break; case "globals": $this->_output_globals(); break; @@ -280,6 +284,7 @@ $this->_output_all_classes(); $this->_output_vars(); $this->_output_server_env(); + $this->_output_session_vars(); $this->_output_globals(); $this->_output_included_files(); break; @@ -592,6 +597,36 @@ echo "No variables have been captured"; } } + + // }}} + // {{{ _output_session_vars + + /** + * This method prints all of the session vars. + * + * @author jason hines, ja...@gr... + * @access private + */ + + function _output_session_vars() { + global $HTTP_SESSION_VARS; + + $this->_output_header('Session Variables'); + $session_vars = $HTTP_SESSION_VARS; + + if (is_array($session_vars)) { + + foreach($session_vars as $var=>$key) { + print $var; + print ": "; + print_r($key); + print "\n"; + } + + } else { + echo "No session variables have been registered"; + } + } // }}} // {{{ _output_server_env Index: r2/binarycloud/base/core/Page.php diff -u r2/binarycloud/base/core/Page.php:1.18 r2/binarycloud/base/core/Page.php:1.19 --- r2/binarycloud/base/core/Page.php:1.18 Thu Aug 16 13:43:26 2001 +++ r2/binarycloud/base/core/Page.php Fri Sep 7 12:37:07 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: Page.php,v 1.18 2001/08/16 20:43:26 alex Exp $ + * -File $Id: Page.php,v 1.19 2001/09/07 19:37:07 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Authors alex black, en...@tu... @@ -157,7 +157,7 @@ echo $CacheManager->GetModuleCache(); $Debug->CaptureMessage('Page', "Used module cache with id ".$CacheManager->module['id']); } else { - $Debug->CaptureMessage('Page', "Built module"); + $Debug->CaptureMessage('Page', "Built module ".get_class($mod['obj'])); $mod['obj']->Output(); } if ($mod['cache'] == true) { |
From: alex <bin...@li...> - 2001-09-05 03:52:29
|
alex Tue Sep 4 20:52:22 2001 EDT Modified files: /r2/binarycloud/base/core Lang.php Log: Making Debug available to private methods in Lang. Index: r2/binarycloud/base/core/Lang.php diff -u r2/binarycloud/base/core/Lang.php:1.4 r2/binarycloud/base/core/Lang.php:1.5 --- r2/binarycloud/base/core/Lang.php:1.4 Tue Jul 10 14:31:46 2001 +++ r2/binarycloud/base/core/Lang.php Tue Sep 4 20:52:22 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /******************************************************************************* - ** -File $Id: Lang.php,v 1.4 2001/07/10 21:31:46 alex Exp $ + ** -File $Id: Lang.php,v 1.5 2001/09/05 03:52:22 alex Exp $ ** -License LGPL (http://www.gnu.org/copyleft/lesser.html) ** -Copyright 2001, The Turing Studio, Inc. ** -Author nico galoppo, ni...@cr... @@ -350,6 +350,7 @@ function _set_charset_from_langs() { global $Sess; + global $Debug; global $gLangCharset; foreach ($this->langs as $lang) { @@ -407,6 +408,7 @@ function _set_currency_from_langs() { global $Sess; + global $Debug; global $gLangCurrencyName; global $gLangCurrencySymbol; @@ -505,6 +507,7 @@ function _set_datetime_from_langs() { global $Sess; + global $Debug; global $gLangDateSpec; global $gLangTimeSpec; |
From: alex <bin...@li...> - 2001-08-31 18:57:30
|
alex Fri Aug 31 11:57:23 2001 EDT Added files: /r2/binarycloud/user/htdocs query_example.xml.php /r2/binarycloud/user/mod/query_example/qry Queries.php Queries.qry.xml Modified files: /r2/binarycloud/base/core Request.php /r2/binarycloud/base/mgr QueryManager.php /r2/binarycloud/docs/specs/xml datasources.xml /r2/binarycloud/user/conf datasources.php datasources.xml.php /r2/binarycloud/user/mod/query_example QueryExample.php schema.sql schema.xml Log: Andi's Checkins |
From: Andreas A. (Thyrell) <a.a...@th...> - 2001-08-31 17:40:25
|
r2/binarycloud/base/core/Request.php 1) Added Method GetPathVar($_index, $_type) Gets a variable value from path information. You need a webserver that supports PATH_INFO to make use of this feauture. Note that you only can fetch "values" so you have to provide the index of the value you need. i.e.: www.foo.com/path/to/php/scriptname/100 | | | +-- GetPathVar(1); GetPathVar(0) --+ Note: This method is still experimental and not fully tested in production environments!!! Be careful if you're using it and please report errors/problems. 2) Added class variables that initialized in the constructor, so that you can directly access them without using GetVar() everytime. var $scriptname; // SCRIPT_NAME of current request var $phpself; // PHP_SELF var $pathinfo; // PATH_INFO var $scriptbase; // basename of SCRIPT_NAME var $scriptpath; // basepath of current script Andi |
From: Andreas A. <a.a...@th...> - 2001-08-26 11:33:47
|
I modified datasources/query definitions, revised and commited the following files. Here we go: [/r2/binarycloud/user/conf/Datasources.xml.php/Datasources.php] - slight format changes too be consistent with lang, query etc - changed "Case" of metabase specific tags. i.e "IncludePath" instead of "includepath" - changed tag <database_name> to <database> [/r2/binarycloud/base/mgr/QueryManager.php] - general - changed 'QUERY' and 'ARGTYPES' records in query statements to lowercase to work with xml2php output - method PrepareConnection() - added proper support for datasources format - added support for "default" datasource used if no datasource name is supplied via init (i.e. missing in pagedef) - method _ProcessResult() - added strtolower for column-names in resultbuffer - method _LoadQueries() - changed method to support to load queries in query definition format [/r2/binarycloud/user/mod/query_example/*] - changed example and schemas to new conventions should work with oracle and mysql now - added qry/ directory and example query definitons - added demonstration of queryloading in example [/r2/binarycloud/user/htdocs/query_example.xml.php] - added xml page definition for query example [/r2/binarycloud/docs/specs/xml/datasources.xml] - documented changes Andi |
From: alex <bin...@li...> - 2001-08-24 19:29:48
|
alex Fri Aug 24 12:29:37 2001 EDT Modified files: /r2/binarycloud/base/init prepend.php /r2/binarycloud/user/htdocs index.xml.php Log: Added Andi's params function Index: r2/binarycloud/base/init/prepend.php diff -u r2/binarycloud/base/init/prepend.php:1.4 r2/binarycloud/base/init/prepend.php:1.5 --- r2/binarycloud/base/init/prepend.php:1.4 Mon Aug 20 12:30:29 2001 +++ r2/binarycloud/base/init/prepend.php Fri Aug 24 12:29:36 2001 @@ -1,7 +1,7 @@ <?php // {{{ Header /* - * -File $Id: prepend.php,v 1.4 2001/08/20 19:30:29 alex Exp $ + * -File $Id: prepend.php,v 1.5 2001/08/24 19:29:36 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, Intacct Corp. * -Author odysseas tsatalos, ody...@ya... @@ -18,6 +18,17 @@ // }}} // function import($_file) {{{ +/** + * This function allows developers to specify a package & class name, and + * have a class included from that. + * + * @param object The object instance this functions should applied to + * @param array The parameter array passed to the constructor + * @return bool True/false + * @author odysseas, ody...@bi... + * @access public + */ + function import($_file) { global $sImportMap; if ($sImportMap[$_file]) { return true; } @@ -35,6 +46,38 @@ } return false; } +// }}} + +// function extract_params {{{ +/** + * Non class method extract_params extracts the params passed to + * a module to class vars. + * Called within the constructor method of you module like: + * + * extract_params($this, $_params) + * + * It actually does the following: + * + * - copies $_params to $this->params + * - references each key of $this->params to $this->key + * + * @param object The object instance this functions should applied to + * @param array The parameter array passed to the constructor + * @return bool True/false + * @author Andreas Aderhold, an...@bi... + * @access public + */ + +function extract_params(&$_cls, $_params) { + if (!is_array($_params)) { + return; +} + $_cls->params = $_params; + foreach (array_keys($_cls->params) as $name) { + $_cls->$name =& $_cls->params[$name]; + } +} + // }}} ?> Index: r2/binarycloud/user/htdocs/index.xml.php diff -u r2/binarycloud/user/htdocs/index.xml.php:1.1 r2/binarycloud/user/htdocs/index.xml.php:1.2 --- r2/binarycloud/user/htdocs/index.xml.php:1.1 Thu Aug 23 17:09:11 2001 +++ r2/binarycloud/user/htdocs/index.xml.php Fri Aug 24 12:29:36 2001 @@ -1,101 +1,100 @@ -<?xml version="1.0" ?> -<!-- Header {{{ -******************************************************************************* -** -File $Id: index.xml.php,v 1.1 2001/08/24 00:09:11 alex Exp $ -** -License LGPL (http://www.gnu.org/copyleft/lesser.html) -** -Copyright 2001, The Turing Studio, Inc. -** -Author alex black, en...@tu... -****************************************************************************** -}}} --> -<page> - <init> - <ini>TRUE</ini> - <sess>TRUE</sess> - <lang>TRUE</lang> - <auth>FALSE</auth> - <perm>FALSE</perm> - <output>FALSE</output> - <debug>FALSE</debug> - <cache>TRUE</cache> - <database>TRUE</database> - </init> - <database> - <source>mysql_base</source> - </database> - <cache> - <expires>20</expires> - - </cache> - <templates> - <default> - <name>example</name> - <package>html.masters</package> - <type>html</type> - </default> - <other> - <name>other</name> - <package>html.masters</package> - <type>html</type> - </other> - </templates> - <modules> - <content> - <layout> - <name>example</name> - <package>html.layouts</package> - </layout> - <load> - <module> - <id>mooboo</id> - <name>OtherWorld</name> - <package>hello_world</package> - <load_order>3</load_order> - </module> - <module> - <id>some_other_unique_name</id> - <name>SetLangExample</name> - <package>set_lang_example</package> - <load_order>6</load_order> - </module> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>1</load_order> - <params> - <example>something I want this module to know</example> - <another>1</another> - </params> - </module> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>5</load_order> - </module> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>4</load_order> - </module> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>2</load_order> - </module> - </load> - </content> - <left> - <load> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>2</load_order> - </module> - <module> - <name>HelloWorld</name> - <package>hello_world</package> - <load_order>1</load_order> - </module> - </load> - </left> - </modules> -</page> +<?xml version="1.0" ?> +<!-- Header {{{ +******************************************************************************* +** -File $Id: index.xml.php,v 1.2 2001/08/24 19:29:36 alex Exp $ +** -License LGPL (http://www.gnu.org/copyleft/lesser.html) +** -Copyright 2001, The Turing Studio, Inc. +** -Author alex black, en...@tu... +****************************************************************************** +}}} --> +<page> + <init> + <ini>TRUE</ini> + <sess>TRUE</sess> + <lang>TRUE</lang> + <auth>FALSE</auth> + <perm>FALSE</perm> + <output>FALSE</output> + <debug>FALSE</debug> + <cache>TRUE</cache> + <database>TRUE</database> + </init> + <database> + <source>mysql_base</source> + </database> + <cache> + <expires>20</expires> + </cache> + <templates> + <default> + <name>example</name> + <package>html.masters</package> + <type>html</type> + </default> + <other> + <name>other</name> + <package>html.masters</package> + <type>html</type> + </other> + </templates> + <modules> + <content> + <layout> + <name>example</name> + <package>html.layouts</package> + </layout> + <load> + <module> + <id>mooboo</id> + <name>OtherWorld</name> + <package>hello_world</package> + <load_order>3</load_order> + </module> + <module> + <id>some_other_unique_name</id> + <name>SetLangExample</name> + <package>set_lang_example</package> + <load_order>6</load_order> + </module> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>1</load_order> + <params> + <example>something I want this module to know</example> + <another>1</another> + </params> + </module> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>5</load_order> + </module> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>4</load_order> + </module> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>2</load_order> + </module> + </load> + </content> + <left> + <load> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>2</load_order> + </module> + <module> + <name>HelloWorld</name> + <package>hello_world</package> + <load_order>1</load_order> + </module> + </load> + </left> + </modules> +</page> |
From: alex <bin...@li...> - 2001-08-24 00:09:16
|
alex Thu Aug 23 17:09:11 2001 EDT Added files: /r2/binarycloud/user/htdocs index.xml.php Log: Added Andris test bapge def file. Index: r2/binarycloud/user/htdocs/index.xml.php +++ r2/binarycloud/user/htdocs/index.xml.php <?xml version="1.0" ?> <!-- Header {{{ ******************************************************************************* ** -File $Id: index.xml.php,v 1.1 2001/08/24 00:09:11 alex Exp $ ** -License LGPL (http://www.gnu.org/copyleft/lesser.html) ** -Copyright 2001, The Turing Studio, Inc. ** -Author alex black, en...@tu... ****************************************************************************** }}} --> <page> <init> <ini>TRUE</ini> <sess>TRUE</sess> <lang>TRUE</lang> <auth>FALSE</auth> <perm>FALSE</perm> <output>FALSE</output> <debug>FALSE</debug> <cache>TRUE</cache> <database>TRUE</database> </init> <database> <source>mysql_base</source> </database> <cache> <expires>20</expires> </cache> <templates> <default> <name>example</name> <package>html.masters</package> <type>html</type> </default> <other> <name>other</name> <package>html.masters</package> <type>html</type> </other> </templates> <modules> <content> <layout> <name>example</name> <package>html.layouts</package> </layout> <load> <module> <id>mooboo</id> <name>OtherWorld</name> <package>hello_world</package> <load_order>3</load_order> </module> <module> <id>some_other_unique_name</id> <name>SetLangExample</name> <package>set_lang_example</package> <load_order>6</load_order> </module> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>1</load_order> <params> <example>something I want this module to know</example> <another>1</another> </params> </module> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>5</load_order> </module> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>4</load_order> </module> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>2</load_order> </module> </load> </content> <left> <load> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>2</load_order> </module> <module> <name>HelloWorld</name> <package>hello_world</package> <load_order>1</load_order> </module> </load> </left> </modules> </page> |
From: alex <bin...@li...> - 2001-08-24 00:08:15
|
alex Thu Aug 23 17:08:10 2001 EDT Modified files: /r2/binarycloud Makefile Makefile.in /r2/binarycloud/user Makefile /r2/binarycloud/user/conf conf.xml.php datasources.xml.php langs.xml.php operations.xml.php Log: Andris' Makefile revisions to support xml2php. XML base config files. |
From: alex <bin...@li...> - 2001-08-24 00:07:14
|
alex Thu Aug 23 17:07:08 2001 EDT Modified files: /r2/binarycloud/base/utils xml2php.php Log: Andris revisions on xml2php. Index: r2/binarycloud/base/utils/xml2php.php diff -u r2/binarycloud/base/utils/xml2php.php:1.5 r2/binarycloud/base/utils/xml2php.php:1.6 --- r2/binarycloud/base/utils/xml2php.php:1.5 Mon Aug 20 20:24:57 2001 +++ r2/binarycloud/base/utils/xml2php.php Thu Aug 23 17:07:08 2001 @@ -1,11 +1,12 @@ -#!c:/php/php.exe -q +#!/usr/local/php4/bin/php -q <?php // {{{ Header /* - * -File $Id: xml2php.php,v 1.5 2001/08/21 03:24:57 alex Exp $ + * -File $Id: xml2php.php,v 1.6 2001/08/24 00:07:08 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... */ // }}} @@ -21,8 +22,7 @@ $type = $argv[0]; array_shift($argv); $xmlfile = $argv[0]; $outfile = $argv[1]; -// A stupid hack. This shoulld be done in makefile. -// Andris Spruds (an...@do...) +// _small_stupid_hack_ This should be done in makefile. Andris Spruds (an...@do...) $outfile=ereg_replace(".xml.php$",".php",$outfile); // }}} @@ -30,74 +30,55 @@ import('binarycloud.lib.XMLUtils'); $trees = XMLUtils::XMLStr2XML(join('',file($xmlfile, 1))); $xmlTree=$trees[0]; -$phpTree = XMLUtils::XML2PHP($xmlTree); +$phpTree = XMLUtils::XML2PHP($xmlTree); +$txtTree = XMLUtils::PHP2PHPArr($phpTree,false); +$nl="\r\n"; switch ($type) { case 'page_def' : - $txtTree = XMLUtils::XML2PHPArr($xmlTree); - $txtTree = ereg_replace(",\r\n$","",$txtTree); - $txtTree = ereg_replace("^'".$xmlTree['tag']."' =>","\$gPageDef = ",$txtTree); - $buffer="<?\r\n"; - $buffer.="import('binarycloud.init.Init');\r\n\r\n"; - $buffer.=$txtTree; - $buffer.=";\r\n\r\n"; - $buffer.="\$Init = new Init();\r\n"; - $buffer.="\$Init->Startup();\r\n"; - $buffer.="\$Page->BuildPage();\r\n"; - $buffer.="\$Init->Shutdown();\r\n"; - $buffer.="?>"; + $buffer.="include_once('./prepend.php');".$nl; + $buffer.="import('binarycloud.init.Init');"; + $buffer.=$nl.$nl; + $buffer.="\$gPageDef = "; + $buffer.=$txtTree; + $buffer.=$nl.$nl; + $buffer.="\$Init = new Init();" . $nl; + $buffer.="\$Init->Startup();" . $nl; + $buffer.="\$Page->BuildPage();" . $nl; + $buffer.="\$Init->Shutdown();"; break; case 'lang_def' : - $txtTree = XMLUtils::XML2PHPArr($xmlTree); - $txtTree = ereg_replace(",\r\n$","",$txtTree); - $txtTree = ereg_replace("^'".$xmlTree['tag']."' =>","\$Lang->langs = ",$txtTree); - $buffer="<?\r\n"; - $buffer.="global \$Lang;\r\n\r\n"; + $buffer.="global \$Lang;"; + $buffer.=$nl.$nl; + $buffer.="\$Lang->langs = "; $buffer.=$txtTree; - $buffer.=";\r\n\r\n"; - $buffer.="?>"; break; case 'conf_def' : - $txtTree = XMLUtils::XML2PHPDef($xmlTree); - $buffer="<?\r\n"; + $txtTree=XMLUtils::XML2PHPDef($xmlTree); $buffer.=$txtTree; - $buffer.="?>"; break; case 'datasources_def' : - $txtTree = XMLUtils::XML2PHPArr($xmlTree); - $txtTree = ereg_replace(",\r\n$","",$txtTree); - $txtTree = ereg_replace("^'".$xmlTree['tag']."' =>","\$datasources = ",$txtTree); - $buffer="<?\r\n"; - $buffer.=$txtTree; - $buffer.=";\r\n\r\n"; - $buffer.="?>"; - break; - case 'operations_def' : - $txtTree = XMLUtils::XML2PHPArr($xmlTree); - $txtTree = ereg_replace(",\r\n$","",$txtTree); - $txtTree = ereg_replace("^'".$xmlTree['tag']."' =>","\$operations = ",$txtTree); - $buffer="<?\r\n"; + $buffer.="global \$QueryManager;"; + $buffer.=$nl.$nl; + $buffer.="\$QueryManager->datasources = "; $buffer.=$txtTree; - $buffer.=";\r\n\r\n"; - $buffer.="?>"; break; - case 'roles_def' : - $txtTree = XMLUtils::XML2PHPArr($xmlTree); - $txtTree = ereg_replace(",\r\n$","",$txtTree); - $txtTree = ereg_replace("^'".$xmlTree['tag']."' =>","\$roles[me] = ",$txtTree); - $buffer="<?\r\n"; - $buffer.=$txtTree; - $buffer.=";\r\n\r\n"; - $buffer.="?>"; - break; default: - die("Type '$type' is invalid. Valid styles are page_def,lang_def,conf_def,ds_def,roles_def.\n"); + $buffer.=$txtTree; break; - } +} // }}} // Produce output {{{ +$header="// XML2PHP {{{".$nl; +$header.="/******************************************************************************".$nl; +$header.="** -Source $xmlfile".$nl; +$header.="******************************************************************************/".$nl; +$header.="// }}}".$nl; + +$buffer="<?".$nl.$header.$nl.$buffer.$nl; +$buffer.="?>"; if ($outfile) { $dir_name=dirname($outfile); @@ -105,9 +86,9 @@ mkdir($dir_name,0700); } - $fd = @fopen( $outfile, "w" ) or die( "Could not open file for writing : $outfile\n" ); + $fd = @fopen( $outfile, "w" ) or die( "XML2PHP : could not open file for writing : $outfile\n" ); fwrite( $fd, $buffer, strlen($buffer) ); fclose($fd); } // }}} -?> \ No newline at end of file +?> |
From: alex <bin...@li...> - 2001-08-24 00:07:01
|
alex Thu Aug 23 17:06:55 2001 EDT Modified files: /r2/binarycloud/base/lib XMLUtils.php Log: Andris' revisions on XMLUtils. |
From: alex <bin...@li...> - 2001-08-24 00:06:45
|
alex Thu Aug 23 17:06:39 2001 EDT Modified files: /r2/binarycloud/base/lib Makefile Log: Changes to support xml2php Index: r2/binarycloud/base/lib/Makefile diff -u r2/binarycloud/base/lib/Makefile:1.6 r2/binarycloud/base/lib/Makefile:1.7 --- r2/binarycloud/base/lib/Makefile:1.6 Sat Jul 14 19:03:14 2001 +++ r2/binarycloud/base/lib/Makefile Thu Aug 23 17:06:39 2001 @@ -1,23 +1,24 @@ -# {{{ Header -# -File $Id: Makefile,v 1.6 2001/07/15 02:03:14 alex Exp $ -# -License LGPL (http://www.gnu.org/copyleft/lesser.html) -# -Copyright 2001, Intacct Corp. -# -Author odysseas tsatalos, ody...@ya... -# }}} - -include ../../Makefile.in - -OLDSTYLEFILES= \ - $(EMPTY) - -PACKAGEDFILES= \ - Timer.php \ - ClientSniffer.php \ - $(EMPTY) - -all: installcode - -installcode: - @$(INSTALLCODE) $(BUILD_DIR) $(PACKAGEDFILES) - @$(INSTALLCODE) $(BCBUILD_DIR)/lib $(OLDSTYLEFILES) - +# {{{ Header +# -File $Id: Makefile,v 1.7 2001/08/24 00:06:39 alex Exp $ +# -License LGPL (http://www.gnu.org/copyleft/lesser.html) +# -Copyright 2001, Intacct Corp. +# -Author odysseas tsatalos, ody...@ya... +# }}} + +include ../../Makefile.in + +OLDSTYLEFILES= \ + $(EMPTY) + +PACKAGEDFILES= \ + Timer.php \ + ClientSniffer.php \ + XMLUtils.php \ + $(EMPTY) + +all: installcode + +installcode: + @$(INSTALLCODE) $(BUILD_DIR) $(PACKAGEDFILES) + @$(INSTALLCODE) $(BCBUILD_DIR)/lib $(OLDSTYLEFILES) + |
From: alex <bin...@li...> - 2001-08-24 00:06:32
|
alex Thu Aug 23 17:06:26 2001 EDT Modified files: /r2/binarycloud/base/init Init.php Log: No actual changes, just rearranging methods to match their call order. |
From: alex <bin...@li...> - 2001-08-23 19:03:31
|
alex Thu Aug 23 12:03:25 2001 EDT Added files: /r2/binarycloud/docs/specs/xml EntityDefinition.php.xml QueryDefinition.qry.xml Log: Entity and Query definition xmls. Index: r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml +++ r2/binarycloud/docs/specs/xml/EntityDefinition.php.xml <entity> <!-- the name of the entity --> <entity:name>furbees</entity:name> <!-- the manager which should be imported by EntityManager. the role of an individual Entity Manager is to check the data before a post to the DB happens. It allows developers to write complex rules for an entity into a class. --> <entity:manager>FurbeesManager<entity:manager> <!-- db-related stuff for compatibility with metabase. this allows for auto-generation of metabase schema files from entity definitions --> <entity:database> <!-- the db name to use when creating tables or databases --> <name>binarycloud_db</name> <!-- create the database? --> <create>0</create> <!-- the table this entity references --> <table> <!-- table name --> <name>furbee</name> <!-- an index declaration for the primary key --> <index> <name>furbee_id</name> <unique>1</unique> <field> <name>furbee_id</name> </field> </index> </table> <!-- a database sequence for the primary key --> <sequence> <name>furbee_id</name> <start>1</start> <on> <table>furbee</table> <field>furbee_id</field> </on> </sequence> </entity:database> <!-- field definitions are the 'heart' of an entity these definitions carry all of the information necessary to create schemas, do validation, and label fields in html. --> <entity:fields> <field> <!-- the field name --> <name>furbee_id</name> <!-- the field label, or "full name" --> <label>Furbee ID</label> <!-- the description of the field --> <desc>Unique ID for ever Furbee</desc> <!-- the path in the entity --> <path>furbee_id</path> <!-- must this field be valid to do a post of this entity? --> <required>true</required> <!-- is this the default field in the db table? --> <default>0</default> <!-- can the field be null? --> <notnull>1</notnull> <!-- what is the simple, 'database' type of this field? --> <type>int</type> <!-- the maximum number of chars allowed in input fields and posts --> <maxlength>20</maxlength> <!-- Processors are classes which will condition the input somehow. In this example, the class EncodeEntitiesProcessor would be imported by EntityManager and passed the input for this field. It would return the input run through htmlspecialchars() or maybe a custom method for encoding xml/html character entities. --> <processors> <processor> <name>EncodeEntitiesProcessor</name> <params> <param_name>value</param_name> </params> </processor> </processors> <!-- Validators are classes which are imported by entityManager as requested and run again input. There will be a default set of validators like EmailAddressValidator, PhoneNumberValidator, etc. These validators will be passed the input of the post in the sequence they are declared. Each validator will be run against the input, and return true or false. If false, entitymanager will return an error. --> <validators> <validator> <name>FASTASequenceValidator</name> <params> <param_name>value</param_name> </params> </validator> </validators> <!-- This is the UI control that will be used by the FormBuilder class as a default. In this case, an <input type="text" size="20"> would result. --> <uicontrol> <name>TextBoxControl</name> <params> <size>20</size> </params> </uicontrol> </field> <field> <name>furbee_type_id</name> <label>Furbee type ID</label> <desc>The id of the type of furbee</desc> <path>furbee_type_id</path> <required>true</required> <type>int</type> <maxlength>20</maxlength> <!-- If this is declared, EntityManager knows that this field is a 'pointer' to another entity. --> <entity>furbee_type</entity> </field> </entity:fields> <!-- this should only be required to map old schemas to entities - under normal circumstances the fields should match names the entsource field is the path to the entity field, the dbtarget is the path to the database field. --> <entity:schema> <map> <entsource>furbee_type_id</entsource> <dbtarget>furbee.furbeetypeid</dbtarget> </map> </entity:schema> </entity> Index: r2/binarycloud/docs/specs/xml/QueryDefinition.qry.xml +++ r2/binarycloud/docs/specs/xml/QueryDefinition.qry.xml <?xml version="1.0" ?> <queries> <query> <!-- the name of the query --> <name>QRY_USER_SELECT_NEWS</name> <!-- The SQL portion of the query maybe with placeholders ("?") --> <sql>SELECT newsid, news FROM news WHERE newsid = ?</sql> <!-- Types of the values the ? is going to replaced with. In order of appearance in the sql portion of the query --> <argtypes> <type>integer</type> </argtypes> </query> <!-- Another query without arguments --> <query> <name>QRY_USER_SELECT_ALLNEWS</name> <sql>SELECT newsid, news FROM news ORDER BY date DESC</sql> </query> </queries> <!-- this will be translated to a importable file: <?php $queries = array( 'QRY_USER_SELECT_NEWS' => array( 'QUERY' => "SELECT newsid, news FROM news WHERE newsid = ?", 'ARGTYPES' => array('integer') 'QRY_USER_SELECT_ALLNEWS' => array( 'QUERY' => "SELECT newsid, news FROM news ORDER BY date DESC" ) ); global $QueryManager; $QueryManager->LoadQueries($queries); unset($queries); ?> --> |
From: alex <bin...@li...> - 2001-08-23 17:21:26
|
alex Thu Aug 23 10:21:19 2001 EDT Modified files: /r2 INSTALL.WIN32 /r2/binarycloud/user/mod/query_example schema.sql Log: No idea. Index: r2/INSTALL.WIN32 diff -u r2/INSTALL.WIN32:1.10 r2/INSTALL.WIN32:1.11 --- r2/INSTALL.WIN32:1.10 Mon Aug 20 12:59:14 2001 +++ r2/INSTALL.WIN32 Thu Aug 23 10:21:14 2001 @@ -63,3 +63,37 @@ Please send your comment to ron...@ho.... have fun :) +Complete Cygwin package list: +------------------------------------------------------------------------------- +Autoconf +Automake +Bash +Binutils +Clear +Cygwin (both packages) +Diff +File +Fileutils +Findutils +Grep +gZip +Inetutils +Less +Lynx +Make +Perl +Readline +Reges +Rsync +Sed +Sh-Utils +Tar +Textutils +Time +Unzip +w32API +wGet +Which +--------- +Download is roughly 7.7MB. + Index: r2/binarycloud/user/mod/query_example/schema.sql diff -u r2/binarycloud/user/mod/query_example/schema.sql:1.2 r2/binarycloud/user/mod/query_example/schema.sql:1.3 --- r2/binarycloud/user/mod/query_example/schema.sql:1.2 Tue Aug 21 19:02:43 2001 +++ r2/binarycloud/user/mod/query_example/schema.sql Thu Aug 23 10:21:19 2001 @@ -2,13 +2,13 @@ -- -- Table structure for table `news` -- -CREATE TABLE news ( - newsId int(11) default NULL, - news text +CREATE TABLE NEWS ( + NEWSID int(11) default NULL, + NEWS text ) TYPE=MyISAM; -- For Oracle: -CREATE TABLE news (newsid int default NULL,news varchar(255)); +-- CREATE TABLE NEWS (NEWSID int default NULL,NEWS varchar(255)); -- -- Dumping data for table `news` |
alex Wed Aug 22 14:46:15 2001 EDT Added files: /r2/binarycloud/base/bldr UIControlBuilder.php /r2/binarycloud/base/bldr/uicontrols AssistedTextBoxControl.php ButtonControl.php CheckBoxControl.php CurrencyControl.php DateControl.php DecimalControl.php HrefControl.php ImageControl.php MaskControl.php MultiPulldownControl.php MultiSelectBoxControl.php MultiTextBoxControl.php PasswordControl.php PulldownControl.php SelectBoxControl.php TextBoxControl.php WindowStatusControl.php multitextboxcontrol.cls.php Removed files: /r2/binarycloud/base/bldr README Log: Adding UIControlBuilder and initial set of controls |
From: alex <bin...@li...> - 2001-08-22 20:42:48
|
alex Wed Aug 22 13:42:43 2001 EDT Added files: /r2/binarycloud/user/htdocs/resources/edit bc_edit.htc example.html Log: bc_edit checkin, didn't like the dir name. |
From: alex <bin...@li...> - 2001-08-22 20:40:54
|
alex Wed Aug 22 13:40:49 2001 EDT Removed files: /r2/binarycloud/user/htdocs/resources/bc_edit bc_edit.htc example.html Log: Removed these. |
From: alex <bin...@li...> - 2001-08-22 20:39:09
|
alex Wed Aug 22 13:39:02 2001 EDT Removed files: /r2/binarycloud/user/db/qry README Log: Don't need this dir in source/ |