~ubuntu-branches/ubuntu/oneiric/phpldapadmin/oneiric-security

« back to all changes in this revision

Viewing changes to lib/common.php

  • Committer: Bazaar Package Importer
  • Author(s): Cody A.W. Somerville
  • Date: 2008-07-12 05:45:57 UTC
  • mfrom: (1.1.7 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080712054557-5u4hizg2b1u4f1f3
Tags: 1.1.0.5-3ubuntu1
* Merge from debian unstable. (closes lp: #192034)
  - dropped superflous removal of unused dpatch system and e-mailed 
     Debian maintainer to please make the change in Debian.
  - install groupOfNames template to templates/creation/ instead of
     templates/additional-templates/ so that users will be able to use it.
* Remaining Ubuntu changes:
  - debian/additional-templates/*:
    . added groupOfNames.xml (a commonly used object, see lp: #72779)
  - debian/rules:
    . added call to dh_install to install debian/additional-templates/* 
  - debian/control: Maintainer fields updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/common.php,v 1.80.2.8 2008/01/04 12:33:03 wurley Exp $
 
2
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/common.php,v 1.80.2.9 2008/01/30 11:14:02 wurley Exp $
3
3
 
4
4
/**
5
5
 * Contains code to be executed at the top of each application page.
146
146
        $_SESSION[APPCONFIG]->CheckCustom();
147
147
}
148
148
 
 
149
# Set our timezone, if it is specified in config.php
 
150
if ($_SESSION[APPCONFIG]->GetValue('appearance','timezone'))
 
151
        date_default_timezone_set($_SESSION[APPCONFIG]->GetValue('appearance','timezone'));
 
152
 
149
153
# If we are here, $_SESSION is set - so enabled DEBUGing if it has been configured.
150
154
if (($_SESSION[APPCONFIG]->GetValue('debug','syslog') || $_SESSION[APPCONFIG]->GetValue('debug','file'))
151
155
        && $_SESSION[APPCONFIG]->GetValue('debug','level'))