Server IP : 192.64.118.117 / Your IP : 18.188.27.20 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/plugins/duplicator/classes/utilities/ |
Upload File : |
<?php defined('ABSPATH') || defined('DUPXABSPATH') || exit; /** * Methods used to work with WordPress MU sites * * Standard: PSR-2 * @link http://www.php-fig.org/psr/psr-2 * * @package Duplicator * @subpackage classes/utilities * @copyright (c) 2017, Snapcreek LLC * * @todo Refactor out IO methods into class.io.php file */ // Exit if accessed directly if (! defined('DUPLICATOR_VERSION')) exit; class DUP_MU { public static function isMultisite() { return self::getMode() > 0; } // 0 = single site; 1 = multisite subdomain; 2 = multisite subdirectory public static function getMode() { if(is_multisite()) { if (defined('SUBDOMAIN_INSTALL') && SUBDOMAIN_INSTALL) { return 1; } else { return 2; } } else { return 0; } } }