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: andi <bin...@li...> - 2001-09-18 13:57:22
|
andi Tue Sep 18 06:57:16 2001 EDT
Modified files:
/r2/binarycloud/base/core Page.php
Log:
Page uses Request now (.tmpl)
Index: r2/binarycloud/base/core/Page.php
diff -u r2/binarycloud/base/core/Page.php:1.19 r2/binarycloud/base/core/Page.php:1.20
--- r2/binarycloud/base/core/Page.php:1.19 Fri Sep 7 12:37:07 2001
+++ r2/binarycloud/base/core/Page.php Tue Sep 18 06:57:16 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*
- * -File $Id: Page.php,v 1.19 2001/09/07 19:37:07 alex Exp $
+ * -File $Id: Page.php,v 1.20 2001/09/18 13:57:16 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, The Turing Studio, Inc.
* -Authors alex black, en...@tu...
@@ -245,8 +245,9 @@
global $gPageDef;
$templates =& $gPageDef['templates'];
if (isset($templates)) {
- global $_tmpl;
- $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['default'];
+ global $Request;
+ $_tmpl = $Request->GetVar('_tmpl','GET');
+ $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['default'];
if (!isset($gPageDef['modules'])) {
$this->output = ob_get_contents();
ob_end_clean();
|
|
From: andi <bin...@li...> - 2001-09-18 13:47:56
|
andi Tue Sep 18 06:47:50 2001 EDT
Modified files:
/r2/binarycloud/base/core Lang.php
Log:
Switched Lang to use Request
Index: r2/binarycloud/base/core/Lang.php
diff -u r2/binarycloud/base/core/Lang.php:1.7 r2/binarycloud/base/core/Lang.php:1.8
--- r2/binarycloud/base/core/Lang.php:1.7 Wed Sep 12 11:13:24 2001
+++ r2/binarycloud/base/core/Lang.php Tue Sep 18 06:47:50 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*******************************************************************************
- ** -File $Id: Lang.php,v 1.7 2001/09/12 18:13:24 andi Exp $
+ ** -File $Id: Lang.php,v 1.8 2001/09/18 13:47:50 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author nico galoppo, ni...@cr...
@@ -178,12 +178,14 @@
function _set_lang_from_query_string() {
global $Debug;
- global $_lang;
+ global $Request;
- if (isset($_lang)) {
- foreach ($this->langs as $lang) {
- if ($lang['code'] == $_lang) {
- $this->_set_lang($lang['code'], $lang['native']);
+ $lang = $Request->GetVar('_lang', 'GET');
+
+ if ($lang !== $Request->undefined) {
+ foreach ($this->langs as $lng) {
+ if ($lng['code'] == $lang) {
+ $this->_set_lang($lng['code'], $lng['native']);
break;
}
}
@@ -211,12 +213,14 @@
function _set_lang_from_session() {
global $Debug;
- global $HTTP_SESSION_VARS;
-
- if (isset($HTTP_SESSION_VARS["gLangCode"])) {
- foreach ($this->langs as $lang) {
- if ($lang['code'] == $HTTP_SESSION_VARS["gLangCode"]) {
- $this->_set_lang($lang['code'], $lang['native']);
+ global $Request;
+
+ $langCode = $Request->GetVar('gLangCode', 'SESSION');
+
+ if ($langCode !== $Request->undefined) {
+ foreach ($this->langs as $lng) {
+ if ($lng['code'] == $langCode) {
+ $this->_set_lang($lng['code'], $lng['native']);
break;
}
}
@@ -245,15 +249,18 @@
*/
function _set_lang_from_accept_language() {
- global $Sess;
global $Debug;
- global $HTTP_ACCEPT_LANGUAGE;
- global $gLangCode;
+ global $Request;
+ global $Sess;
+
+
+ $HttpAcceptLanguage = $Request->GetVar("HTTP_ACCEPT_LANGUAGE", 'SERVER');
+ $langCode = $Request->GetVar("gLangCode");
- if (!empty($HTTP_ACCEPT_LANGUAGE) && !defined('BC_LANG')) {
- foreach ($this->langs as $lang) {
- if ($lang['code'] == $HTTP_ACCEPT_LANGUAGE) {
- $this->_set_lang($lang['code'], $lang['native']);
+ if (!empty($HttpAcceptLanguage) && !defined('BC_LANG')) {
+ foreach ($this->langs as $lng) {
+ if ($lng['code'] == $HttpAcceptLanguage) {
+ $this->_set_lang($lng['code'], $lng['native']);
break;
}
}
@@ -280,14 +287,13 @@
*/
function _set_lang_from_default() {
- global $Sess;
global $Debug;
- global $gLangCode;
+ global $Sess;
- foreach ($this->langs as $lang) {
- if ($lang['default'] == true) {
- $this->_set_lang($lang['code'], $lang['native']);
+ foreach ($this->langs as $lng) {
+ if ($lng['default'] == true) {
+ $this->_set_lang($lng['code'], $lng['native']);
break;
}
}
@@ -319,7 +325,10 @@
*/
function _set_lang($code, $name) {
+ global $Debug;
+ global $Request;
global $Sess;
+
global $gLangCode;
global $gLangName;
@@ -330,8 +339,9 @@
$gLangCode = BC_LANG;
$gLangName = BC_LANG_NAME;
$Sess->Register("gLangCode");
+ $Sess->SetVar("gLangCode", $gLangCode);
$Sess->Register("gLangName");
-
+ $Sess->SetVar("gLangName", $gLangName);
return true;
}
@@ -473,14 +483,17 @@
*/
function _set_datetime_from_session() {
- global $HTTP_SESSION_VARS;
+ global $Request;
global $gLangDateSpec;
global $gLangTimeSpec;
-
- if (isset($HTTP_SESSION_VARS["gLangDateSpec"]) && isset($HTTP_SESSION_VARS["gLangTimeSpec"])) {
- define("BC_LANG_DATESPEC", $HTTP_SESSION_VARS["gLangDateSpec"]);
- define("BC_LANG_TIMESPEC", $HTTP_SESSION_VARS["gLangTimeSpec"]);
+ $gLangDateSpec = $Request->GetVar('gLangDateSpec', 'SESSION');
+ $gLangTimeSpec = $Request->GetVar('gLangTimeSpec', 'SESSION');
+
+
+ if (isset($gLangDateSpec) && isset($gLangTimeSpec)) {
+ define("BC_LANG_DATESPEC", $gLangDateSpec);
+ define("BC_LANG_TIMESPEC", $gLangTimeSpec);
}
if (defined('BC_LANG_DATESPEC') && defined('BC_LANG_TIMESPEC')) {
@@ -506,6 +519,7 @@
*/
function _set_datetime_from_langs() {
+ global $Request;
global $Sess;
global $Debug;
global $gLangDateSpec;
@@ -518,7 +532,9 @@
$gLangDateSpec = BC_LANG_DATESPEC;
$gLangTimeSpec = BC_LANG_TIMESPEC;
$Sess->Register("gLangDateSpec");
+ $Sess->SetVar("gLangDateSpec", $gLangDateSpec);
$Sess->Register("gLangTimeSpec");
+ $Sess->SetVar("gLangTimeSpec", $gLangTimeSpec);
break;
}
}
@@ -535,4 +551,11 @@
}
// }}}
+/*
+ * Local Variables:
+ * mode: php
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */
?>
|
|
From: andi <bin...@li...> - 2001-09-18 13:47:24
|
andi Tue Sep 18 06:47:18 2001 EDT
Modified files:
/r2/binarycloud/base/init Init.php
Log:
Init load Request now
Index: r2/binarycloud/base/init/Init.php
diff -u r2/binarycloud/base/init/Init.php:1.42 r2/binarycloud/base/init/Init.php:1.43
--- r2/binarycloud/base/init/Init.php:1.42 Wed Sep 12 11:12:41 2001
+++ r2/binarycloud/base/init/Init.php Tue Sep 18 06:47:17 2001
@@ -1,7 +1,7 @@
<?php
// Header {{{
/*******************************************************************************
- ** -File $Id: Init.php,v 1.42 2001/09/12 18:12:41 andi Exp $
+ ** -File $Id: Init.php,v 1.43 2001/09/18 13:47:17 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
@@ -61,7 +61,7 @@
function Startup() {
$this->_start_timer();
$this->_load_debug();
- //$this->_load_request();
+ $this->_load_request();
$this->_start_ob();
$this->_set_user_constants();
$this->_load_sess();
|
|
From: andi <bin...@li...> - 2001-09-18 13:46:37
|
andi Tue Sep 18 06:46:12 2001 EDT
Added files:
/r2/tools/misc php-mode.el
Log:
PHP major mode for emacs
|
|
From: alex <bin...@li...> - 2001-09-16 21:07:29
|
alex Sun Sep 16 14:07:24 2001 EDT
Modified files:
/r2 CREDITS
Log:
Layout changes.
Index: r2/CREDITS
diff -u r2/CREDITS:1.14 r2/CREDITS:1.15
--- r2/CREDITS:1.14 Sat Jul 14 18:14:10 2001
+++ r2/CREDITS Sun Sep 16 14:07:24 2001
@@ -1,109 +1,91 @@
-#######################################################
-# r2
-######################################################
+$Id: CREDITS,v 1.15 2001/09/16 21:07:24 alex Exp $
-Alex Black
- en...@tu...
-Odysseas Tsatalos
- ody...@ya...
-
-Nico Galoppo
- sc...@ac...
-
-Andreas Aderhold
- a.a...@th...
-
+##
+# r2 / core
+##
+Alex Black, en...@tu...
+Odysseas Tsatalos, ody...@ya...
+Andreas Aderhold, a.a...@th...
John Campbell
-
-John Donagher
- jo...@we...
-
-Stratis Karamanlakis
- ska...@ya...
-
-Ronald TAO
- ron...@ho...
-
-Markus Fischer
- mfi...@jo...
-
-David Weingart
- dwe...@po...
+John Donagher, jo...@we...
+Charles Killian, Ch...@Al...
-#######################################################
-# r1
-######################################################
-
-Charles Killian
- Ch...@Al...
-
-Panteli Poulikakos
- pa...@ya...
-
-Vicky Atkinson
- tu...@vi...
-
-David Laing
- da...@va...
-
+##
+# r2 / contrib
+##
+Nico Galoppo, sc...@ac...
+Stratis Karamanlakis, ska...@ya...
+Ronald TAO , ron...@ho...
+Markus Fischer, mfi...@jo...
+David Weingart , dwe...@po...
+
+##
+# r1 / core
+##
+Panteli Poulikakos, pa...@ya...
+Vicky Atkinson, tu...@vi...
+
+##
+# r1 / contrib
+##
+David Laing, da...@va...
Silas Martinez
-
-######################################################
-# Third party scripts
-######################################################
+##
+# third party scripts and packages
+##
Metabase
- Free
- Manuel Lemos <ml...@ac...>
- http://phpclasses.upperdesign.com/browse.html/package/20
+ Free
+ Manuel Lemos <ml...@ac...>
+ http://phpclasses.upperdesign.com/browse.html/package/20
Webalizer
- GPL
- Copyright 1997-1999 Bradford L. Barrett
- br...@mr... http://www.mrunix.net
- Distributed under the GNU GPL Version 2
+ GPL
+ Copyright 1997-1999 Bradford L. Barrett
+ br...@mr... http://www.mrunix.net
+ Distributed under the GNU GPL Version 2
PHPLIB Shopping Cart
- LGPL
- Copyright (c) 1998,1999 SH Online Dienst GmbH
- Boris Erdmann, Kristian Koehntopp
- http://phplib.netuse.de/documentation/documentation-1.html
-
+ LGPL
+ Copyright (c) 1998,1999 SH Online Dienst GmbH
+ Boris Erdmann, Kristian Koehntopp
+ http://phplib.netuse.de/documentation/documentation-1.html
+
PHPClientSniffer
- GPL
- Roger Raymond for PHyX8 studios
- rog...@as...
- http://www.asphyxia.com/
-
+ GPL
+ Roger Raymond for PHyX8 studios
+ rog...@as...
+ http://www.asphyxia.com/
+
PRAX
- Perl "Artistic"
- Copyright (c) 2000 Rael Dornfest
- ra...@or...
-
+ Perl "Artistic"
+ Copyright (c) 2000 Rael Dornfest
+ ra...@or...
+
HTML Mime Mail class
- Postcard-ware
- Richard Heyes <ric...@he...>
- http://www.heyes-computing.net/scripts/
-
+ Postcard-ware
+ Richard Heyes <ric...@he...>
+ http://www.heyes-computing.net/scripts/
+
SMTP E-mail sending class
- Free
- Manuel Lemos <ml...@ac...>
- http://phpclasses.upperdesign.com/browse.html/package/14
-
+ Free
+ Manuel Lemos <ml...@ac...>
+ http://phpclasses.upperdesign.com/browse.html/package/14
+
class.xml
- PHP
- (c) 2000 Hans Anderson Corporation
- me...@ha...
- http://www.hansanderson.com/php/
+ PHP
+ (c) 2000 Hans Anderson Corporation
+ me...@ha...
+ http://www.hansanderson.com/php/
PEAR
- PHP
- We use PEAR_Error as the base error class.
- We also support all of the PEAR libraries.
- http://pear.php.net
+ PHP
+ We use PEAR_Error as the base error class.
+ We also support all of the PEAR libraries.
+ http://pear.php.net
VAGRANT
- GPL
- http://vagrant.sourceforge.net/index.html
- Used in graph examples.
+ GPL
+ http://vagrant.sourceforge.net/index.html
+ Used in graph examples.
|
|
From: andi <bin...@li...> - 2001-09-16 20:39:50
|
andi Sun Sep 16 13:39:44 2001 EDT
Added files:
/r2/binarycloud/base/lib BCTagParser.php
Log:
Parser class that will provide parsing xhtml/xml files for bc:* tags. Very early experimetnal code
Index: r2/binarycloud/base/lib/BCTagParser.php
+++ r2/binarycloud/base/lib/BCTagParser.php
#!/usr/local/php4/bin/php -q
<?php
class BCTagParser {
/** Pool of all registered bc:foo tags and processor methods */
var $knownTags;
function BCTagParser($_file) {
$this->RegisterTag('BC:IMG', "ImageRequestBuilder::Process");
$this->RegisterTag('BC:JS', "JSRequestBuilder::Process");
$this->RegisterTag('BC:MODULE', "_ProcessModule");
$this->_Parse($_file);
}
function RegisterTag($_tag, $_processor) {
$this->knownTags[$_tag] = $_processor;
}
// method _StartElement(&$_parser, $_name, $_attrs) {{{
/**
* Method function triggered when an XML start element appears
* here we will parse tag's we recognize from the xml file
*
* @param $_parser ref the XML parser
* @param $_name string the tag found
* @param $_attrs array the attributes this tag carried
* @access private
* @author Andreas Adrehold, <a.a...@th...>
*/
function _StartElement(&$_parser, $_name, $_attrs) {
if (!isset($this->knownTags[$_name])) {
print "Unknown Tag $_name\n";
return;
}
print "Processing $_name using ".$this->knownTags[$_name]."\n";
var_dump($_attrs);
// call the processing function, return resulting php
// return $this->knownTags[$_name]($_attrs);
}
// }}}
// method _EndElement(&$_parser, $_name) {{{
function _EndElement(&$_parser, $_name) {
// nothing - for now
}
// }}}
// method _ProcessModule(&$_attrs) {{{
function _ProcessModule(&$_attrs) {
// wil call xml2php methods etc.
// retuns resulting php
var_dump($attrs);
}
// }}}
// method _Parse($_file) {{{
/**
* private method for parsing the XML file. actually creates XML
* parser and sets up element handlers
*
* @param $_file string the file to parse
*/
function _Parse($_file) {
printf("Parsing XML file: $_file...\n",$this);
if (empty($_file)) {
die("XML file to parse was not set");
}
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
xml_set_object($xml_parser, &$this);
xml_set_element_handler($xml_parser, "_StartElement", "_EndElement");
if (!($fp = fopen($_file, "r"))) {
die("Could not open XML input");
}
while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
die(sprintf("XML error: %s at line %d of $_file\n",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
}
}
xml_parser_free($xml_parser);
}
// }}}
}
// }}}
// exectute the parser for demonstration
$xml =& new BCTagParser("data.html.xml");
/*
* Local Variables:
* mode: php
* tab-width: 4
* c-basic-offset: 4
* End:
*/
?>
|
|
From: alex <bin...@li...> - 2001-09-14 22:20:07
|
alex Fri Sep 14 15:20:02 2001 EDT
Added files:
/r2/binarycloud/user/htdocs/resources/js BCEdit.js
Removed files:
/r2/binarycloud/user/htdocs/resources/js bc_edit.js
Modified files:
/r2/binarycloud/user/htdocs/resources/js BaseLib.js
Log:
Renaming JS
|
|
From: alex <bin...@li...> - 2001-09-14 22:18:32
|
alex Fri Sep 14 15:18:27 2001 EDT
Added files:
/r2/binarycloud/user/htdocs/resources/js BaseLib.js
Removed files:
/r2/binarycloud/user/htdocs/resources/js base_lib.js
Log:
Renaming resource files
Index: r2/binarycloud/user/htdocs/resources/js/BaseLib.js
+++ r2/binarycloud/user/htdocs/resources/js/BaseLib.js
/*******************************************************************************
** -File $Id: BaseLib.js,v 1.1 2001/09/14 22:18:26 alex Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************/
/**
* this function opens a popup window. use:
* open_window('http://www.yahoo.com','yahooWin','300','500');
*
* note that you can safely omit 'windowScrollbars'
*
* @author Alex Black
* @param windowURL the url to open in the new window
* @param windowName the name of the new window
* @param windowWidth the width in pixels of the new window
* @param windowHeight the height in pixels of the new window
* @param windowScrollbars can be set to yes|no|auto. controls the scrollbars
*/
function open_window(windowURL,windowName,windowWidth,windowHeight,windowScrollbars){
windowName=window.open(windowURL, windowName,"width="+windowWidth+",height="+windowHeight+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollbars="+windowScrollbars+",resizable=1,dependant");
windowName.focus();
}
/**
* this function sets the window's opener href to the url specified. if closeMe
* is set to 1, the window closes itself after setting the location.
*
* @author Alex Black
* @param url the url to set the parent's location to
* @param closeMe value can be 0 or 1
*/
function set_parent_location(url,closeMe) {
parent.opener.location.href = url;
parent.opener.focus();
if (closeMe == 1) {
window.close();
}
}
/**
* this is a generalized function for setting form focus.
* it takes the integer form index, and the element index to focus.
*
* @author Alex Black
* @param form_index the document.forms index (integer)
* @param element_index the form.elements index (integer)
*/
function setFocus(form_index, element_index) {
if (document.forms[form_index].elements[element_index]) {
document.forms[form_index].elements[element_index].focus();
}
}
/**
* this is part of a workaround to using images as submit buttons, but still
* having netscape submit the form when the user hits 'enter'.
* it scans all keys pressed - if the key is 'enter' is submits the form.
* right now, it can only be used on a form with an index of 0.
*
* the other bit of the code is:
*
* if (navigator.appName == "Netscape"){
* document.captureEvents(Event.KEYPRESS);
* document.onkeypress = checkInputKey;
* }
*
* @author Alex Black
* @param k the kay passed in to check
*/
function checkInputKey(k) {
var key = escape(k.which);
if ( key == '3'){
document.forms[0].submit();
}
}
/**
* these three functions are exactly the same, except for the string that is
* appended to the name.
*
* they accept a 'name' which is:
* -the "name" attribute in the image tag"
* -the base name of the image
*
* they also accept a base path, which is where the image variants are stored.
* these functions assume a naming convention:
*
* %name%_on.gif
* %name%_click.gif
* %name%_off.gif
*
* because of that, the function calls are simple, the the code is clean.
*
* wrote these because I dislike the dreamweaver functions. egh.
*
* img_on('reply_via_email','images/');
*
* @author Alex Black
* @param name the name of the image (see above)
* @param basepath the location in htdocs of the image
*/
function img_on(name,basepath) {
path=basepath+name+"_on.gif";
document.images[name].src= path;
}
function img_click(name, basepath) {
path=basepath+name+"_click.gif";
document.images[name].src= path;
}
function img_off(name, basepath) {
path=basepath+name+"_off.gif";
document.images[name].src= path;
}
/**
* This function will check all the checkboxes in a particular form. It has been
* abstracted to be used with any form, which means that you have to pass in
* everything:
*
* -ckval is the value to set the checkbox to, can be "true" or "false"
* -form_index is the integer index of the form. typically, this is 0, but if you
* have some other forms on your page before the checkbox form, you'll need this.
*
* example:
* checkTheBoxes('true', '25', '0');
*
* @author Alex Black
* @param ckval the value to set the element.checked attribute to
* @param form_index the integer index of the form to check all the boxes in
*/
function checkTheBoxes(ckval, form_index) {
var form_length = document.forms[form_index].elements.length;
if (form_length != 0) {
for (var i = 0; i <= form_length-1; ++i) {
if (document.forms[form_index].elements[i].type == "checkbox") {
document.forms[form_index].elements[i].checked = ckval;
}
}
}
}
|
|
From: alex <bin...@li...> - 2001-09-14 22:18:21
|
alex Fri Sep 14 15:17:52 2001 EDT
Removed files:
/r2/binarycloud/user/htdocs/resources/js SupressErrors.js
Log:
Killed Useless JS
|
andi Fri Sep 14 04:03:24 2001 EDT
Modified files:
/r2/binarycloud/ext/metabase metabase_interface.php
metabase_ibase.php metabase_ifx.php
metabase_mysql.php metabase_msql.php
metabase_mssql.php metabase_oci.php
metabase_odbc.php metabase_pgsql.php
Log:
Added Metabase* functions in metabase_interface.php:
- MetabaseNumberOfColumns($database, $result)
Get number of columns in the delivered by result metadata functions
- MetabaseGetColumnNames($database, $result)
Return an array with column names delivered by result meta data
Added required methods to driver files:
- GetColumnNames (already present in most drivers)
- NumberOfColumns (added in each driver)
metabase_ibase.php
metabase_ifx.php
metabase_msql.php
metabase_mssql.php
metabase_mysql.php
metabase_oci8.php
metabase_odbc.php
metabase_pgsql.php
|
|
From: alex <bin...@li...> - 2001-09-14 00:02:42
|
alex Thu Sep 13 17:02:36 2001 EDT
Added files:
/r2/binarycloud/base/utils/logreport CleanDirs.sh
Log:
Adding the Clean Dirs Script
Index: r2/binarycloud/base/utils/logreport/CleanDirs.sh
+++ r2/binarycloud/base/utils/logreport/CleanDirs.sh
# Cleans Dirs of Old files.
rm -f ./report/*.html
rm -f ./report/*.png
rm -f ./report.tar.gz
|
|
From: alex <bin...@li...> - 2001-09-14 00:00:50
|
alex Thu Sep 13 17:00:45 2001 EDT
Added files:
/r2/binarycloud/base/utils/logreport/apps/webalizer/logs README
Log:
Adding logs dir
|
|
From: alex <bin...@li...> - 2001-09-13 23:58:55
|
alex Thu Sep 13 16:58:49 2001 EDT
Added files:
/r2/binarycloud/base/utils/logreport/incoming README
/r2/binarycloud/base/utils/logreport/report README
Log:
Adding READMEs to prevent CVS from killing dirs
|
alex Thu Sep 13 16:58:24 2001 EDT
Added files:
/r2/binarycloud/base/utils/logreport/apps/webalizer CHANGES COPYING
Copyright
DNS.README
INSTALL README
README.FIRST
country-codes.txt
msfree.png
sample.conf
webalizer
webalizer.LSM
webalizer.png
webazolver
Log:
adding webalizer
|
|
From: alex <bin...@li...> - 2001-09-13 23:55:37
|
alex Thu Sep 13 16:55:32 2001 EDT
Added files:
/r2/binarycloud/base/utils/logreport README Start.sh
/r2/binarycloud/base/utils/logreport/apps mergelog
Log:
Adding logreport package
Index: r2/binarycloud/base/utils/logreport/Start.sh
+++ r2/binarycloud/base/utils/logreport/Start.sh
#!/bin/sh
###############################################################################
# cvs:
# $Id: Start.sh,v 1.1 2001/09/13 23:55:32 alex Exp $
#
# -License GPL (http://www.gnu.org/copyleft/gpl.html)
# This document is (c)2000 The Turing Studio, Inc.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You are permitted to use and distribute this document under the terms
# of the GPL. You may distribute and/or incorporate this document as
# part of a commercial product, so long as you:
# - Agree to explicitly and clearly credit both The Turing Studio, Inc.
# and the stated author of this document.
# - Obtain prior written permission from The Turing Studio, Inc.
# If you have any questions regarding this document, or the system of
# which it is a part, direct them to turing at in...@tu....
# have fun!
#
# -Author Alex Black, en...@tu...
###############################################################################
###############################################################################
## merge and log reporting script
##
## This script assumes you have a webalizer install at apps/webalizer
## It also assumes you have apps/mergelog
##
## The 'dist' versions of these apps are included compiled for linux
## Mergelog source is included, if you require webalizer source, go to:
## ftp://ftp.mrunix.net/pub/webalizer/
##
## Just call this script, everything else is done for you.
###############################################################################
## where am I?
############################################
pwd=`pwd`
## hello
############################################
echo "------------------------------------------------------"
echo "- Log Merge + Report"
echo "------------------------------------------------------"
## does a logs dir exist?
############################################
if (test -d apps/webalizer/logs) then
echo "logs dir found";
else
echo "logs dir not found. created it"
mkdir apps/webalizer/logs
fi
## does a report dir exist?
############################################
if (test -d ./report) then
echo "report dir found";
else
echo "report dir not found. created it"
mkdir report
fi
## ok, start
############################################
echo "------------------------------------------------------"
## resolve the ips in the logs
############################################
echo -n "dns lookups? [y/n]:"
read dns_lookup_flag
if (test ${dns_lookup_flag} = "y") then
echo "running webazolver"
echo "--> This will take a couple minutes"
for logfile in ${pwd}/incoming/access*; do
apps/webalizer/webazolver -N 20 -D ${pwd}/apps/webalizer/dns_cache $logfile
done
echo "...done"
fi
## Name the report
############################################
echo -n "name the report: "
read report_name
## nuke any leftovers
############################################
echo "killing previous logfile"
rm -f apps/webalizer/logs/merged_log
## merge the logs
############################################
echo "running mergelog"
apps/mergelog ${pwd}/incoming/access* >> ${pwd}/apps/webalizer/logs/merged_log
echo "...done"
## run webalizer on the log
############################################
echo "running webalizer"
apps/webalizer/webalizer -i -D ${pwd}/apps/webalizer/dns_cache -n ${report_name} -o ${pwd}/report -P .php ${pwd}/apps/webalizer/logs/merged_log
echo "...done"
## make a convenient tarball
############################################
echo "making a tarball"
tar -czf report.tar.gz report
echo "...done"
echo "------------------------------------------------------"
echo "tarball is at report.tar.gz"
## done... outta here
############################################
echo "...complete. bye."
exit 0;
|
|
From: alex <bin...@li...> - 2001-09-13 23:54:39
|
alex Thu Sep 13 16:54:30 2001 EDT
Removed files:
/r2/binarycloud/base/utils/sh apache_install.sh
binarycloud_com_sync.sh
Log:
Removing some old junk
|
|
From: andi <bin...@li...> - 2001-09-13 16:32:12
|
andi Thu Sep 13 09:32:06 2001 EDT
Modified files:
/r2/binarycloud/base/lib XMLUtils.php
Log:
Integers and float values no longer quoted in generated arrays
Index: r2/binarycloud/base/lib/XMLUtils.php
diff -u r2/binarycloud/base/lib/XMLUtils.php:1.4 r2/binarycloud/base/lib/XMLUtils.php:1.5
--- r2/binarycloud/base/lib/XMLUtils.php:1.4 Wed Sep 12 11:14:42 2001
+++ r2/binarycloud/base/lib/XMLUtils.php Thu Sep 13 09:32:06 2001
@@ -1,7 +1,7 @@
<?
// Header {{{
/*
- * -File $Id: XMLUtils.php,v 1.4 2001/09/12 18:14:42 andi Exp $
+ * -File $Id: XMLUtils.php,v 1.5 2001/09/13 16:32:06 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Intacct Corporation.
* -Author odysseas tsatalos, ody...@ya...
@@ -87,7 +87,7 @@
}
elseif (strstr($var, 'BC_')){
$ret_val.=$var;
- } elseif (intval($var)) {
+ } elseif (is_integer($var) || is_float($var)) {
$ret_val.=$var;
}
else {
|
|
From: andi <bin...@li...> - 2001-09-13 16:30:50
|
andi Thu Sep 13 09:30:44 2001 EDT
Added files:
/r2/binarycloud/user/htdocs xslt_example.php.xml
Modified files:
/r2/binarycloud/user/htdocs query_example.php.xml
Log:
Added page definition for xslt example
Index: r2/binarycloud/user/htdocs/query_example.php.xml
diff -u r2/binarycloud/user/htdocs/query_example.php.xml:1.2 r2/binarycloud/user/htdocs/query_example.php.xml:1.3
--- r2/binarycloud/user/htdocs/query_example.php.xml:1.2 Wed Sep 12 11:27:13 2001
+++ r2/binarycloud/user/htdocs/query_example.php.xml Thu Sep 13 09:30:44 2001
@@ -17,7 +17,7 @@
</database>
<templates>
<default>
- <name>exmaple</name>
+ <name>example</name>
<package>html.masters</package>
<type>html</type>
</default>
Index: r2/binarycloud/user/htdocs/xslt_example.php.xml
+++ r2/binarycloud/user/htdocs/xslt_example.php.xml
<?xml version="1.0"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by () -->
<page>
<init>
<ini>true</ini>
<auth>false</auth>
<perm>false</perm>
<sess>true</sess>
<lang>true</lang>
<cache>false</cache>
<database>false</database>
</init>
<templates>
<default>
<name>example</name>
<package>html.masters</package>
<type>html</type>
</default>
<print>
<name>print</name>
<package>html.masters</package>
<type>html</type>
</print>
</templates>
<modules>
<content>
<load>
<module>
<id>xslt_test_from_module</id>
<name>XSLT_Example</name>
<package>xslt_example</package>
<load_order>1</load_order>
</module>
<module>
<id>xslt_test_from_module2</id>
<name>XSLT_Example</name>
<package>xslt_example</package>
<load_order>2</load_order>
</module>
</load>
</content>
</modules>
</page>
|
|
From: alex <bin...@li...> - 2001-09-12 21:08:20
|
alex Wed Sep 12 14:08:15 2001 EDT
Removed files:
/r2/binarycloud/user/conf langs.php langs.xml langs.xml.php
Log:
Removing old files
|
|
From: alex <bin...@li...> - 2001-09-12 21:08:01
|
alex Wed Sep 12 14:07:55 2001 EDT
Removed files:
/r2/binarycloud/user/conf datasources.php datasources.xml
datasources.xml.php
Log:
Removing old files.
|
|
From: alex <bin...@li...> - 2001-09-12 21:07:35
|
alex Wed Sep 12 14:07:29 2001 EDT
Removed files:
/r2/binarycloud/user/conf conf.php conf.xml conf.xml.php
operations.xml operations.xml.php
Log:
Removing old files
|
|
From: andi <bin...@li...> - 2001-09-12 18:27:18
|
andi Wed Sep 12 11:27:13 2001 EDT
Modified files:
/r2/binarycloud/user/htdocs query_example.php.xml
Log:
Uuups. Fixed typo in layout package
Index: r2/binarycloud/user/htdocs/query_example.php.xml
diff -u r2/binarycloud/user/htdocs/query_example.php.xml:1.1 r2/binarycloud/user/htdocs/query_example.php.xml:1.2
--- r2/binarycloud/user/htdocs/query_example.php.xml:1.1 Wed Sep 12 11:17:32 2001
+++ r2/binarycloud/user/htdocs/query_example.php.xml Wed Sep 12 11:27:13 2001
@@ -30,7 +30,7 @@
<modules>
<content>
<layout>
- <name>exmaple</name>
+ <name>example</name>
<package>html.layouts</package>
</layout>
<load>
@@ -40,15 +40,12 @@
<package>query_example</package>
<load_order>1</load_order>
</module>
-
- <module>
- <id>Querytest2</id>
- <name>QueryExample</name>
- <package>query_example</package>
-
- <load_order>2</load_order>
- </module>
-
+ <module>
+ <id>Querytest2</id>
+ <name>QueryExample</name>
+ <package>query_example</package>
+ <load_order>2</load_order>
+ </module>
</load>
</content>
</modules>
|
|
From: andi <bin...@li...> - 2001-09-12 18:17:37
|
andi Wed Sep 12 11:17:32 2001 EDT
Added files:
/r2/binarycloud/user/htdocs query_example.php.xml
xml2phptest.php.xml
Log:
Added new php.xml pagedefs
Index: r2/binarycloud/user/htdocs/query_example.php.xml
+++ r2/binarycloud/user/htdocs/query_example.php.xml
<?xml version="1.0" ?>
<page>
<init>
<debug>true</debug>
<ini>true</ini>
<auth>false</auth>
<perm>false</perm>
<sess>true</sess>
<lang>true</lang>
<cache>false</cache>
<database>true</database>
</init>
<database>
<source>query_example</source>
<mcrypt>false</mcrypt>
<manage>false</manage>
</database>
<templates>
<default>
<name>exmaple</name>
<package>html.masters</package>
<type>html</type>
</default>
<print>
<name>print</name>
<package>html.masters</package>
<type>html</type>
</print>
</templates>
<modules>
<content>
<layout>
<name>exmaple</name>
<package>html.layouts</package>
</layout>
<load>
<module>
<id>Querytest</id>
<name>QueryExample</name>
<package>query_example</package>
<load_order>1</load_order>
</module>
<module>
<id>Querytest2</id>
<name>QueryExample</name>
<package>query_example</package>
<load_order>2</load_order>
</module>
</load>
</content>
</modules>
</page>
Index: r2/binarycloud/user/htdocs/xml2phptest.php.xml
+++ r2/binarycloud/user/htdocs/xml2phptest.php.xml
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: xml2phptest.php.xml,v 1.1 2001/09/12 18:17:32 andi 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: andi <bin...@li...> - 2001-09-12 18:16:25
|
andi Wed Sep 12 11:16:19 2001 EDT
Added files:
/r2/binarycloud/user/conf Configuration.php.xml Datasources.php.xml
Languages.php.xml Operations.php.xml
Log:
Added new config files
Index: r2/binarycloud/user/conf/Configuration.php.xml
+++ r2/binarycloud/user/conf/Configuration.php.xml
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: Configuration.php.xml,v 1.1 2001/09/12 18:16:19 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************
}}} -->
<constants>
<!-- values -->
<constant>
<name>BC_RUN_MODE</name>
<value>foo</value>
</constant>
<constant>
<name>BC_DIR_INDEX_FILENAME</name>
<value>index.php</value>
</constant>
<constant>
<name>BC_LOGGED_IN_LIMIT</name>
<value>foo</value>
</constant>
<constant>
<name>BC_INACTIVITY_LIMIT</name>
<value>foo</value>
</constant>
<constant>
<name>BC_ADMIN_EMAIL</name>
<value>foo</value>
</constant>
<constant>
<name>BC_ADMIN_FROM_EMAIL</name>
<value>foo</value>
</constant>
<constant>
<name>BC_SHOW_CORE_ERRORS_TO</name>
<value>foo</value>
</constant>
<!-- /values -->
<!-- flags -->
<constant>
<name>BC_SET_INI</name>
<flag>TRUE</flag>
</constant>
<constant>
<name>BC_DEBUG</name>
<flag>FALSE</flag>
</constant>
<constant>
<name>BC_DB_FAILURE_REDIRECT</name>
<flag>TRUE</flag>
</constant>
<constant>
<name>BC_USE_SMTP_MAIL_CLASS</name>
<value>TRUE</value>
</constant>
<constant>
<name>BC_LOG_ALL_ERRORS_TO_FILE</name>
<value>foo</value>
</constant>
<constant>
<name>BC_SEND_ADMIN_ERROR_EMAILS</name>
<value>foo</value>
</constant>
<constant>
<name>BC_SEND_DB_FAILURE_EMAILS</name>
<value>foo</value>
</constant>
<!-- /flags -->
<!-- paths -->
<constant>
<name>BC_PATH_STORM</name>
<value>"/storm/"</value>
</constant>
<constant>
<name>BC_PATH_DB_FAILURE_REDIRECT</name>
<value>"/global/db_failure.php"</value>
</constant>
<constant>
<name>BC_PATH_WEBALIZER_OUTPUT</name>
<value>BC_PATH_HTDOCS."storm/apache_logs/output/"</value>
</constant>
<constant>
<name>BC_PATH_APACHE_LOG</name>
<value>"/usr/local/apache/logs/access_log"</value>
</constant>
<constant>
<name>BC_SIGN_IN_REDIRECT</name>
<value>"/index.php"</value>
</constant>
<!-- /paths -->
</constants>
Index: r2/binarycloud/user/conf/Datasources.php.xml
+++ r2/binarycloud/user/conf/Datasources.php.xml
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: Datasources.php.xml,v 1.1 2001/09/12 18:16:19 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************
}}} -->
<datasources>
<!--
dummy entry, if only one entry xml2php behaves not right
-->
<datasource>
<name>dummy</name>
<default>false</default>
<database>test</database>
</datasource>
<!--
uncomment if you use oci
-->
<!--
<datasource>
<name>query_example</name>
<default>true</default>
<database>test</database>
<Type>oci</Type>
<User>r2</User>
<Password>testpassword</Password>
<IncludePath>BC_PATH."/ext/metabase"</IncludePath>
<Persistent>true</Persistent>
<options>
<sid>EXAMPLE_SID</sid>
<home>/path/oracle/product/8.1.6</home>
<dbauser>example_username</dbauser>
<dbapassword>example_password</dbapassword>
<mcryptkey>some_very_secret_key</mcryptkey>
<mcryptmode>MCRYPT_MODE_CFB</mcryptmode>
<mcryptcipher>MCRYPT_TripleDES</mcryptcipher>
<mcryptiv>string</mcryptiv>
</options>
</datasource>
-->
<!--
uncomment if you use mysql
-->
<datasource>
<name>query_example</name>
<default>true</default>
<database>test</database>
<!-- this options are metabase specific and case sensitive -->
<Type>mysql</Type>
<Host>localhost</Host>
<User>root</User>
<Password>sql</Password>
<IncludePath>BC_PATH."/ext/metabase"</IncludePath>
<Persistent>true</Persistent>
<!-- end metabase stuff -->
</datasource>
</datasources>
Index: r2/binarycloud/user/conf/Languages.php.xml
+++ r2/binarycloud/user/conf/Languages.php.xml
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: Languages.php.xml,v 1.1 2001/09/12 18:16:19 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************
}}} -->
<langs>
<lang>
<default>false</default>
<description>Danish</description>
<native>Dansk</native>
<code>da</code>
<charset>ISO-8859-1</charset>
<datespec>j/n/Y</datespec>
<timespec>G:i</timespec>
<currency_name>Dollar</currency_name>
<currency_symbol>$</currency_symbol>
</lang>
<lang>
<default>true</default>
<description>English</description>
<native>English</native>
<code>en</code>
<charset>ISO-8859-1</charset>
<datespec>n/j/Y</datespec>
<timespec>g:ia</timespec>
<currency_name>US Dollar</currency_name>
<currency_symbol>$</currency_symbol>
</lang>
</langs>
Index: r2/binarycloud/user/conf/Operations.php.xml
+++ r2/binarycloud/user/conf/Operations.php.xml
<?xml version="1.0" ?>
<!-- Header {{{
*******************************************************************************
** -File $Id: Operations.php.xml,v 1.1 2001/09/12 18:16:19 andi Exp $
** -License LGPL (http://www.gnu.org/copyleft/lesser.html)
** -Copyright 2001, The Turing Studio, Inc.
** -Author alex black, en...@tu...
******************************************************************************
}}} -->
<operations>
<operation>
<name><lang>operation_name.home</lang></name>
<path>/</path>
</operation>
<operation>
<name><lang>operation_name.orders</lang></name>
<path>/orders/</path>
</operation>
<operation>
<name><lang>operation_name.users</lang></name>
<path>/users/</path>
</operation>
<operation>
<name><lang>operation_name.editor</lang></name>
<path>/editor/</path>
</operation>
</operations>
|
|
From: andi <bin...@li...> - 2001-09-12 18:15:11
|
andi Wed Sep 12 11:15:06 2001 EDT
Modified files:
/r2/binarycloud/user Makefile
Log:
Changes to match php.xml format
Index: r2/binarycloud/user/Makefile
diff -u r2/binarycloud/user/Makefile:1.7 r2/binarycloud/user/Makefile:1.8
--- r2/binarycloud/user/Makefile:1.7 Thu Aug 23 17:07:45 2001
+++ r2/binarycloud/user/Makefile Wed Sep 12 11:15:06 2001
@@ -1,5 +1,5 @@
# {{{ Header
-# -File $Id: Makefile,v 1.7 2001/08/24 00:07:45 alex Exp $
+# -File $Id: Makefile,v 1.8 2001/09/12 18:15:06 andi Exp $
# -License LGPL (http://www.gnu.org/copyleft/lesser.html)
# -Copyright 2001, Intacct Corp.
# -Author odysseas tsatalos, ody...@ya...
@@ -20,7 +20,7 @@
# the line below can be replace with the actual listing of all the
# application files in user
USERFILES=`find $(USERDIRS) -name '*' | grep '[.]' | grep -v htdocs`
-XML_PAGEDEF_FILES=`find htdocs -name '*.xml.php' | grep '[.]'`
+XML_PAGEDEF_FILES=`find htdocs -name '*.php.xml' | grep '[.]'`
all: site user xml_page_def xml_conf_def
@@ -31,15 +31,16 @@
@$(INSTALLCODE) $(USERBUILD_DIR) $(USERFILES)
xml_page_def:
- @echo "in user/htdocs (xml.php page definition files)";
+ @echo "in user/htdocs (php.xml page definition files)";
@xml_files=$(XML_PAGEDEF_FILES); \
for i in $$xml_files ; do \
$(XML2PHP) $(SITEBUILD_DIR) page_def $(USER_DIR)/$$i $(BUILD_DIR)/$$i; \
done
xml_conf_def:
- @echo "in user/conf (xml.php configuration files)";
- @$(XML2PHP) $(SITEBUILD_DIR) conf_def $(USER_DIR)/conf/conf.xml.php $(USERBUILD_DIR)/conf/conf.xml.php
- @$(XML2PHP) $(SITEBUILD_DIR) lang_def $(USER_DIR)/conf/langs.xml.php $(USERBUILD_DIR)/conf/langs.xml.php
- @$(XML2PHP) $(SITEBUILD_DIR) datasources_def $(USER_DIR)/conf/datasources.xml.php $(USERBUILD_DIR)/conf/datasources.xml.php
- @$(XML2PHP) $(SITEBUILD_DIR) operations_def $(USER_DIR)/conf/operations.xml.php $(USERBUILD_DIR)/conf/operations.xml.php
\ No newline at end of file
+ @echo "in user/conf (php.xml configuration files)";
+ @$(XML2PHP) $(SITEBUILD_DIR) conf_def $(USER_DIR)/conf/Configuration.php.xml $(USERBUILD_DIR)/conf/Configuration.php.xml
+ @$(XML2PHP) $(SITEBUILD_DIR) lang_def $(USER_DIR)/conf/Languages.php.xml $(USERBUILD_DIR)/conf/Languages.php.xml
+ @$(XML2PHP) $(SITEBUILD_DIR) datasources_def $(USER_DIR)/conf/Datasources.php.xml $(USERBUILD_DIR)/conf/Datasources.php.xml
+ @$(XML2PHP) $(SITEBUILD_DIR) operations_def $(USER_DIR)/conf/Operations.php.xml $(USERBUILD_DIR)/conf/Operations.php.xml
+
|