コード例 #1
0
ファイル: Tools.php プロジェクト: brittbec13/citizenmodern
 function __construct()
 {
     parent::__construct();
     self::$options = $this->getOptions();
     $this->checkDebug();
     //Check for debug
 }
コード例 #2
0
ファイル: Error.php プロジェクト: natalieryder/snaptactix
 /**
  * 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');
     }
 }
コード例 #3
0
ファイル: Menu.php プロジェクト: localyeva/evablog
 /**
  * Called when Post action is triggered
  *
  * @return void
  */
 public function action()
 {
     parent::action();
     switch (ABH_Classes_Tools::getValue('action')) {
         case 'abh_settings_update':
             if (ABH_Classes_Tools::getValue('data') != '') {
                 parse_str(ABH_Classes_Tools::getValue('data'), $params);
                 $this->saveValues($params);
                 exit;
             } else {
                 $this->saveValues($_POST);
             }
             ABH_Classes_Tools::emptyCache();
             break;
         case 'abh_settings_subscribe':
             ABH_Classes_Tools::saveOptions('abh_subscribe', 1);
             break;
         case 'abh_powered_by':
             ABH_Classes_Tools::saveOptions('abh_powered_by', ABH_Classes_Tools::getValue('abh_powered_by'));
             break;
     }
 }
コード例 #4
0
ファイル: Frontend.php プロジェクト: natalieryder/snaptactix
 function __construct()
 {
     parent::__construct();
     $this->shortcode = '/\\[starbox([\\s+][^\\]]+)*\\]/i';
 }