Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/lib/panels/da/php

#!/bin/bash

export PHPRC=""

if [[ -f "/usr/local/php83/bin/php" ]]  && [[ $(/usr/local/php83/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php83/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php82/bin/php" ]]  && [[ $(/usr/local/php82/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php82/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php81/bin/php" ]]  && [[ $(/usr/local/php81/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php81/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php74/bin/php" ]]  && [[ $(/usr/local/php74/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php74/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php73/bin/php" ]]  && [[ $(/usr/local/php73/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php73/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php72/bin/php" ]]  && [[ $(/usr/local/php72/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php72/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php71/bin/php" ]]  && [[ $(/usr/local/php71/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php71/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php70/bin/php" ]]  && [[ $(/usr/local/php70/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php70/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php56/bin/php" ]]  && [[ $(/usr/local/php56/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php56/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php55/bin/php" ]]  && [[ $(/usr/local/php55/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php55/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [[ -f "/usr/local/php54/bin/php" ]]  && [[ $(/usr/local/php54/bin/php -v | grep -i ionCube) ]]; then
	/usr/local/php54/bin/php -d display_errors=0 -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none $@
elif [ -f "/usr/local/bin/php" ] ; then
	/usr/local/bin/php -n -c /usr/local/directadmin/plugins/softaculous/php.ini $@
elif [ -f "/usr/bin/php" ] ; then
	/usr/bin/php -n -c /usr/local/directadmin/plugins/softaculous/php.ini $@
fi

phpret=$?

exit $phpret;
Back to Directory