2000-05-10 22:38:21 +00:00
|
|
|
<?
|
2000-04-26 00:26:03 +00:00
|
|
|
// helpful constants
|
2000-06-18 23:52:50 +00:00
|
|
|
if (!defined( '_COLORS_' )) {
|
2000-11-13 17:55:00 +00:00
|
|
|
define ('_COLORS_', 1);
|
|
|
|
define ('tableHeadColor', '#737b9c');
|
|
|
|
define ('tableBgColor', 'black');
|
|
|
|
define ('menuHeadColor', '#737b9c');
|
|
|
|
define ('menuBgColor', '#4b4f66');
|
|
|
|
define ('featureHeadColor', tableHeadColor);
|
|
|
|
define ('featureBgColor', '#252733');
|
|
|
|
define ('black', "black");
|
|
|
|
define ('white', "white");
|
2000-05-10 22:38:21 +00:00
|
|
|
}
|
2000-03-06 08:12:43 +00:00
|
|
|
|
2000-06-18 23:52:50 +00:00
|
|
|
if (!defined ('_SQLCONSTS_')) {
|
|
|
|
define ('_SQLCONSTS_', 1);
|
|
|
|
require siteHome . '/../etc/sql.conf';
|
|
|
|
}
|
|
|
|
|
2000-05-10 22:38:21 +00:00
|
|
|
if (!defined ('_ARRAY_')) { // Treat array handler special
|
2000-06-18 23:52:50 +00:00
|
|
|
require siteHome . "/lib/array.php";
|
2000-03-06 08:12:43 +00:00
|
|
|
}
|
2000-05-10 22:38:21 +00:00
|
|
|
|
2000-06-18 23:52:50 +00:00
|
|
|
if (!defined ('_LIBFUNCS_')) {
|
|
|
|
define ('_LIBFUNCS_', 1);
|
2000-05-10 22:38:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
reqIfNeeded
|
|
|
|
|
|
|
|
Require a library module if it hasn't already been.
|
|
|
|
*/
|
|
|
|
function reqIfNeeded( $libNames )
|
|
|
|
{
|
|
|
|
global $has, $needs;
|
|
|
|
|
|
|
|
$libs = explode(' ', $libNames);
|
|
|
|
|
|
|
|
for ($i = 0 ; $i < count ($libs) ; $i++ ) {
|
|
|
|
$lib = $libs[$i];
|
|
|
|
if ((inArray ($libs[$i], $needs)) && (!inArray ($libs[$i], $has))) {
|
2000-06-18 23:52:50 +00:00
|
|
|
include siteHome . "/lib/$libs[$i].php";
|
2000-05-10 22:38:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
have
|
|
|
|
|
|
|
|
Tell the library that module X is loaded
|
|
|
|
*/
|
|
|
|
function have ($libName)
|
|
|
|
{
|
|
|
|
global $has;
|
|
|
|
|
|
|
|
addToArray ($libName, $has);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
need
|
|
|
|
|
|
|
|
Load module X if it hasn't been already, taking care to retain the
|
|
|
|
integrity of the $needs array.
|
|
|
|
*/
|
|
|
|
function need ($libNames)
|
|
|
|
{
|
|
|
|
global $needs;
|
|
|
|
|
|
|
|
$libs = explode(' ', $libNames);
|
|
|
|
for ($i = 0 ; $i < count ($libs) ; $i++ ) {
|
|
|
|
addToArray ($libs[$i], $needs);
|
|
|
|
}
|
|
|
|
reqIfNeeded ($libNames);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // !_LIBFUNCS_
|
2000-03-06 08:12:43 +00:00
|
|
|
?>
|