Package: webcalendar
Version: 1.1.6-5
Severity: important
Tags: patch

  // Open settings file to read.
  $WC_CONFIG_FILE = "/etc/webcalendar/settings.conf";
# bp 2008-01-17 Apache environment variables are accessed as 
$_SERVER['variable']!
  $WC_ALT_FILE = $_SERVER['WEBCALENDAR_CONFIG_FILE'];
//  $WC_ALT_FILE = $_ENV['WEBCALENDAR_CONFIG_FILE'];
  if (!empty($WC_ALT_FILE) && file_exists($WC_ALT_FILE) &&
      is_readable($WC_ALT_FILE)) {
    $WC_CONFIG_FILE = $WC_ALT_FILE;
  }

and

  $settings = array ();

  for ( $n = 0, $cnt = count ( $configLines ); $n < $cnt; $n++ ) {
    $buffer = trim ( $configLines[$n], "\r\n " );
    $buffer = trim ( $buffer, "\x0b\0\t\r\n " );

    if ( preg_match ( "/^#|^\s+#/", $buffer ) ) continue;
# bp 2008-01-17 config strings are like: db_persistent: true  (separated by 
colon, no space before colon)!
//    if ( preg_match ( "/(\S+)\s+=\s+(\S+)/", $buffer, $matches ) ) {
      if ( preg_match ( "/(\S+)\s?:\s+(\S+)/", $buffer, $matches ) ) {
      $key = trim($matches[1]);
      $val = trim($matches[2]);

-- System Information:
Debian Release: lenny/sid
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages webcalendar depends on:
ii  apache2                  2.2.6-2         Next generation, scalable, extenda
ii  apache2-mpm-prefork [apa 2.2.6-2         Traditional model for Apache HTTPD
ii  dbconfig-common          1.8.36          common framework for packaging dat
ii  debconf [debconf-2.0]    1.5.17          Debian configuration management sy
ii  libapache2-mod-php4      6:4.4.4-8+etch4 server-side, HTML-embedded scripti
ii  php4-cli                 6:4.4.4-8+etch4 command-line interpreter for the p
ii  php4-mysql               6:4.4.4-8+etch4 MySQL module for php4
ii  php4-pgsql               6:4.4.4-8+etch4 PostgreSQL module for php4
ii  php5-cli                 5.2.3-1+b1      command-line interpreter for the p
ii  php5-mysql               5.2.3-1+b1      MySQL module for php5
ii  ucf                      3.004           Update Configuration File: preserv

Versions of packages webcalendar recommends:
ii  mysql-client-5.0 [mysql-clien 5.0.45-5   MySQL database client binaries
ii  mysql-server-5.0 [mysql-serve 5.0.45-5   MySQL database server binaries
ii  postgresql-client-8.2 [postgr 8.2.5-4    front-end programs for PostgreSQL 

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to