pedro_morgan
2007-08-17 74030b9fd322a23ba9e9272542d231daac2b90af
Janitor
2 files modified
10 ■■■■■ changed files
install/install.php 3 ●●●● patch | view | raw | blame | history
install/lib/install.lib.php 7 ●●●●● patch | view | raw | blame | history
install/install.php
@@ -43,7 +43,7 @@
| |  ___| | | |     | |___  | |_| | | | \  | | |     | | | |_| | 
|_| /_____/ |_|     \_____| \_____/ |_|  \_| |_|     |_| \_____/ ';
echo "# Setup routine started...\n";
echo "\n# Setup routine started...\n";
//** Include the library with the basic installer functions
require_once('lib/install.lib.php');
@@ -58,6 +58,7 @@
include_once('dist/lib/'.$conf['distname'].'.lib.php');
include_once('dist/conf/'.$conf['distname'].'.conf.php');
//TODO: this is not there ????
$conf['dist'] = $dist;
//** Lets go !
install/lib/install.lib.php
@@ -57,14 +57,15 @@
$FILE = realpath('../install.php');
function get_distname() {
    global $conf; // TODO wtf ?
    $distname = $conf['distname'];
    return $distname;
}
function sread() {
    $fp=fopen('/dev/stdin', 'r');
    $input=fgets($fp, 255);
    fclose($fp);
    $f = fopen('/dev/stdin', 'r');
    $input = fgets($f, 255);
    fclose($f);
    return rtrim($input);
}