Commit 74030b9f authored by pedro_morgan's avatar pedro_morgan
Browse files

Janitor

parent c87c0a02
......@@ -43,7 +43,7 @@ echo ' _ _____ _____ _____ _____ __ _ _____ _ _____
| | ___| | | | | |___ | |_| | | | \ | | | | | | |_| |
|_| /_____/ |_| \_____| \_____/ |_| \_| |_| |_| \_____/ ';
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 @@ $distname = get_distname();
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 !
......
......@@ -57,14 +57,15 @@ error_reporting(E_ALL|E_STRICT);
$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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment