function __construct() { parent::__construct(); self::$options = $this->getOptions(); $this->checkDebug(); //Check for debug }
/** * The error controller for StarBox */ function __construct() { parent::__construct(); /* Verify dependences */ if (!function_exists('get_class')) { self::setError(__('Function get_class does not exists! Is required for StarBox to work properly.', _ABH_PLUGIN_NAME_)); } if (!function_exists('file_exists')) { self::setError(__('Function file_exists does not exists! Is required for StarBox to work properly.', _ABH_PLUGIN_NAME_)); } if (!defined('ABSPATH')) { self::setError(__('The home directory is not set!', _ABH_PLUGIN_NAME_), 'fatal'); } /* Check the PHP version */ if (PHP_VERSION_ID < 5100) { self::setError(__('The PHP version has to be greater then 5.1', _ABH_PLUGIN_NAME_), 'fatal'); } }
function __construct() { parent::__construct(); $this->shortcode = '/\\[starbox([\\s+][^\\]]+)*\\]/i'; }