Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
###########################################################
3
#      This file is identical to docs/index.php.txt       #
4
#  It exists only for backward-compatiblity with go-pear  #
5
###########################################################
6
 
7
/**
8
 * Put this file in a web-accessible directory as index.php (or similar)
9
 * and point your webbrowser to it.
10
 */
11
 
12
// $pear_dir must point to a valid PEAR install (=contains PEAR.php)
13
$pear_dir = '@pear_dir@'; // default of install
14
 
15
// OPTIONAL: If you have a config file at a non-standard location,
16
// uncomment and supply it here:
17
//$pear_user_config = '';
18
 
19
// OPTIONAL: If you have protected this webfrontend with a password in a
20
// custom way, then uncomment to disable the 'not protected' warning:
21
//$pear_frontweb_protected = true;
22
 
23
 
24
/***********************************************************
25
 * Following code tests $pear_dir and loads the webfrontend:
26
 */
27
if (!file_exists($pear_dir.'/PEAR.php')) {
28
    trigger_error('No PEAR.php in supplied PEAR directory: '.$pear_dir,
29
                    E_USER_ERROR);
30
}
31
ini_set('include_path', $pear_dir);
32
require_once('PEAR.php');
33
 
34
// Include WebInstaller
35
putenv('PHP_PEAR_INSTALL_DIR='.$pear_dir); // needed if unexisting config
36
require_once('pearfrontendweb.php');
37
?>