-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
32 lines (26 loc) · 1.03 KB
/
index.php
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
<?php
/**
* Put this file in a web-accessible directory as index.php (or similar)
* and point your webbrowser to it.
*/
// $pear_dir must point to a valid PEAR install (=contains PEAR.php)
$pear_dir = '/home/u662065187/public_html/PEAR'; // default of install
// OPTIONAL: If you have a config file at a non-standard location,
// uncomment and supply it here:
//$pear_user_config = '';
// OPTIONAL: If you have protected this webfrontend with a password in a
// custom way, then uncomment to disable the 'not protected' warning:
//$pear_frontweb_protected = true;
/***********************************************************
* Following code tests $pear_dir and loads the webfrontend:
*/
if (!file_exists($pear_dir.'/PEAR.php')) {
trigger_error('No PEAR.php in supplied PEAR directory: '.$pear_dir,
E_USER_ERROR);
}
ini_set('include_path', $pear_dir);
require_once('PEAR.php');
// Include WebInstaller
putenv('PHP_PEAR_INSTALL_DIR='.$pear_dir); // needed if unexisting config
require_once('pearfrontendweb.php');
?>