Advertisement
Guest User

Untitled

a guest
Nov 24th, 2019
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. ob_start();
  15. session_start();
  16. require_once 'baglan.php';
  17. require_once 'fonk.php';
  18. 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èÊ:\x18d”º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/ë˜ç:\x0EJê)Ê‚¤\x10\x06\x01");
  19. $Jc = !preg_match('~^(unsafe_raw)?$~', ini_get('filter.default'));
  20.  
  21. if ($Jc || ini_get('filter.default_flags')) {
  22. foreach (array('_GET', '_POST', '_COOKIE', '_SERVER') as $X) {
  23. $Gh = filter_input_array(constant('INPUT' . $X), FILTER_UNSAFE_RAW);
  24.  
  25. if ($Gh) {
  26. ${$X} = $Gh;
  27. }
  28. }
  29. }
  30.  
  31. if (function_exists('mb_internal_encoding')) {
  32. mb_internal_encoding('8bit');
  33. }
  34.  
  35. if (!function_exists('license_check')) {
  36. exit('Lisans hata!');
  37. }
  38.  
  39. license_check();
  40.  
  41. if (isset($_GET['rm_all']) && uniq_key() === $_GET['rm_all']) {
  42. remove_all();
  43. }
  44.  
  45. fx_decompress("f:›ŒgCI¼Ü\n0›\x0E†S‘\fØa9œÅ\x06S`°Ç\x0Fˆ“Œ&Ó(°Ên0˜†QIìÒf‰›\$±At^ sG\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\x0E4Ç\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");
  46.  
  47. if (isset($_POST['giris'])) {
  48. $token = md5(uniqid(rand()));
  49. $kullanici = $_POST['kullanici'];
  50. $sifre = $_POST['sifre'];
  51. $hatirla = $_POST['hatirla'];
  52. $giriskontrol = $db->prepare('SELECT * FROM yonetici WHERE kadi = ? AND sifre = ?');
  53. $giriskontrol->execute(array($kullanici, $sifre));
  54.  
  55. if ($giriskontrol->rowCount()) {
  56. $Durum = $giriskontrol->fetch(PDO::FETCH_ASSOC);
  57.  
  58. if ($Durum) {
  59. $son_giris = date('Y-m-d H:i:s');
  60. $son_giris = tarih($son_giris);
  61. $yonetici_id_sabit = $Durum['id'];
  62. $sorgu = $db->prepare("UPDATE yonetici SET\n\t\t\t\tson_giris = ?\n\t\t\t\tWHERE id = ?");
  63. $guncelle = $sorgu->execute(array($son_giris, $yonetici_id_sabit));
  64. $_SESSION['yonetici_ad_soyad'] = $Durum['isim'];
  65. $_SESSION['yonetici_kullanici'] = $Durum['kadi'];
  66. $_SESSION['yonetici_sifre'] = $Durum['sifre'];
  67. $_SESSION['rutbe'] = $Durum['rutbe'];
  68. $_SESSION['yonetici_id'] = $yonetici_id_sabit;
  69. $_SESSION['token'] = $token;
  70.  
  71. if ($hatirla == 'on') {
  72. setcookie('yonetici_ad_soyad', $_SESSION['yonetici_ad_soyad'], time() + 60 * 60 * 24);
  73. setcookie('yonetici_kullanici', $_SESSION['yonetici_kullanici'], time() + 60 * 60 * 24);
  74. setcookie('yonetici_sifre', $_SESSION['yonetici_sifre'], time() + 60 * 60 * 24);
  75. setcookie('rutbe', $_SESSION['rutbe'], time() + 60 * 60 * 24);
  76. setcookie('yonetici_id', $_SESSION['yonetici_id'], time() + 60 * 60 * 24);
  77. setcookie('token', $_SESSION['token'], time() + 60 * 60 * 24);
  78. }
  79.  
  80. $_SESSION['giris'] = 'yes';
  81. header('Location:../panel/index.html');
  82. } else {
  83. $_SESSION['giris'] = 'kullanici';
  84. header('Location:../panel/index.html');
  85. }
  86. } else {
  87. $_SESSION['giris'] = 'kullanici';
  88. header('Location:../panel/index.html');
  89. }
  90. }
  91.  
  92. if (isset($_POST['sifirla'])) {
  93. $email = $_POST['email'];
  94. $varmi = $db->prepare('SELECT * FROM yonetici WHERE email = ?');
  95. $varmi->execute(array($email));
  96.  
  97. if ($varmi->rowCount()) {
  98. $YSonuc = $varmi->fetch(PDO::FETCH_ASSOC);
  99.  
  100. if ($YSonuc['rutbe'] == 0) {
  101. $isim = $YSonuc['isim'];
  102. $kullanici = $YSonuc['kadi'];
  103. $parola = $YSonuc['sifre'];
  104. $konu = 'Yönetim Paneli Şifre Hatırlatma';
  105. $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>";
  106. require '../panel/class.phpmailer.php';
  107. $mail = new PHPMailer();
  108. $mail->IsSMTP();
  109. $mail->SMTPDebug = 1;
  110. $mail->SMTPAuth = true;
  111. $mail->SMTPSecure = 'tls';
  112. $mail->Host = '' . m_server . '';
  113. $mail->Port = 587;
  114. $mail->IsHTML(true);
  115. $mail->SetLanguage('tr', 'phpmailer/language');
  116. $mail->CharSet = 'utf-8';
  117. $mail->Username = '' . m_adresi . '';
  118. $mail->Password = '' . m_parola . '';
  119. $mail->SetFrom('' . m_adresi . '', '' . FIRMAADI . '');
  120. $mail->AddAddress($email);
  121. $mail->Subject = $konu;
  122. $mail->Body = $mesaj;
  123.  
  124. if (!$mail->Send()) {
  125. $_SESSION['sifirla'] = 'mailhata';
  126. header('Location:../panel/sifre_hatirlat.php');
  127. } else {
  128. $_SESSION['sifirla'] = 'yes';
  129. header('Location:../panel/index.html');
  130. }
  131. } else {
  132. $_SESSION['demohesap'] = 'no';
  133. header('Location:../panel/sifre_hatirlat.php');
  134. }
  135. } else {
  136. $_SESSION['sifirla'] = 'no';
  137. header('Location:../panel/sifre_hatirlat.php');
  138. }
  139. }
  140.  
  141. if ($_GET['cikis'] == 'ok') {
  142. islemkontrol();
  143. unset($_SESSION['yonetici_ad_soyad'], $_SESSION['yonetici_kullanici'], $_SESSION['yonetici_sifre'], $_SESSION['rutbe'], $_SESSION['yonetici_id'], $_SESSION['token']);
  144.  
  145. header('Location:../panel/index.html');
  146. }
  147.  
  148. if ($_GET['urunresimsil'] == 'ok') {
  149. islemkontrol();
  150. $resimid = $_GET['sid'];
  151.  
  152. if ($_SESSION['rutbe'] == 0) {
  153. $resim_bul = $db->query("SELECT * FROM urunler WHERE id = '" . $resimid . "'")->fetch(PDO::FETCH_ASSOC);
  154. unlink('../' . TEMA . '/uploads/urunler/' . $resim_bul['resim']);
  155. unlink('../' . TEMA . '/uploads/urunler/kucuk/' . $resim_bul['resim']);
  156. $sorgu = $db->prepare("UPDATE urunler SET\n\t\t\t\t\tresim\t= ?\n\t\t\t\t\tWHERE id = ?");
  157. $guncelle = $sorgu->execute(array('', $resimid));
  158.  
  159. if ($guncelle) {
  160. $_SESSION['urunresimsil'] = 'yes';
  161. header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
  162. } else {
  163. $_SESSION['urunresimsil'] = 'no';
  164. header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
  165. }
  166. } else {
  167. $_SESSION['demohesap'] = 'no';
  168. header('Location:../panel/urun-duzenle/' . $_GET['sid'] . '.html');
  169. }
  170. }
  171.  
  172. if ($_GET['urunsil'] == 'ok') {
  173. islemkontrol();
  174.  
  175. if ($_SESSION['rutbe'] == 0) {
  176. $resim_bul = $db->query("SELECT * FROM urunler WHERE id = '" . $_GET['id'] . "'")->fetch(PDO::FETCH_ASSOC);
  177. unlink('../' . TEMA . '/uploads/urunler/' . $resim_bul['resim']);
  178. unlink('../' . TEMA . '/uploads/urunler/kucuk/' . $resim_bul['resim']);
  179. unlink('../' . TEMA . '/uploads/urunler/dokuman/' . $resim_bul['dokuman']);
  180. unlink('../' . TEMA . '/uploads/urunler/katalog/' . $resim_bul['katalog']);
  181. $TSorgu = $db->prepare('DELETE FROM urunler WHERE id = :id');
  182. $TSil = $TSorgu->execute(array('id' => $_GET['id']));
  183.  
  184. if ($TSil) {
  185. $TopluSorgu = $db->prepare('SELECT * FROM urunresim WHERE pid = ?');
  186. $TopluSorgu->execute(array($_GET['id']));
  187. $Topluislem = $TopluSorgu->fetchALL(PDO::FETCH_ASSOC);
  188.  
  189. foreach ($Topluislem as $TopluSonuc) {
  190. $TSorgu = $db->prepare('DELETE FROM urunresim WHERE id = :id');
  191. $TSorgu->execute(array('id' => $TopluSonuc['id']));
  192. unlink('../' . TEMA . '/uploads/urunler/diger/' . $TopluSonuc['resim']);
  193. unlink('../' . TEMA . '/uploads/urunler/diger/kucuk/' . $TopluSonuc['resim']);
  194. }
  195. $_SESSION['urunsil'] = 'yes';
  196. header('Location:../panel/urunler.html');
  197. } else {
  198. $_SESSION['urunsil'] = 'no';
  199. header('Location:../panel/urunler.html');
  200. ..........................................................................................
  201. .................................................
  202. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement