%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/dup-installer/classes/host/
Upload File :
Create Path :
Current File : /var/www/pn/dup-installer/classes/host/class.wpengine.host.php

<?php
/**
 * wpengine custom hosting class
 *
 * Standard: PSR-2
 *
 * @package SC\DUPX\DB
 * @link http://www.php-fig.org/psr/psr-2/
 *
 */
defined('ABSPATH') || defined('DUPXABSPATH') || exit;

/**
 * class for wpengine managed hosting
 * 
 * @todo not yet implemneted
 * 
 */
class DUPX_WPEngine_Host implements DUPX_Host_interface
{

    /**
     * return the current host itentifier
     *
     * @return string
     */
    public static function getIdentifier()
    {
        return DUPX_Custom_Host_Manager::HOST_WPENGINE;
    }

    /**
     * @return bool true if is current host
     */
    public function isHosting()
    {
        // check only mu plugin file exists
        
        $file = $GLOBALS['DUPX_ROOT'].'/wp-content/mu-plugins/wpengine-security-auditor.php';
        return file_exists($file);
    }

    /**
     * the init function.
     * is called only if isHosting is true
     *
     * @return void
     */
    public function init()
    {
        
    }

    /**
     * 
     * @return string
     */
    public function getLabel()
    {
        return 'WP Engine';
    }
}

Zerion Mini Shell 1.0