Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Notice: require(): read of 5175 bytes failed with errno=12 Cannot allocate memory in /var/www/html/ticnews.com.br/web/wp-content/plugins/google-maps-easy/functions.php on line 44

Notice: require(): read of 5175 bytes failed with errno=12 Cannot allocate memory in /var/www/html/ticnews.com.br/web/wp-content/plugins/google-maps-easy/functions.php on line 44
REATE TABLE `".$wpPrefix.GMP_DB_PREF."usage_stat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(64) NOT NULL, `visits` int(11) NOT NULL DEFAULT '0', `spent_time` int(11) NOT NULL DEFAULT '0', `modify_timestamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, UNIQUE INDEX `code` (`code`), PRIMARY KEY (`id`) ) DEFAULT CHARSET=utf8"); dbGmp::query("INSERT INTO `".$wpPrefix.GMP_DB_PREF."usage_stat` (code, visits) VALUES ('installed', 1)"); } /** * Membership integration */ if(!dbGmp::exist($wpPrefix.GMP_DB_PREF.'membership_presets')) { dbDelta("CREATE TABLE `".$wpPrefix.GMP_DB_PREF."membership_presets` ( `maps_id` int(11) NOT NULL, `allow_use` TINYINT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`maps_id`) ) DEFAULT CHARSET=utf8"); } if(!dbGmp::exist('@__modules', 'code', 'membership')) { dbGmp::query("INSERT INTO `@__modules` (id, code, active, type_id, params, has_tab, label, description) VALUES (NULL, 'membership', 1, 1, '', 1, 'membership', 'membership');"); } /** * Create table for marker groups */ if(!dbGmp::exist($wpPrefix.GMP_DB_PREF."marker_groups_relation")){ dbDelta("CREATE TABLE IF NOT EXISTS `".$wpPrefix.GMP_DB_PREF."marker_groups_relation"."` ( `id` int(11) NOT NULL AUTO_INCREMENT, `marker_id` int(11) NOT NULL, `groups_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARSET=utf8"); } if( !get_option($wpPrefix. GMP_DB_PREF. 'markers_groups_multiple_updated') ){ $markersData = dbGmp::get("SELECT `id`,`marker_group_id` FROM @__markers", 'all', ARRAY_A); if($markersData){ foreach ($markersData as $marker) { dbGmp::query("INSERT INTO `".$wpPrefix.GMP_DB_PREF."marker_groups_relation` (marker_id, groups_id) VALUES (".$marker['id'].", ".$marker['marker_group_id'].");"); } update_option($wpPrefix. GMP_DB_PREF. 'markers_groups_multiple_updated', 1); } } update_option($wpPrefix. GMP_DB_PREF. 'db_version', GMP_VERSION_PLUGIN); add_option($wpPrefix. GMP_DB_PREF. 'db_installed', 1); installerDbUpdaterGmp::runUpdate(); } static public function setUsed() { update_option(GMP_DB_PREF. 'plug_was_used', 1); } static public function isUsed() { // No welcome page for now return true; return (bool)get_option(GMP_DB_PREF. 'plug_was_used'); } /** * Create pages for plugin usage */ static public function createPages() { return false; } /** * Return page data from given array, searched by title, used in self::createPages() * @return mixed page data object if success, else - false */ static private function _getPageByTitle($title, $pageArr) { foreach($pageArr as $p) { if($p->title == $title) return $p; } return false; } static public function delete() { self::_checkSendStat('delete'); global $wpdb; $wpPrefix = $wpdb->prefix; /* add to 0.0.3 Versiom */ $deleteOptions = false; if((bool)$deleteOptions){ $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."modules`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."icons`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."maps`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."options`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."htmltype`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."markers`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."marker_groups`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."marker_groups_relation`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."options_categories`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."modules_type`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."usage_stat`"); $wpdb->query("DROP TABLE IF EXISTS `".$wpPrefix.GMP_DB_PREF."membership_presets`"); delete_option('gmp_def_icons_installed'); delete_option(GMP_DB_PREF. 'db_version'); delete_option($wpPrefix.GMP_DB_PREF.'db_installed'); //delete_option(GMP_DB_PREF. 'plug_was_used'); } } static public function deactivate() { self::_checkSendStat('deactivate'); } static private function _checkSendStat($statCode) { if(class_exists('frameGmp') && frameGmp::_()->getModule('supsystic_promo') && frameGmp::_()->getModule('options') ) { frameGmp::_()->getModule('supsystic_promo')->getModel()->saveUsageStat( $statCode ); frameGmp::_()->getModule('supsystic_promo')->getModel()->checkAndSend( true ); } } static public function update() { global $wpdb; $wpPrefix = $wpdb->prefix; /* add to 0.0.3 Versiom */ $currentVersion = get_option($wpPrefix. GMP_DB_PREF. 'db_version', 0); $installed = (int) get_option($wpPrefix. GMP_DB_PREF. 'db_installed', 0); if(!$currentVersion || version_compare(GMP_VERSION_PLUGIN, $currentVersion, '>')) { self::init(); update_option($wpPrefix. GMP_DB_PREF. 'db_version', GMP_VERSION_PLUGIN); } } }