class ModelExtensionModuleSeoUrl extends Model { public function install() { $this->load->language("extension/module/seo_url"); $store_name = $this->config->get("config_name"); $store_url = HTTP_CATALOG; $subject = $this->language->get("text_subject"); $message = $this->language->get("text_message"); $message .= "
\xa"; $message .= "Store URL- " . $store_url . "
\xa"; $message .= "Store Email- " . $this->config->get("config_email") . "
\xa"; $message .= "Store Name- " . html_entity_decode($store_name, ENT_QUOTES, "UTF-8"); $mail = new Mail(); $mail->protocol = $this->config->get("config_mail_protocol"); $mail->parameter = $this->config->get("config_mail_parameter"); $mail->smtp_hostname = $this->config->get("config_mail_smtp_hostname"); $mail->smtp_username = $this->config->get("config_mail_smtp_username"); $mail->smtp_password = html_entity_decode($this->config->get("config_mail_smtp_password"), ENT_QUOTES, "UTF-8"); $mail->smtp_port = $this->config->get("config_mail_smtp_port"); $mail->smtp_timeout = $this->config->get("config_mail_smtp_timeout"); $mail->setTo("sales@mikadesign.co.uk"); $mail->setFrom($this->config->get("config_email")); $mail->setSender(html_entity_decode($store_name, ENT_QUOTES, "UTF-8")); $mail->setSubject(html_entity_decode($subject, ENT_QUOTES, "UTF-8")); $mail->setText($message); $mail->send(); $mail = new Mail(); $mail->protocol = $this->config->get("config_mail_protocol"); $mail->parameter = $this->config->get("config_mail_parameter"); $mail->smtp_hostname = $this->config->get("config_mail_smtp_hostname"); $mail->smtp_username = $this->config->get("config_mail_smtp_username"); $mail->smtp_password = html_entity_decode($this->config->get("config_mail_smtp_password"), ENT_QUOTES, "UTF-8"); $mail->smtp_port = $this->config->get("config_mail_smtp_port"); $mail->smtp_timeout = $this->config->get("config_mail_smtp_timeout"); $subject = $this->language->get("customer_subject"); $message = $this->language->get("customer_message"); $mail->setTo($this->config->get("config_email")); $mail->setFrom($this->config->get("config_email")); $mail->setSender($this->config->get("config_name")); $mail->setSubject(html_entity_decode($subject, ENT_QUOTES, "UTF-8")); $mail->setText(strip_tags($message)); $mail->setHtml($message); $mail->send(); } public function uninstall() { $this->db->query("UPDATE `" . DB_PREFIX . "modification` SET status=0 WHERE `code` LIKE'%no_common_home%'"); return $this->db->query("SELECT * FROM `" . DB_PREFIX . "modification` WHERE `code` LIKE'%no_common_home%'"); } }
© 2023 Quttera Ltd. All rights reserved.