define('DB_DATAOBJECT_NO_OVERLOAD', 0);
// Seteo umask para que el grupo pueda leer.
define('DB_DATAOBJECT_NO_OVERLOAD', 0);
// Seteo umask para que el grupo pueda leer.
-foreach (array('.', '/etc', '/etc/sercom') as $dir) {
- $cf = "$dir/sercom.ini";
+foreach (array('.', '/etc', '/etc/'.$NAME) as $dir) {
+ $cf = "$dir/$NAME.ini";
if (is_readable($cf)) {
if (!($CONF = @parse_ini_file($cf, true))) {
fputs(STDERR, "No se pudo abrir archivo de configuración '$cf' ($php_errormsg)!\n");
if (is_readable($cf)) {
if (!($CONF = @parse_ini_file($cf, true))) {
fputs(STDERR, "No se pudo abrir archivo de configuración '$cf' ($php_errormsg)!\n");
// because PEAR::getstaticProperty was called with and & (get by reference)
// this will actually set the variable inside that method (a quasi static variable)
// because PEAR::getstaticProperty was called with and & (get by reference)
// this will actually set the variable inside that method (a quasi static variable)
- if (@$gconf['logfile']) {
- $LOGFP = fopen($gconf['logfile'], 'a');
+ if (@$CONF['log']['file']) {
+ $LOGFP = fopen($CONF['log']['file'], 'a');