public function uninstall() { $ret = true; if ($ret) { $ret = Variable::delete('mail_from_addr'); } if ($ret) { $ret = Variable::delete('mail_from_name'); } if ($ret) { $ret = Variable::delete('mail_use_replyto'); } if ($ret) { $ret = Variable::delete('mail_method'); } if ($ret) { $ret = Variable::delete('mail_user'); } if ($ret) { $ret = Variable::delete('mail_password'); } if ($ret) { $ret = Variable::delete('mail_host'); } if ($ret) { $ret = Variable::delete('mail_security'); } if ($ret) { $ret = Variable::delete('mail_auth'); } Base_ThemeCommon::uninstall_default_theme($this->get_type()); return $ret; }
public function uninstall() { Base_ThemeCommon::uninstall_default_theme(Base_User_LoginInstall::module_name()); Variable::delete('host_ban_time'); Variable::delete('host_ban_nr_of_tries'); Variable::delete('host_ban_by_login'); return DB::DropTable('user_password') && DB::DropTable('user_login_ban') && DB::DropTable('user_autologin') && DB::DropTable('user_reset_pass'); }
public function uninstall() { recursive_rmdir(DATA_DIR . '/Base_Theme/templates/default/images'); Variable::delete('default_theme'); Variable::delete('preload_image_cache_default'); Variable::delete('preload_image_cache_selected'); return true; }
public function delete() { if ($this->id > 0) { $variable = new Variable($this->nom); parent::delete(); ActionsModules::instance()->appel_module("delvariable", $variable); } redirige("variable.php"); }
public function uninstall() { Base_ThemeCommon::uninstall_default_theme($this->get_type()); Variable::delete('printers_registered', false); Variable::delete('print_document_types', false); Variable::delete('print_href_callback', false); Variable::delete('print_disabled_templates', false); return true; }
public function uninstall() { Variable::delete('logo_file'); Variable::delete('login_logo_file'); Variable::delete('base_page_title'); Variable::delete('show_caption_in_title'); Variable::delete('show_module_indicator'); Base_ThemeCommon::uninstall_default_theme(Base_MainModuleIndicatorInstall::module_name()); return true; }
public function uninstall() { return Variable::delete('default_lang'); }
$variable = new Variable(); if ($variable->charger_id($id)) { if ($valeur != $variable->valeur) { $variable->valeur = $valeur; $variable->maj(); ActionsModules::instance()->appel_module("modvariable", $variable); } } } } // Ajouter ? $nom = lireParam('ajout_nom', 'string'); if ($nom != '') { $variable = new Variable(); $variable->nom = $nom; $variable->valeur = lireParam('ajout_valeur', 'string'); $variable->protege = 0; $variable->cache = 0; $variable->add(); ActionsModules::instance()->appel_module("addvariable", $variable); } } else { if ($action == "supprimer") { $variable = new Variable(); if ($variable->charger_id(intval(lireParam('id', 'int')))) { $variable->delete(); } ActionsModules::instance()->appel_module("delvariable", $variable); } } redirige("variable.php");
public function uninstall() { Variable::delete('error_mail'); return true; }
<?php defined("_VALID_ACCESS") || die('Direct access forbidden'); Variable::delete('utils_attachments_google_user', false); Variable::delete('utils_attachments_google_pass', false); @DB::DropTable('utils_attachment_googledocs');
public function uninstall() { Base_ThemeCommon::uninstall_default_theme($this->get_type()); return Variable::delete('allow_lang_change'); }
<?php defined("_VALID_ACCESS") || die('Direct access forbidden'); Variable::delete('preload_image_cache_default'); Variable::delete('preload_image_cache_selected');
public static function clear_license_key($only_current = true) { $license_keys = Variable::get(self::VAR_LICENSE_KEY, false); if (!$only_current || !is_array($license_keys)) { Variable::delete(self::VAR_LICENSE_KEY, false); return; } unset($license_keys[self::get_server_url_base()]); Variable::set(self::VAR_LICENSE_KEY, $license_keys); }
public function uninstall() { $this->drop_all_rc_tables(); Utils_RecordBrowserCommon::delete_addon('rc_mails', 'CRM/Roundcube', 'attachments_addon'); Utils_RecordBrowserCommon::delete_addon('contact', 'CRM/Roundcube', 'addon'); Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Roundcube', 'addon'); DB::DropTable('rc_mails_attachments'); DB::DropTable('rc_mails_attachments_download'); Utils_RecordBrowserCommon::uninstall_recordset('rc_mails'); Utils_RecordBrowserCommon::uninstall_recordset('rc_accounts'); Utils_RecordBrowserCommon::uninstall_recordset('rc_multiple_emails'); Utils_CommonDataCommon::remove('CRM/Roundcube/Security'); Utils_RecordBrowserCommon::unregister_processing_callback('rc_accounts', array('CRM_RoundcubeCommon', 'submit_account')); Utils_RecordBrowserCommon::unregister_processing_callback('rc_mails', array('CRM_RoundcubeCommon', 'submit_mail')); Base_ThemeCommon::uninstall_default_theme($this->get_type()); Variable::delete('crm_roundcube_global_signature'); return true; }
/** * Download module to epesi installation. * @param array $module_license module license data * @return mixed string with error message or true on success */ public static function download_module($module_license) { // downloading invalidates updates count so remove // store updates count to perform check again next time. Variable::delete('epesi_store_updates', false); try { $file = self::download_module_file($module_license); self::extract_module_file($file); self::store_info_about_downloaded_module($module_license, $file); self::post_install_refresh_by_ajax(); } catch (Exception $e) { return $e->getMessage(); } return true; }
<?php defined("_VALID_ACCESS") || die('Direct access forbidden'); Utils_CommonDataCommon::extend_array('Contacts/Access', array('employee' => _M('Employee'))); $cmp = Variable::get('main_company', null); if ($cmp) { set_time_limit(0); $conts = DB::GetAll('SELECT * FROM contact_data_1 WHERE f_company_name=%d OR f_related_companies ' . DB::like() . ' ' . DB::Concat(DB::qstr('\\_\\_'), DB::qstr($cmp), DB::qstr('\\_\\_')), array($cmp)); foreach ($conts as $k => $v) { $v['access'] = Utils_RecordBrowserCommon::decode_multi($v['f_access']); $v['access'][] = 'employee'; Utils_RecordBrowserCommon::update_record('contact', $v['id'], array('access' => $v['access'])); } Variable::delete('main_company', false); } $tab = DB::GetAssoc('SELECT tab, tab FROM recordbrowser_table_properties'); foreach ($tab as $t) { DB::Execute('UPDATE ' . $t . '_access_clearance SET clearance=%s WHERE clearance=%s', array('ACCESS:employee', 'EMPLOYEE')); }
public function uninstall() { Base_ThemeCommon::uninstall_default_theme($this->get_type()); return DB::DropTable('available_modules') && Variable::delete('anonymous_setup') && Variable::delete('simple_setup'); }
public function uninstall() { Base_AclCommon::delete_permission('Attachments - view full download history'); $ret = true; Variable::delete('utils_attachments_google_user'); Variable::delete('utils_attachments_google_pass'); DB::DropTable('utils_attachment_googledocs'); $ret &= DB::DropTable('utils_attachment_download'); $ret &= DB::DropTable('utils_attachment_file'); $ret &= DB::DropTable('utils_attachment_local'); Utils_RecordBrowserCommon::uninstall_recordset('utils_attachment'); Base_ThemeCommon::uninstall_default_theme($this->get_type()); return $ret; }
public function setVariable() { try { if (fRequest::get('remove', 'boolean')) { $variable = new Variable(fRequest::get('name')); $variable->delete(); fMessaging::create('success', 'Variable removed successfully.'); } else { try { $variable = new Variable(fRequest::get('name')); } catch (fNotFoundException $e) { $variable = new Variable(); $variable->setName(fRequest::get('name')); } $variable->setValue(fRequest::get('value')); $variable->store(); fMessaging::create('success', 'Variable set successfully.'); } } catch (fException $e) { fMessaging::create('error', $e->getMessage()); } fURL::redirect(Util::getReferer()); }