From 74030b9fd322a23ba9e9272542d231daac2b90af Mon Sep 17 00:00:00 2001 From: pedro_morgan <pedro_morgan@ispconfig3> Date: Fri, 17 Aug 2007 22:56:13 -0400 Subject: [PATCH] Janitor --- install/lib/install.lib.php | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index 326067f..bd0a242 100644 --- a/install/lib/install.lib.php +++ b/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); } -- Gitblit v1.9.1