tbrehm
2008-06-08 56a2d59605a914d2bc46d235575b021e3d1b0b7e
install/lib/install.lib.php
@@ -56,16 +56,34 @@
$FILE = realpath('../install.php');
//** Get distribution identifier
function get_distname() {
   global $conf; // TODO wtf ?
   $distname = $conf['distname'];
   $distname = '';
   //** Debian or Ubuntu
   if(file_exists('/etc/debian_version')) {
      if(trim(file_get_contents('/etc/debian_version')) == '4.0') {
         $distname = 'debian40';
         swriteln("Operating System: Debian 4.0 or compatible\n");
      }
      if(trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {
         $distname = 'debian40';
         swriteln("Operating System: Debian Lenny/Sid or compatible\n");
      }
   }
   //** Redhat
   elseif(file_exists("/etc/redhat_release")) {
   }
   return $distname;
}
function sread() {
    $f = fopen('/dev/stdin', 'r');
    $input = fgets($f, 255);
    fclose($f);
    $input = fgets(STDIN);
    return rtrim($input);
}