| | |
| | | | | ___| | | | | |___ | |_| | | | \ | | | | | | |_| | |
| | | |_| /_____/ |_| \_____| \_____/ |_| \_| |_| |_| \_____/ '; |
| | | |
| | | 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'); |
| | |
| | | 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 ! |
| | |
| | | $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); |
| | | } |
| | | |