📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberipro.demodesign.com.tr
/
application
/
controllers
📝
Kpanel_controller.php
← Geri Dön
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class kpanel_controller extends CI_Controller { public function __construct() { parent::__construct(); date_default_timezone_set('Europe/Istanbul'); if (!aktif_kullanici()) { redirect(base_url()); } } public function kpanel() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Kullanıcı Paneli"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/index', $data); $this->load->view('inc/_kfooter'); } public function firmalarim() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Firmalarım"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/firmalarim', $data); $this->load->view('inc/_kfooter'); } public function yorumlar() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Yorumlar"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/yorumlar', $data); $this->load->view('inc/_kfooter'); } public function genelayar() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Genel Ayarlar"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/genelayar', $data); $this->load->view('inc/_kfooter'); } public function ozellikduzenle($kullanici_id) { $insert = $this->destek_model->ozellikupdate( array("kullanici_uniq" => $kullanici_id), array( "ozellik_firma" => json_encode($this->input->post("firma")), "ozellik_rezervasyon" => $this->input->post("rezervasyon"), "ozellik_yorum" => $this->input->post("yorum"), "ozellik_saat" => $this->input->post("saat"), "ozellik_yetkili" => $this->input->post("yetkili"), "ozellik_galeri" => $this->input->post("galeri"), "ozellik_hizmet" => $this->input->post("hizmet"), "ozellik_rezmail" => $this->input->post("rezmail"), ) ); $alert = array( "title" => "Başarılı!", "text" => "Özellikler Güncellendi", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); } public function firmaduzenle($firmauniq) { $data = new stdClass(); $siteayar = ayarlar(); $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); $vericek = $this->home_model->firmalar(array("firma_uniq" => $firmauniq, "firma.kullanici_id" => $kullanici->kullanici_id)); if (!$vericek) { redirect(base_url("firmalarim")); } if ($where->kullanici_id!=$kullanici->kullanici_id) { $alert = array( "title" => "Hata!", "text" => "Bu Firma Size Ait Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("kullanici-paneli")); die(); } $data->title = "Firma Düzenle"; $data->description = ""; $data->keywords = ""; $data->where = $where; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/firma/firmaduzenle', $data); $this->load->view('inc/_kfooter'); } public function firma_duzenle($firmauniq) { $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); if ($where->kullanici_id!=$kullanici->kullanici_id) { $alert = array( "title" => "Hata!", "text" => "Bu Firma Size Ait Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("kullanici-paneli")); die(); } $this->load->library("form_validation"); $this->form_validation->set_rules("firmaad", "Firma Adı", "required|trim"); $this->form_validation->set_message( array( "required" => "{field} Boş Bırakılamaz!", ) ); $validat = $this->form_validation->run(); if ($validat) { if ($_FILES["file"]["name"]) { $file_name = seo(pathinfo($_FILES["file"]["name"], PATHINFO_FILENAME)) . "." . pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION); $sifrele = uniqid(); $config["allowed_types"] = "jpg|jpeg|png"; $config["upload_path"] = "uploads/firma/"; $config["file_name"] = $sifrele."_".$file_name; $this->load->library("upload", $config); $upload = $this->upload->do_upload("file"); if($upload){ $uploaded_file = $this->upload->data("file_name"); if ($this->input->post("hizmet")) { $hizmet = $this->input->post("hizmet"); $hizmete = json_encode($hizmet); }else{ $hizmete = 0; } $insert = $this->destek_model->firmaupdate( array("firma_uniq" => $firmauniq), array( "firma_ad " => htmlspecialchars($this->input->post("firmaad")), "kategori_id" => htmlspecialchars($this->input->post("kategori")), "firma_anahtar" => htmlspecialchars($this->input->post("anahtar")), "firma_adres" => htmlspecialchars($this->input->post("adres")), "firma_lat" => htmlspecialchars($this->input->post("lat")), "firma_lon" => htmlspecialchars($this->input->post("lng")), "firma_resim" => "uploads/firma/".$uploaded_file, "firma_aciklama" => htmlspecialchars($this->input->post("tanitim")), "firma_tel" => htmlspecialchars($this->input->post("tel")), "firma_mail" => htmlspecialchars($this->input->post("mail")), "firma_website" => htmlspecialchars($this->input->post("website")), "firma_facebook" => htmlspecialchars($this->input->post("facebook")), "firma_twitter" => htmlspecialchars($this->input->post("twitter")), "firma_instagram" => htmlspecialchars($this->input->post("instagram")), "firma_hizmetler" => $hizmete, "firma_his" => htmlspecialchars($this->input->post("haftaicisabah")), "firma_hia" => htmlspecialchars($this->input->post("haftaiciaksam")), "firma_hss" => htmlspecialchars($this->input->post("haftasonusabah")), "firma_hsa" => htmlspecialchars($this->input->post("haftasonuaksam")), "firma_seo" => seo(htmlspecialchars($this->input->post("firmaad"))) ) ); $alert = array( "title" => "İşlem Başarılı", "text" => "Firma Başarılı Şekilde Güncellendi", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } else { $alert = array( "title" => "İşlem Başarısız", "text" => "Fotoğraf Yüklenemedi!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } }else{ if ($this->input->post("hizmet")) { $hizmet = $this->input->post("hizmet"); $hizmete = json_encode($hizmet); }else{ $hizmete = 0; } $insert = $this->destek_model->firmaupdate( array("firma_uniq" => $firmauniq), array( "firma_ad " => htmlspecialchars($this->input->post("firmaad")), "kategori_id" => htmlspecialchars($this->input->post("kategori")), "firma_anahtar" => htmlspecialchars($this->input->post("anahtar")), "firma_adres" => htmlspecialchars($this->input->post("adres")), "firma_lat" => htmlspecialchars($this->input->post("lat")), "firma_lon" => htmlspecialchars($this->input->post("lng")), "firma_aciklama" => htmlspecialchars($this->input->post("tanitim")), "firma_tel" => htmlspecialchars($this->input->post("tel")), "firma_mail" => htmlspecialchars($this->input->post("mail")), "firma_website" => htmlspecialchars($this->input->post("website")), "firma_facebook" => htmlspecialchars($this->input->post("facebook")), "firma_twitter" => htmlspecialchars($this->input->post("twitter")), "firma_instagram" => htmlspecialchars($this->input->post("instagram")), "firma_hizmetler" => $hizmete, "firma_his" => htmlspecialchars($this->input->post("haftaicisabah")), "firma_hia" => htmlspecialchars($this->input->post("haftaiciaksam")), "firma_hss" => htmlspecialchars($this->input->post("haftasonusabah")), "firma_hsa" => htmlspecialchars($this->input->post("haftasonuaksam")), "firma_seo" => seo(htmlspecialchars($this->input->post("firmaad"))) ) ); $alert = array( "title" => "İşlem Başarılı", "text" => "Firma Başarılı Şekilde Güncellendi", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } } else { $data = new stdClass(); $siteayar = ayarlar(); $data->form_error = true; $data->title = $siteayar->site_baslik; $data->description = $siteayar->site_aciklama; $data->keywords = $siteayar->site_keyw; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/firma/firmaduzenle/$firmauniq', $data); $this->load->view('inc/_kfooter'); } } public function firmagaleri($firmauniq) { $data = new stdClass(); $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); $vericek = $this->home_model->firmalar(array("firma_uniq" => $firmauniq, "firma.kullanici_id" => $kullanici->kullanici_id)); if (!$vericek) { redirect(base_url("firmalarim")); } if ($where->kullanici_id!=$kullanici->kullanici_id) { $alert = array( "title" => "Hata!", "text" => "Bu Firma Size Ait Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("kullanici-paneli")); die(); } $data->title = "Firma Galeri"; $data->description = ""; $data->keywords = ""; $data->where = $where; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/firma/firma-galeri', $data); $this->load->view('inc/_kfooter'); } public function galeriyukle($firmauniq) { $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); if ($where->kullanici_id!=$kullanici->kullanici_id) { $alert = array( "title" => "Hata!", "text" => "Bu Firma Size Ait Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("kullanici-paneli")); die(); } $data = array(); if (!empty($_FILES['file']['name'])) { $filesCount = count($_FILES['file']['name']); $sifrele = uniqid(); for ($i = 0; $i < $filesCount; $i++) { $_FILES['uploadFile']['name'] = $sifrele."_".str_replace(",","_",$_FILES['file']['name'][$i]); $_FILES['uploadFile']['type'] = $_FILES['file']['type'][$i]; $_FILES['uploadFile']['tmp_name'] = $_FILES['file']['tmp_name'][$i]; $_FILES['uploadFile']['error'] = $_FILES['file']['error'][$i]; $_FILES['uploadFile']['size'] = $_FILES['file']['size'][$i]; //Directory where files will be uploaded $uploadPath = 'uploads/firma/galeri'; $config['upload_path'] = $uploadPath; // Specifying the file formats that are supported. $config['allowed_types'] = 'jpg|jpeg|png'; $this->load->library('upload', $config); $this->upload->initialize($config); if ($this->upload->do_upload('uploadFile')) { $fileData = $this->upload->data(); $uploadData[$i]['file_name'] = $fileData['file_name']; } } if (!empty($uploadData)) { $list=array(); foreach ($uploadData as $value) { array_push($list, $value['file_name']); } if (!empty($where->firma_galeri) || $where->firma_galeri!="[]") { $galeri = json_decode($where->firma_galeri); $ekle = json_encode(array_merge($galeri, $list)); }else{ $ekle = json_encode($list); } $insert = $this->destek_model->firmaupdate( array("firma_uniq" => $firmauniq), array( "firma_galeri " => $ekle, ) ); echo "Başarlı Şekilde Yüklendi!"; } } } public function galerisil($firmauniq,$arrayid) { $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); if ($where->kullanici_id!=$kullanici->kullanici_id) { $alert = array( "title" => "Hata!", "text" => "Bu Firma Size Ait Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("kullanici-paneli")); die(); } $galeri = array(); $galeri = json_decode($where->firma_galeri); unset($galeri[$arrayid]); $kodla = json_encode(array_values($galeri)); $insert = $this->destek_model->firmaupdate( array("firma_uniq" => $firmauniq), array( "firma_galeri " => $kodla, ) ); redirect($_SERVER['HTTP_REFERER']); } public function favorilerim() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Favorilerim"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/favorilerim', $data); $this->load->view('inc/_kfooter'); } public function hesapayar() { $data = new stdClass(); $siteayar = ayarlar(); $data->title = "Hesap Ayarları"; $data->description = ""; $data->keywords = ""; $this->load->view('inc/_kheader', $data); $this->load->view('kpanel/hesapayar', $data); $this->load->view('inc/_kfooter'); } public function kullanicibilgi() { $kullanici = kullanicicek(); if (!$_POST) { redirect(base_url()); } if ($_FILES["file"]["name"]) { $file_name = seo(pathinfo($_FILES["file"]["name"], PATHINFO_FILENAME)) . "." . pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION); $sifrele = uniqid(); $config["allowed_types"] = "jpg|jpeg|png"; $config["upload_path"] = "uploads/kullanici/"; $config["file_name"] = $sifrele."_".$file_name; $this->load->library("upload", $config); $upload = $this->upload->do_upload("file"); if($upload){ $uploaded_file = $this->upload->data("file_name"); $insert = $this->destek_model->kullaniciupdate( array("kullanici_id" => $kullanici->kullanici_id), array( "kullanici_isim " => htmlspecialchars($this->input->post("isim")), "kullanici_soyisim" => htmlspecialchars($this->input->post("soyisim")), "kullanici_resim" => "uploads/kullanici/".$uploaded_file, ) ); $alert = array( "title" => "İşlem Başarılı", "text" => "Kullanıcı Bilgileri Başarılı Şekilde Güncellendi", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } else { $alert = array( "title" => "İşlem Başarısız", "text" => "Fotoğraf Yüklenemedi!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } }else{ $insert = $this->destek_model->kullaniciupdate( array("kullanici_id" => $kullanici->kullanici_id), array( "kullanici_isim " => htmlspecialchars($this->input->post("isim")), "kullanici_soyisim" => htmlspecialchars($this->input->post("soyisim")), ) ); $alert = array( "title" => "İşlem Başarılı", "text" => "Kullanıcı Bilgileri Başarılı Şekilde Güncellendi", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); die(); } } public function sifre() { if (!$_POST) { redirect(base_url()); } $kullanici = kullanicicek(); $where = $this->destek_model->kullaniciget( array( "kullanici_id" => $kullanici->kullanici_id ) ); $this->load->library("form_validation"); //Form ile post edilen name(ad) olan dolu boş kontrolü yap. $this->form_validation->set_rules("eski", "Eski Şifre", "required|trim"); $this->form_validation->set_rules("yeni", "Yeni Şifre", "required|trim"); $this->form_validation->set_rules("tekrar", "Yeni Şifre Tekrar", "required|trim"); $this->form_validation->set_message( array( "required" => "{field} Boş Bırakılamaz!", ) ); $validat = $this->form_validation->run(); if ($validat) { $eskisifre = htmlspecialchars($this->input->post("eski")); $yenisifre = htmlspecialchars($this->input->post("yeni")); $yenitekrar = htmlspecialchars($this->input->post("tekrar")); if (md5($eskisifre)!=$kullanici->kullanici_sifre) { $alert = array( "title" => "Hata!", "text" => "Eski Şifreniz Doğru Değil!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("hesap-ayarlari")); die(); } if ($yenisifre!=$yenitekrar) { $alert = array( "title" => "Hata!", "text" => "Yeni Şifreler Uyuşmuyor!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("hesap-ayarlari")); die(); } $insert = $this->destek_model->kullaniciupdate( array("kullanici_id" => $kullanici->kullanici_id), array( "kullanici_sifre " => md5($yenisifre), ) ); $alert = array( "title" => "Başarılı!", "text" => "Şifreniz Başarılı Şekilde Güncellendi!", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect(base_url("hesap-ayarlari")); } } public function rezervasyongonder($firmauniq) { $ayarlar = ayarlar(); $recaptchaResponse = trim($this->input->post('g-recaptcha-response')); $userIp=$this->input->ip_address(); $secret = $ayarlar->google_secret;; $url="https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$recaptchaResponse."&remoteip=".$userIp; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); $status= json_decode($output, true); if ($status['success']) { $this->load->library("form_validation"); //Form ile post edilen name(ad) olan dolu boş kontrolü yap. $this->form_validation->set_rules("ad", "Ad Soyad", "required|trim"); $this->form_validation->set_rules("mail", "E-Posta Adresi", "required|trim"); $this->form_validation->set_rules("tel", "Telefon Numarası", "required|trim"); $this->form_validation->set_message( array( "required" => "{field} Boş Bırakılamaz!", ) ); $validat = $this->form_validation->run(); if ($validat) { $where = $this->destek_model->rezfirma( array( "firma_uniq" => $firmauniq ) ); $SMTP_HOST = $ayarlar->smtp_host; $SMTP_USER = $ayarlar->smtp_mail; $SMTP_PASS = $ayarlar->smtp_sifre; $SMTP_PORT = $ayarlar->smtp_port; $SMTP_GO = $ayarlar->smtp_gomail; //587 $SITEAD = $ayarlar->site_baslik; $alan = $where->ozellik_rezmail; $konu = "Yeni Fiyat Teklifi"; $ad = $this->input->post("ad"); $tel = $this->input->post("tel"); $mail = $this->input->post("mail"); $mesaj = $this->input->post("mesaj"); $this->load->library('email'); // Set the default email config and Initialize $config['protocol'] = 'smtp'; $config['smtp_host'] = $SMTP_HOST; $config['smtp_user'] = $SMTP_USER; $config['smtp_pass'] = $SMTP_PASS; $config['smtp_port'] = $SMTP_PORT; $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from($SMTP_GO, $SITEAD.' - Teklif İsteği'); $this->email->to($alan); $this->email->subject($SITEAD." - ".$konu); $this->email->message(' <style> /* Reset styles */ body { margin: 0; padding: 0; min-width: 100%; width: 100% !important; height: 100% !important;} body, table, td, div, p, a { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; } table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse !important; border-spacing: 0; } img { border: 0; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; } #outlook a { padding: 0; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; } .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; } /* Rounded corners for advanced mail clients only */ @media all and (min-width: 560px) { .container { border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px; -khtml-border-radius: 8px;} } /* Set color for auto links (addresses, dates, etc.) */ a, a:hover { color: #127DB3; } .footer a, .footer a:hover { color: #999999; } </style> <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0" marginwidth="0" marginheight="0" width="100%" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 100%; height: 100%; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; background-color: #F0F0F0; color: #000000;" bgcolor="#F0F0F0" text="#000000"> <!-- SECTION / BACKGROUND --> <!-- Set message background color one again --> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 100%;" class="background"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0;" bgcolor="#F0F0F0"> <!-- WRAPPER --> <!-- Set wrapper width (twice) --> <table border="0" cellpadding="0" cellspacing="0" align="center" width="560" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: inherit; max-width: 560px;" class="wrapper"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; padding-top: 20px; padding-bottom: 20px;"> <a target="_blank" style="text-decoration: none;" href="'.base_url().'"><img border="0" vspace="0" hspace="0" src="'.base_url($ayarlar->site_footerlogo).'" width="100" height="30" alt="Logo" title="Logo" style=" color: #000000; font-size: 10px; margin: 0; padding: 0; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: none; display: block;" /></a> </td> </tr> <!-- End of WRAPPER --> </table> <!-- WRAPPER / CONTEINER --> <!-- Set conteiner background color --> <table border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" width="560" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: inherit; max-width: 560px;" class="container"> <!-- HEADER --> <!-- Set text color and font family ("sans-serif" or "Georgia, serif") --> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; font-size: 24px; font-weight: bold; line-height: 130%; padding-top: 25px; color: #000000; font-family: sans-serif;" class="header"> Yeni Teklif İsteği Var! </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-bottom: 3px; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; font-size: 18px; font-weight: 300; line-height: 150%; padding-top: 5px; color: #000000; font-family: sans-serif;" class="subheader"> '.$where->firma_ad.' </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; font-size: 17px; font-weight: 400; line-height: 160%; padding-top: 25px; color: #000000; font-family: sans-serif;" class="paragraph"> Bu Mesaj '.base_url().' Adresinden Gönderilmiştir! </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; font-size: 17px; font-weight: 400; line-height: 160%; padding-top: 25px; color: #000000; font-family: sans-serif;" class="paragraph"> Ad Soyad : '.$ad.' <br> Telefon Numarası : '.$tel.' <br> E-Posta Adresi : '.$mail.' <br> Mesaj ; <br> '.$mesaj.' </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; padding-top: 25px; padding-bottom: 5px;" class="button"> <a href="'.base_url("firma/".$where->firma_seo).'" target="_blank" style="text-decoration: underline;"> <table border="0" cellpadding="0" cellspacing="0" align="center" style="max-width: 240px; min-width: 120px; border-collapse: collapse; border-spacing: 0; padding: 0;"> <tr> <td align="center" valign="middle" style="padding: 12px 24px; margin: 0; text-decoration: underline; border-collapse: collapse; border-spacing: 0; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;" bgcolor="#E9703E"> <a target="_blank" style="text-decoration: underline; color: #FFFFFF; font-family: sans-serif; font-size: 17px; font-weight: 400; line-height: 120%;" href="'.base_url("firma/".$where->firma_seo).'"> Firma Detay </a> </td></tr></table></a> </td> </tr> <!-- LINE --> <!-- Set line color --> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; padding-top: 25px;" class="line"> <hr color="#E0E0E0" align="center" width="100%" size="1" noshade style="margin: 0; padding: 0;" /> </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; padding-top: 25px;" class="line"> <hr color="#E0E0E0" align="center" width="100%" size="1" noshade style="margin: 0; padding: 0;" /> </td> </tr> <!-- PARAGRAPH --> <!-- Set text color and font family ("sans-serif" or "Georgia, serif"). Duplicate all text styles in links, including line-height --> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; padding-left: 6.25%; padding-right: 6.25%; width: 87.5%; font-size: 17px; font-weight: 400; line-height: 160%; padding-top: 20px; padding-bottom: 25px; color: #000000; font-family: sans-serif;" class="paragraph"> Destek Ekibi <a href="mailto:'.$ayarlar->iletisim_mail.'" target="_blank" style="color: #127DB3; font-family: sans-serif; font-size: 17px; font-weight: 400; line-height: 160%;">'.$ayarlar->iletisim_mail.'</a> </td> </tr> <!-- End of WRAPPER --> </table> <!-- WRAPPER --> <!-- Set wrapper width (twice) --> <table border="0" cellpadding="0" cellspacing="0" align="center" width="560" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: inherit; max-width: 560px;" class="wrapper"> <tr> <td align="center" valign="top" style=" padding-top: 20px; padding-bottom: 20px; color: #999999; font-family: sans-serif;" class="footer"> Fiyat teklif istekleri için mail almak istemiyorsanız hesap ayarlarından kapatabilirsiniz. </td> </tr> <!-- End of WRAPPER --> </table> <!-- End of SECTION / BACKGROUND --> </td> </tr> </table> </body> '); //if( !$this->CI->email->send()) if( !$this->email->send()) { $alert = array( "title" => "İşlem Hatalı", "text" => "Bir Sorun Var Lütfen SMTP Ayarlarınızı Kontrol Edin.", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); } else { $alert = array( "title" => "Başarılı", "text" => "Fiyat Teklif İsteğiniz Gönderildi! En Kısa Zamanda Dönüş Yapılacaktır.", "type" => "success" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); } }else{ $alert = array( "title" => "HATA!", "text" => "Lütfen Boş Alan Bırakmayın..", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); } }else{ $alert = array( "title" => "HATA!", "text" => "Lütfen Bot Olmadığınızı Doğrulayın!", "type" => "error" ); $this->session->set_flashdata("alert", $alert); redirect($_SERVER['HTTP_REFERER']); } } public function galerisila($firmauniq,$arrayid) { $kullanici = kullanicicek(); $where = $this->destek_model->firmaget( array( "firma_uniq" => $firmauniq ) ); $galeri = array(); $galeri = json_decode($where->firma_galeri); unset($galeri[$arrayid]); $kodla = json_encode(array_values($galeri)); $insert = $this->destek_model->firmaupdate( array("firma_uniq" => $firmauniq), array( "firma_galeri " => $kodla, ) ); redirect($_SERVER['HTTP_REFERER']); } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula