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 2974 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 2974 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
_INSTALL)) { self::displayErrors(false); return false; } return true; } static public function activate($modDataArr) { if(!empty($modDataArr['code']) && !frameGmp::_()->moduleActive($modDataArr['code'])) { //If module is not active - then acivate it if(frameGmp::_()->getModule('options')->getModel('modules')->put(array( 'code' => $modDataArr['code'], 'active' => 1, ))->error) { errorsGmp::push(__('Error Activating module', GMP_LANG_CODE), errorsGmp::MOD_INSTALL); } else { $dbModData = frameGmp::_()->getModule('options')->getModel('modules')->get(array('code' => $modDataArr['code'])); if(!empty($dbModData) && !empty($dbModData[0])) { $modDataArr['ex_plug_dir'] = $dbModData[0]['ex_plug_dir']; } self::_runModuleInstall($modDataArr, 'activate'); } } } /** * Display all errors for module installer, must be used ONLY if You realy need it */ static public function displayErrors($exit = true) { $errors = errorsGmp::get(errorsGmp::MOD_INSTALL); foreach($errors as $e) { echo ''. $e. '
'; } if($exit) exit(); } static public function uninstall() { $locations = self::_getPluginLocations(); if($modules = self::_getExtendModules($locations)) { foreach($modules as $m) { self::_uninstallTables($m); frameGmp::_()->getModule('options')->getModel('modules')->delete(array('code' => $m['code'])); utilsGmp::deleteDir(GMP_MODULES_DIR. $m['code']); } } } static protected function _uninstallTables($module) { if(is_dir(GMP_MODULES_DIR. $module['code']. DS. 'tables')) { $tableFiles = utilsGmp::getFilesList(GMP_MODULES_DIR. $module['code']. DS. 'tables'); if(!empty($tableNames)) { foreach($tableFiles as $file) { $tableName = str_replace('.php', '', $file); if(frameGmp::_()->getTable($tableName)) frameGmp::_()->getTable($tableName)->uninstall(); } } } } static public function _installTables($module, $action = 'install') { $modDir = empty($module['ex_plug_dir']) ? GMP_MODULES_DIR. $module['code']. DS : utilsGmp::getPluginDir($module['ex_plug_dir']). $module['code']. DS; if(is_dir($modDir. 'tables')) { $tableFiles = utilsGmp::getFilesList($modDir. 'tables'); if(!empty($tableFiles)) { frameGmp::_()->extractTables($modDir. 'tables'. DS); foreach($tableFiles as $file) { $tableName = str_replace('.php', '', $file); if(frameGmp::_()->getTable($tableName)) frameGmp::_()->getTable($tableName)->$action(); } } } } }