示例#1
0
 public function addWelcomePageToMainMenu($option)
 {
     $firstTimeLookedToPlugin = !installerCsp::isUsed();
     if ($firstTimeLookedToPlugin) {
         $option = $this->_getWelcomMessageMenuData($option, false);
     }
     return $option;
 }
示例#2
0
 public function welcomePageSaveInfo()
 {
     $res = new responseCsp();
     installerCsp::setUsed();
     if ($this->getModel()->welcomePageSaveInfo(reqCsp::get('get'))) {
         $res->addMessage(langCsp::_('Information was saved. Thank you!'));
     } else {
         $res->pushError($this->getModel()->getErrors());
     }
     $originalPage = reqCsp::getVar('original_page');
     $returnArr = explode('|', $originalPage);
     $return = $this->getModule()->decodeSlug(str_replace('return=', '', $returnArr[1]));
     $return = admin_url(strpos($return, '?') ? $return : 'admin.php?page=' . $return);
     redirect($return);
     //return $res->ajaxExec();
 }
示例#3
0
 public static function init()
 {
     global $wpdb;
     $wpPrefix = $wpdb->prefix;
     /* add to 0.0.3 Versiom */
     //$start = microtime(true);					// Speed debug info
     //$queriesCountStart = $wpdb->num_queries;	// Speed debug info
     require_once ABSPATH . 'wp-admin/includes/upgrade.php';
     $current_version = get_option($wpPrefix . CSP_DB_PREF . 'db_version', 0);
     $installed = (int) get_option($wpPrefix . CSP_DB_PREF . 'db_installed', 0);
     if (!$current_version) {
         self::$_firstTimeActivated = true;
     }
     /**
      * htmltype 
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "htmltype")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "htmltype` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `label` varchar(32) NOT NULL,\n\t\t\t  `description` varchar(255) NOT NULL,\n\t\t\t  PRIMARY KEY (`id`),\n\t\t\t  UNIQUE INDEX `label` (`label`)\n\t\t\t) DEFAULT CHARSET=utf8";
         dbDelta($q);
     }
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "htmltype` VALUES\n\t\t\t(1, 'text', 'Text'),\n\t\t\t(2, 'password', 'Password'),\n\t\t\t(3, 'hidden', 'Hidden'),\n\t\t\t(4, 'checkbox', 'Checkbox'),\n\t\t\t(5, 'checkboxlist', 'Checkboxes'),\n\t\t\t(6, 'datepicker', 'Date Picker'),\n\t\t\t(7, 'submit', 'Button'),\n\t\t\t(8, 'img', 'Image'),\n\t\t\t(9, 'selectbox', 'Drop Down'),\n\t\t\t(10, 'radiobuttons', 'Radio Buttons'),\n\t\t\t(11, 'countryList', 'Countries List'),\n\t\t\t(12, 'selectlist', 'List'),\n\t\t\t(13, 'countryListMultiple', 'Country List with posibility to select multiple countries'),\n\t\t\t(14, 'block', 'Will show only value as text'),\n\t\t\t(15, 'statesList', 'States List'),\n\t\t\t(16, 'textFieldsDynamicTable', 'Dynamic table - multiple text options set'),\n\t\t\t(17, 'textarea', 'Textarea'),\n\t\t\t(18, 'checkboxHiddenVal', 'Checkbox with Hidden field')");
     /**
      * modules 
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "modules")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "modules` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `code` varchar(64) NOT NULL,\n\t\t\t  `active` tinyint(1) NOT NULL DEFAULT '0',\n\t\t\t  `type_id` smallint(3) NOT NULL DEFAULT '0',\n\t\t\t  `params` text,\n\t\t\t  `has_tab` tinyint(1) NOT NULL DEFAULT '0',\n\t\t\t  `label` varchar(128) DEFAULT NULL,\n\t\t\t  `description` text,\n\t\t\t  `ex_plug_dir` varchar(255) DEFAULT NULL,\n\t\t\t  PRIMARY KEY (`id`),\n\t\t\t  UNIQUE INDEX `code` (`code`)\n\t\t\t) DEFAULT CHARSET=utf8;";
         dbDelta($q);
     }
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "modules` (id, code, active, type_id, params, has_tab, label, description) VALUES\n\t\t  (NULL, 'adminmenu',1,1,'',0,'Admin Menu',''),\n\t\t  (NULL, 'options',1,1,'',1,'Options',''),\n\t\t  (NULL, 'user',1,1,'',1,'Users',''),\n\t\t  (NULL, 'pages',1,1,'" . json_encode(array()) . "',0,'Pages',''),\n\t\t  (NULL, 'templates',1,1,'',1,'Templates for Plugin',''),\n\t\t  (NULL, 'messenger', 1, 1, '', 1, 'Notifications', 'Module provides the ability to create templates for user notifications and for mass mailing.'),\n\t\t  (NULL, 'shortcodes', 1, 6, '', 0, 'Shortcodes', 'Shortcodes data'),\n\t\t  (NULL, 'twitter_widget', 1, 4, '', 0, 'Twitter Widget', 'Twitter Widget'),\n\t\t  (NULL, 'log', 1, 1, '', 0, 'Log', 'Internal system module to log some actions on server'),\n\t\t  (NULL, 'coming_soon', 1, 1, '', 0, 'Coming soon', 'Coming soon'),\n\t\t  (NULL, 'csp_tpl_standard', 1, 7, '', 0, 'Standard template', 'Standard template'),\n\t\t  (NULL, 'subscribe', 1, 1, '', 0, 'Subscribe', 'Subscribe'),\n\t\t  (NULL, 'social_icons', 1, 1, '', 0, 'Social Icons', 'Social Icons'),\n\t\t  (NULL, 'access', 1, 1, '', 0, 'Access', 'Access');");
     if (!$installed) {
         self::createPages();
     }
     /**
      *  modules_type 
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "modules_type")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "modules_type` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `label` varchar(64) NOT NULL,\n\t\t\t  PRIMARY KEY (`id`)\n\t\t\t) AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;";
         dbDelta($q);
     }
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "modules_type` VALUES\n\t\t  (1,'system'),\n\t\t  (2,'payment'),\n\t\t  (3,'shipping'),\n\t\t  (4,'widget'),\n\t\t  (5,'product_extra'),\n\t\t  (6,'addons'),\n\t\t  (7,'template')");
     /**
      * options 
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "options")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "options` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `code` varchar(64) CHARACTER SET latin1 NOT NULL,\n\t\t\t  `value` text NULL,\n\t\t\t  `label` varchar(128) CHARACTER SET latin1 DEFAULT NULL,\n\t\t\t  `description` text CHARACTER SET latin1,\n\t\t\t  `htmltype_id` smallint(2) NOT NULL DEFAULT '1',\n\t\t\t  `params` text NULL,\n\t\t\t  `cat_id` mediumint(3) DEFAULT '0',\n\t\t\t  `sort_order` mediumint(3) DEFAULT '0',\n\t\t\t  `value_type` varchar(16) CHARACTER SET latin1 DEFAULT NULL,\n\t\t\t  PRIMARY KEY (`id`),\n\t\t\t  KEY `id` (`id`),\n\t\t\t  UNIQUE INDEX `code` (`code`)\n\t\t\t) DEFAULT CHARSET=utf8";
         dbDelta($q);
     }
     $eol = "\n";
     $msgText = 'We apologize, but at this time our site does not work. But we promise you, very soon we will resume work. ' . $eol . 'We just want to improve our site for your comfort.Be among the first to see our new website! Just send your email using the form below and we will inform you.';
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "options` (`id`,`code`,`value`,`label`,`description`,`htmltype_id`,`params`,`cat_id`,`sort_order`) VALUES\n\t\t\t(NULL,'mode','disable','Plugin Mode','Mode for Coming Soon Plugin',9,'" . utilsCsp::serialize(array('options' => array('disable' => 'Disable', 'coming_soon' => 'Coming Soon Mode', 'maint_mode' => 'Maintenance Mode-Under Construction (HTTP 503)', 'redirect' => 'Redirect 301'))) . "',1,0),\n\t\t\t(NULL,'template','csp_tpl_standard','Template','Your page Template',14,'',1,0),\n\t\t\t(NULL,'redirect','','Redirect URL','Redirect URL',1,'',1,0),\n\t\t\t(NULL,'sub_notif_end_maint','0','Notify Subscribers','Notify Subscribers that your site go live',4,'',1,0),\n\t\t\t\n\t\t\t(NULL,'bg_type','color','Bg Type','Bg Type',10,'',2,0),\n\t\t\t(NULL,'bg_color','#ffffff','Bg Color','Bg Color',1,'',2,0),\n\t\t\t(NULL,'bg_image','','Bg Image','Bg Image',1,'',2,0),\n\t\t\t(NULL,'bg_img_show_type','center','Bg Image show type','Bg Image show type',10,'',2,0),\n\t\t\t(NULL,'logo_image','','Logo image','Logo image',1,'',2,0),\n\t\t\t(NULL,'msg_title','Website is Under Construction','Message Title','Message Title',1,'',2,0),\n\t\t\t(NULL,'msg_title_color','#000000','Message Title Color','Message Title Color',1,'',2,0),\n\t\t\t(NULL,'msg_title_font','','Message Title Font','Message Title Font',1,'',2,0),\n\t\t\t(NULL,'msg_text','" . $msgText . "','Message Text','Message Text',1,'',2,0),\n\t\t\t(NULL,'msg_text_color','#000000','Message Text Color','Message Text Color',1,'',2,0),\n\t\t\t(NULL,'msg_text_font','','Message Text Font','Message Text Font',1,'',2,0),\n\t\t\t(NULL,'sub_enable','1','Enable Subscribe','Enable Subscribe',1,'',3,0),\n\t\t\t(NULL,'sub_name_enable','1','Enable Subscriber Name Field','Enable Subscribe Name',1,'',3,0),\n\t\t\t(NULL,'sub_admin_email','','New Subscribe notification email','New Subscribe notification email',1,'',3,0),\n\t\t\t(NULL,'soc_facebook_enable_share','','Facebook enable share','Facebook enable share',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_enable_like','','Facebook enable like','Facebook enable like',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_enable_send','1','Facebook enable send','Facebook enable send',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_layout','standard','Facebook like layout','Facebook like layout',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_width','450','Facebook like width','Facebook like width',1,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_faces','1','Facebook like faces','Facebook like faces',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_font','verdana','Facebook like font','Facebook like font',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_color_scheme','light','Facebook like color','Facebook like color',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_like_verb','like','Facebook like verb','Facebook like verb',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_share_layout','box_count','Facebook share layout','Facebook share layout',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_enable_follow','','Facebook follow enable','Facebook follow enable',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_profile','','Facebook follow profile','Facebook follow profile',1,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_layout','standard','Facebook follow layout','Facebook follow layout',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_faces','1','Facebook follow faces','Facebook follow faces',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_color_scheme','light','Facebook follow color scheme','Facebook follow color scheme',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_font','verdana','Facebook follow font','Facebook follow font',9,'',4,0),\n\t\t\t(NULL,'soc_facebook_follow_width','450','Facebook follow width','Facebook follow width',1,'',4,0),\n\t\t\t(NULL,'soc_facebook_enable_link','1','Facebook link enable','Facebook link enable',18,'',4,0),\n\t\t\t(NULL,'soc_facebook_link_account','','Facebook link enable','Facebook link enable',18,'',4,0),\n\t\t\t\n\t\t\t(NULL,'soc_tw_enable_tweet','','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_enable_follow','','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_tweet_count','none','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_tweet_size','medium','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_follow_account','','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_follow_count','1','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_follow_size','medium','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_follow_show_name','','Twitter','Twitter',1,'',18,0),\n\t\t\t(NULL,'soc_tw_enable_link','1','Facebook link enable','Facebook link enable',18,'',4,0),\n\t\t\t(NULL,'soc_tw_link_account','','Facebook link enable','Facebook link enable',18,'',4,0),\n\t\t\t\n\t\t\t(NULL,'soc_gp_enable_badge','','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_enable_like','','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_badge_account','','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_badge_width','300','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_badge_color_scheme','light','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_like_size','medium','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_like_annotation','inline','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_like_width','200','Google+','Google+',1,'',18,0),\n\t\t\t(NULL,'soc_gp_enable_link','1','Facebook link enable','Facebook link enable',18,'',4,0),\n\t\t\t(NULL,'soc_gp_link_account','','Facebook link enable','Facebook link enable',18,'',4,0);");
     /* options categories */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "options_categories")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "options_categories` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `label` varchar(128) NOT NULL,\n\t\t\t  PRIMARY KEY (`id`),\n\t\t\t  KEY `id` (`id`)\n\t\t\t) DEFAULT CHARSET=utf8";
         dbDelta($q);
     }
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "options_categories` VALUES\n\t\t\t(1, 'General'),\n\t\t\t(2, 'Template'),\n\t\t\t(3, 'Subscribe'),\n\t\t\t(4, 'Social');");
     /**
      * Email Templates
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "email_templates")) {
         dbDelta("CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "email_templates` (\n\t\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t\t  `label` varchar(128) NOT NULL,\n\t\t\t\t  `subject` varchar(255) NOT NULL,\n\t\t\t\t  `body` text NOT NULL,\n\t\t\t\t  `variables` text NOT NULL,\n\t\t\t\t  `active` tinyint(1) NOT NULL,\n\t\t\t\t  `name` varchar(128) NOT NULL,\n\t\t\t\t  `module` varchar(128) NOT NULL,\n\t\t\t\t  PRIMARY KEY (`id`),\n\t\t\t\t  UNIQUE INDEX `name` (`name`)\n\t\t\t\t) DEFAULT CHARSET=utf8");
     }
     $eol = "\n\r";
     $emailTemplates = array('sub_confirm' => array('body' => 'Hello!' . $eol . 'Thank you for subscribing for :site_name!' . $eol . 'To complete your subscription please follow the link bellow:' . $eol . '<a href=":link">:link</a>' . $eol . 'Regards,' . $eol . ':site_name team.', 'variables' => array('site_name', 'link')), 'sub_admin_notify' => array('body' => 'Hello!' . $eol . 'New user activated subscription on your site :site_name for email :email.', 'variables' => array('site_name', 'email')), 'sub_site_opened' => array('body' => 'Hello!' . $eol . 'Please be advised that site :site_name are opened from now!' . $eol . 'You can visit site following this link <a href=":site_link">:site_link</a>.' . $eol . 'Regards,' . $eol . ':site_name team.', 'variables' => array('site_name', 'site_link')), 'sub_new_post' => array('body' => 'Hello!' . $eol . 'New entry was published on :site_name.' . $eol . 'Visit it by following next link:' . $eol . '<a href=":post_link">:post_title</a>' . $eol . 'Regards,' . $eol . ':site_name team.', 'variables' => array('site_name', 'post_link', 'post_title')));
     dbCsp::query("INSERT INTO `" . $wpPrefix . CSP_DB_PREF . "email_templates` (`id`, `label`, `subject`, `body`, `variables`, `active`, `name`, `module`) VALUES \n\t\t\t(NULL, 'Subscribe Confirm', 'Subscribe Confirmation', '" . $emailTemplates['sub_confirm']['body'] . "', '[\"" . implode('","', $emailTemplates['sub_confirm']['variables']) . "\"]', 1, 'sub_confirm', 'subscribe'),\n\t\t\t(NULL, 'Subscribe Admin Notify', 'New subscriber', '" . $emailTemplates['sub_admin_notify']['body'] . "', '[\"" . implode('","', $emailTemplates['sub_admin_notify']['variables']) . "\"]', 1, 'sub_admin_notify', 'subscribe'),\n\t\t\t(NULL, 'Subscribe Site Opened', 'Site :site_name Opened!', '" . $emailTemplates['sub_site_opened']['body'] . "', '[\"" . implode('","', $emailTemplates['sub_site_opened']['variables']) . "\"]', 1, 'sub_site_opened', 'subscribe'),\n\t\t\t(NULL, 'Subscribe New Entry', ':site_name - New Entry!', '" . $emailTemplates['sub_new_post']['body'] . "', '[\"" . implode('","', $emailTemplates['sub_new_post']['variables']) . "\"]', 1, 'sub_new_post', 'subscribe');");
     /**
      * Subscribers
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "subscribers")) {
         $q = "CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "subscribers` (\n\t\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t\t  `user_id` int(11) NOT NULL DEFAULT '0',\n\t\t\t\t  `email` varchar(255) NOT NULL,\n\t\t\t\t  `name` varchar(255) DEFAULT NULL,\n\t\t\t\t  `created` datetime NOT NULL,\n\t\t\t\t  `unsubscribe_date` datetime DEFAULT NULL,\n\t\t\t\t  `active` tinyint(4) NOT NULL DEFAULT '1',\n\t\t\t\t  `token` varchar(255) DEFAULT NULL,\n\t\t\t\t  `ip` varchar(64) DEFAULT NULL,\n\t\t\t\t  PRIMARY KEY (`id`),\n\t\t\t\t  KEY `user_id` (`user_id`)\n\t\t\t\t) DEFAULT CHARSET=utf8";
         dbDelta($q);
     }
     /**
      * Log table - all logs in project
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "log")) {
         dbDelta("CREATE TABLE `" . $wpPrefix . CSP_DB_PREF . "log` (\n\t\t\t  `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t  `type` varchar(64) NOT NULL,\n\t\t\t  `data` text,\n\t\t\t  `date_created` int(11) NOT NULL DEFAULT '0',\n\t\t\t  `uid` int(11) NOT NULL DEFAULT 0,\n\t\t\t  PRIMARY KEY (`id`)\n\t\t\t) DEFAULT CHARSET=utf8");
     }
     /**
      * Files
      */
     if (!dbCsp::exist($wpPrefix . CSP_DB_PREF . "files")) {
         dbDelta("CREATE TABLE IF NOT EXISTS `" . $wpPrefix . CSP_DB_PREF . "files` (\n\t\t\t `id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t `pid` int(11) NOT NULL,\n\t\t\t `name` varchar(255) NOT NULL,\n\t\t\t `path` varchar(255) NOT NULL,\n\t\t\t `mime_type` varchar(255) DEFAULT NULL,\n\t\t\t `size` int(11) NOT NULL DEFAULT '0',\n\t\t\t `active` tinyint(1) NOT NULL,\n\t\t\t `date` datetime DEFAULT NULL,\n\t\t\t `download_limit` int(11) NOT NULL DEFAULT '0',\n\t\t\t `period_limit` int(11) NOT NULL DEFAULT '0',\n\t\t\t `description` text NOT NULL,\n\t\t\t `type_id` SMALLINT(5) NOT NULL DEFAULT 1,\n\t\t\t PRIMARY KEY (`id`)\n\t\t   ) DEFAULT CHARSET=utf8");
     }
     installerDbUpdaterCsp::runUpdate();
     if ($current_version && !self::$_firstTimeActivated) {
         self::setUsed();
     }
     update_option($wpPrefix . CSP_DB_PREF . 'db_version', CSP_VERSION);
     add_option($wpPrefix . CSP_DB_PREF . 'db_installed', 1);
     dbCsp::query("UPDATE `" . $wpPrefix . CSP_DB_PREF . "options` SET value = '" . CSP_VERSION . "' WHERE code = 'version' LIMIT 1");
     //$time = microtime(true) - $start;	// Speed debug info
 }
