blob: 33969fff815efb78b9c42bb5671dc6ad42832f02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
///////////////////////////////////////////////////////////////////////////////
//
// pgPhoneHome - Postgres Monitor for iPhone
// Copyright 2008, EnterpriseDB UK Ltd.
// Dave Page (dave.page@enterprisedb.com)
//
// global.php - Constants and includes
//
///////////////////////////////////////////////////////////////////////////////
// Constants
$APP_COPYRIGHT = "Copyright © 2008, <a href=\"http://www.enterprisedb.com\" target=\"_new\">EnterpriseDB</a> UK Ltd.";
$APP_VERSION = "1.1";
$APP_NAME = "pgPhoneHome";
// Ensure we can get error messages
ini_set("track_errors", "1");
// Pull in the user config and utility stuff
require "misc.php";
if (file_exists("config.php"))
require "config.php";
else
www_error("No configuration found", "No configuration file was found. Please copy config.php.in to config.php and edit as required.");
// Check that the PostgreSQL module is available
if (!extension_loaded("pgsql"))
www_error("PHP configuration error", "The PostgreSQL module (pgsql) for PHP is not available. Please enable the module in your PHP configuration.");
?>
|