Server IP : 104.21.14.103 / Your IP : 18.224.57.231 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/dup-installer/classes/config/ |
Upload File : |
<?php /** * * Standard: PSR-2 * @link http://www.php-fig.org/psr/psr-2 Full Documentation * * @package SC\DUPX * */ defined('ABSPATH') || defined('DUPXABSPATH') || exit; /** * In this class all the utility functions related to the wordpress configuration and the package are defined. * */ class DUPX_Conf_Utils { /** * * @return bool */ public static function showMultisite() { $archive_config = DUPX_ArchiveConfig::getInstance(); return ($archive_config->mu_mode !== 0 && count($archive_config->subsites) > 0); } /** * * @staticvar null|bool $present * @return bool */ public static function isConfArkPresent() { static $present = null; if (is_null($present)) { $present = file_exists(DUPX_Package::getWpconfigArkPath()); } return $present; } /** * * @staticvar null|bool $muEnabled * @return bool */ public static function multisitePlusEnabled() { static $muEnabled = null; if (is_null($muEnabled)) { $archive_config = DUPX_ArchiveConfig::getInstance(); $muEnabled = ($archive_config->getLicenseType() == DUPX_LicenseType::BusinessGold); } return $muEnabled; } /** * * @staticvar null|bool $enable * @return bool */ public static function shellExecUnzipEnable() { static $enable = null; if (is_null($enable)) { $enable = DUPX_Server::get_unzip_filepath() != null; } return $enable; } /** * * @return bool */ public static function classZipArchiveEnable() { return class_exists('ZipArchive'); } /** * * @staticvar bool $exists * @return bool */ public static function archiveExists() { static $exists = null; if (is_null($exists)) { $exists = file_exists(DUPX_Security::getInstance()->getArchivePath()); } return $exists; } /** * * @staticvar bool $arcSize * @return bool */ public static function archiveSize() { static $arcSize = null; if (is_null($arcSize)) { $archivePath = DUPX_Security::getInstance()->getArchivePath(); $arcSize = file_exists($archivePath) ? (int) @filesize($archivePath) : 0; } return $arcSize; } /** * * @staticvar type $arcCheck * @return string */ public static function archiveCheck() { static $arcCheck = null; if (is_null($arcCheck)) { //ARCHIVE FILE if (DUPX_Conf_Utils::archiveExists()) { $arcCheck = 'Pass'; } else { if (DUPX_Conf_Utils::isConfArkPresent()) { $arcCheck = 'Warn'; } else { $arcCheck = 'Fail'; } } } return $arcCheck; } }