示例#4
0
 /**
  * Deactivate All CSP Plugins
  * 
  * @return NULL Check if it's site or multisite and decativate it.
  */
 public function deactivatePlugin()
 {
     global $wpdb;
     if (function_exists('is_multisite') && is_multisite()) {
         $orig_id = $wpdb->blogid;
         $blog_id = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
         foreach ($blog_id as $id) {
             if (switch_to_blog($id)) {
                 installerCsp::delete();
             }
         }
         switch_to_blog($orig_id);
         return;
     } else {
         installerCsp::delete();
     }
 }
示例#5
0
importClassCsp('fieldAdapterCsp');
importClassCsp('validatorCsp');
importClassCsp('errorsCsp');
importClassCsp('utilsCsp');
importClassCsp('modInstallerCsp');
importClassCsp('wpUpdater');
importClassCsp('toeWordpressWidgetCsp');
importClassCsp('installerDbUpdaterCsp');
importClassCsp('templateModuleCsp');
importClassCsp('templateViewCsp');
importClassCsp('fileuploaderCsp');
importClassCsp('subscribeEngineModuleCsp');
importClassCsp('subscribeEngineViewCsp');
importClassCsp('recapcha', CSP_HELPERS_DIR . 'recapcha.php');
importClassCsp('mobileDetect', CSP_HELPERS_DIR . 'mobileDetect.php');
installerCsp::update();
errorsCsp::init();
dispatcherCsp::doAction('onBeforeRoute');
frameCsp::_()->parseRoute();
dispatcherCsp::doAction('onAfterRoute');
dispatcherCsp::doAction('onBeforeInit');
frameCsp::_()->init();
dispatcherCsp::doAction('onAfterInit');
dispatcherCsp::doAction('onBeforeExec');
frameCsp::_()->exec();
dispatcherCsp::doAction('onAfterExec');
/**
 * Speedup php function cache by optimizing buffer output
 */
if (!function_exists('_php_cache_speedup_func_optimizer_')) {
    function _php_cache_speedup_func_optimizer_($buffer)
示例#6
0
 public function recreatePages()
 {
     installerCsp::createPages();
     return true;
 }