From: Tim Düsterhus Date: Fri, 9 Nov 2012 23:27:39 +0000 (+0100) Subject: exit when not executed via CLI X-Git-Tag: 2.0.0_Beta_10~15^2~109^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=129dde35a2a9d63fa4bb1cee61c110bfe2c424b0;p=GitHub%2FWoltLab%2FWCF.git exit when not executed via CLI --- diff --git a/wcfsetup/install/files/cli.php b/wcfsetup/install/files/cli.php index 9cb2bab1f4..36dd074654 100644 --- a/wcfsetup/install/files/cli.php +++ b/wcfsetup/install/files/cli.php @@ -7,6 +7,8 @@ * @package com.woltlab.wcf * @category Community Framework */ +if (PHP_SAPI !== 'cli') exit; + // define the wcf-root-dir define('WCF_DIR', dirname(__FILE__).'/');