Current Path : /var/www/html/wp-content/plugins/duplicator-pro/classes/host/ |
Current File : /var/www/html/wp-content/plugins/duplicator-pro/classes/host/class.cloudways.host.php |
<?php /** * cloudways custom hosting class * * Standard: PSR-2 * * @package SC\DUPX\HOST * @link http://www.php-fig.org/psr/psr-2/ */ use Duplicator\Libs\Snap\SnapUtil; class DUP_PRO_Cloudways_Host implements DUP_PRO_Host_interface { public static function getIdentifier() { return DUP_PRO_Custom_Host_Manager::HOST_CLOUDWAYS; } public function isHosting() { ob_start(); SnapUtil::phpinfo(); $serverinfo = ob_get_clean(); return (strpos($serverinfo, "cloudwaysapps") !== false); } public function init() { } }