From 6cc3f5887d7af3ad3b505a6f0fa62752314be1fe Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 20 Apr 2011 09:10:45 -0400
Subject: [PATCH] - Use clisetup.php where possible, remove redundant code

---
 bin/installto.sh |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/bin/installto.sh b/bin/installto.sh
index f953419..b1e2956 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -19,12 +19,9 @@
 
 */
 
-if (php_sapi_name() != 'cli') {
-    die('Not on the "shell" (php-cli).');
-}
 define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
 
-require_once INSTALL_PATH . 'program/include/iniset.php';
+require_once INSTALL_PATH . 'program/include/clisetup.php';
 
 $target_dir = unslashify($_SERVER['argv'][1]);
 

--
Gitblit v1.9.1