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