From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- setup/composerit.php | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 setup/composerit.php (limited to 'setup/composerit.php') diff --git a/setup/composerit.php b/setup/composerit.php new file mode 100644 index 0000000..75c2175 --- /dev/null +++ b/setup/composerit.php @@ -0,0 +1,68 @@ + + + + + + + Flyspray Install - Third Party Packages needed + + + +

Step 1: Trying to download Composer

+'; + $argv = array('--disable-tls'); # just for avoiding warnings + ?> +

Step 2: Trying to load composerinstaller into the running php script

+

Wait a few seconds until composerinstaller put his output under the button. Once the output looks good, try installing the dependencies using the button.

+ Install dependencies +
+			';
+		} else {
+			$phpexe='php';
+			# TODO: autodetect the matching commandline php on the host matching the php version of the webserver
+			# Any idea? Using $_SERVER['PHP_PEAR_SYSCONF_DIR'] or $_SERVER['PHPRC'] for detecting can help a bit, but weak hints..
+			# This is just a temp hack for installing flyspray on xampp on Windows
+			if (getenv('OS') == 'Windows_NT' && isset($_SERVER['PHPRC']) && strstr($_SERVER['PHPRC'], 'xampp')) {
+				$phpexe=$_SERVER['PHPRC'].'\php.exe';
+			}
+			shell_exec($phpexe.' -r "readfile(\'https://getcomposer.org/installer\');" | '.$phpexe);
+			if (!is_readable('composer.phar')) {
+				die('Composer installer download failed! Please consider downloading vendors directly from Flyspray support website');
+			}
+			echo 'Successfully downloaded Composer.

'; + echo 'Try to install dependencies'; + } +?> + + -- cgit v1.2.3-54-g00ecf