~cdparra/gelee/trunk

« back to all changes in this revision

Viewing changes to webui/ecosystem/workspace/ecosystem/uwa-server-original/server/config/config.php

  • Committer: parra
  • Date: 2010-03-15 02:39:02 UTC
  • Revision ID: svn-v4:ac5bba68-f036-4e09-846e-8f32731cc928:trunk/gelee:1433
merged gelee at svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Copyright Netvibes 2006-2009.
 
4
 * This file is part of Exposition PHP Server.
 
5
 * 
 
6
 * Exposition PHP Server is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU Lesser General Public License as published by
 
8
 * the Free Software Foundation, either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 * 
 
11
 * Exposition PHP Server is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU Lesser General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU Lesser General Public License
 
17
 * along with Exposition PHP Server. If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
 
 
21
/**
 
22
 * Configuration file.
 
23
 */
 
24
 
 
25
// Be strict or be dead
 
26
error_reporting(E_ALL | E_STRICT);
 
27
 
 
28
// Active debugging output ?
 
29
if (false === defined('DEBUG')) {
 
30
    define('DEBUG', false);
 
31
}
 
32
 
 
33
define('APPLICATION', dirname(__FILE__) . '/../application');
 
34
 
 
35
if (is_dir(dirname(__FILE__) . '/../lib')) {
 
36
    // Standalone Exposition Server
 
37
    define('EXPOSITION', dirname(__FILE__) . '/../lib/Exposition');
 
38
    define('LIB', dirname(__FILE__) . '/../lib');
 
39
} else if (is_dir(dirname(__FILE__) . '/../../../libraries')) {
 
40
    // SVN repository
 
41
    define('EXPOSITION', dirname(__FILE__) . '/../../../libraries/php/src');
 
42
    define('LIB', dirname(__FILE__) . '/../../../libraries/php/lib');
 
43
} else {
 
44
    throw new Exception('The PHP librairies could not be found.');
 
45
}
 
46
 
 
47
// Include Path
 
48
set_include_path(APPLICATION . PATH_SEPARATOR . EXPOSITION . PATH_SEPARATOR . LIB . PATH_SEPARATOR . get_include_path());