Advertisement
Guest User

Untitled

a guest
Jun 5th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 15.05.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. $_SESSION['guvenlik'] = ['proje_ekle' => kod()];
  15.  
  16. if (isset($_GET['islem']) == 'duzenle') {
  17. $durum = 'duzenle';
  18. $Sorgu = $db->prepare('SELECT * FROM projeler WHERE id = ?');
  19. $Sorgu->execute([$_GET['id']]);
  20.  
  21. if ($Sorgu->rowCount()) {
  22. $Sonuc = $Sorgu->fetch(PDO::FETCH_ASSOC);
  23. $_SESSION['guvenlik'] = ['proje_guncelle' => kod(), 'projeresimsil' => kod(), 'projetopluresimsil' => kod()];
  24. }
  25. else {
  26. header('Location:' . $url . '/404.html');
  27. unset($_SESSION['guvenlik']);
  28. exit();
  29. }
  30. }
  31.  
  32. echo '<div class="page-header">' . "\r\n\t" . '<div class="page-title mt-0 mb-0">' . "\r\n\t\t" . '<h3>';
  33. echo @$admindil['txt43'];
  34. echo '</h3>' . "\r\n\t\t" . '<div class="crumbs">' . "\r\n\t\t\t" . '<ul id="breadcrumbs" class="breadcrumb">' . "\r\n\t\t\t\t" . '<li><a href="index.html"><i class="icon-home menu-icon"></i></a></li>' . "\r\n\t\t\t\t" . '<li><a href="';
  35. echo $sayfalink;
  36. echo '">';
  37. echo @$admindil['txt42'];
  38. echo '</a></li>' . "\r\n\t\t\t\t" . '<li><a href="projeler.html">';
  39. echo @$admindil['txt44'];
  40. echo '</a></li>' . "\r\n\t\t\t\t" . '<li class="active"><a href="';
  41. echo $sayfalink;
  42. echo '">';
  43. echo @$admindil['txt43'];
  44. echo '</a></li>' . "\r\n\t\t\t" . '</ul>' . "\r\n\t\t" . '</div>' . "\r\n\t" . '</div>' . "\r\n" . '</div>' . "\r\n" . '<div class="row">' . "\r\n\t" . '<div class="col-12 grid-margin stretch-card">' . "\r\n\t\t" . '<div class="card">' . "\r\n\t\t\t" . '<div class="card-body">' . "\r\n\t\t\t\t" . '<form class="forms-sample" method="post" action="../_class/yonetim_islem.php" enctype="multipart/form-data">' . "\r\n\t\t\t\t" . '<input id="id" name="id" type="hidden" value="';
  45. echo $Sonuc['id'];
  46. echo '">' . "\r\n\t\t\t\t\t" . '<div class="form-group">' . "\r\n\t\t\t\t\t\t" . '<label for="sira">Sıra</label>' . "\r\n\t\t\t\t\t\t" . '<input type="number" class="form-control form-control-sm" min="0" name="sira" id="sira" value="';
  47. echo isset($_GET['islem']) == 'duzenle' ? $Sonuc['sira'] : '';
  48. echo '" />' . "\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t" . '<div class="form-group">' . "\r\n\t\t\t\t\t\t" . '<label for="adi">Başlık <i class="icon-info text-info" data-toggle="popover" data-content="Proje adında tamamen BÜYÜK harf kullanmayın. 70 karakterden uzun başlıkları Google indexlemede göstermez ve değerlendirmez. Bu nedenle uzun başlıklar kullanmaktan kaçının. Başlıklarda çift tırnak kesinlikle kullanmayın." data-trigger="hover" data-original-title="Başlık"></i></label>' . "\r\n\t\t\t\t\t\t" . '<input type="text" class="form-control form-control-sm" name="adi" id="adi" value="';
  49. echo isset($_GET['islem']) == 'duzenle' ? $Sonuc['adi'] : '';
  50. echo '" />' . "\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t" . '<div class="row">' . "\r\n\t\t\t\t\t\t" . '<div class="form-group col-md-6">' . "\r\n\t\t\t\t\t\t\t" . '<label for="kategori">Kategori</label>' . "\r\n\t\t\t\t\t\t\t" . '<select class="js-example-basic-single form-control-sm" name="kategori" id="kategori" required style="width:100%">' . "\r\n\t\t\t\t\t\t\t";
  51. $KATEGORISorgu = $db->prepare('SELECT * FROM proje_kategori WHERE durum = ? AND dil = ? ORDER BY id ASC');
  52. $KATEGORISorgu->execute(['1', $_SESSION['admin_dil']]);
  53. $KATEGORIislem = $KATEGORISorgu->fetchALL(PDO::FETCH_ASSOC);
  54. echo "\t\t\t\t\t\t\t\t";
  55.  
  56. foreach ($KATEGORIislem as $KATEGORISonuc) {
  57. echo "\t\t\t\t\t\t\t\t" . '<option value="';
  58. echo $KATEGORISonuc['id'];
  59. echo '" ';
  60. echo $Sonuc['kategori'] == $KATEGORISonuc['id'] ? 'selected' : '';
  61. echo '>';
  62. echo $KATEGORISonuc['adi'];
  63. echo '</option>' . "\r\n\t\t\t\t\t\t\t\t";
  64. }
  65.  
  66. echo "\t\t\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<div class="form-group col-md-6">' . "\r\n\t\t\t\t\t\t\t" . '<label for="videoid">YouTube Video ID <i class="icon-info text-info" data-toggle="popover" data-content="Haber içeriğinizin haber detay görseli alanında görsel yerine, haberin videosunu gösterebilirsiniz. Bunun için Youtube\'a yüklediğiniz videonuzun sadece ID numarasını bu alana yapıştırmanız yeterlidir. (Ör: https://www.youtube.com/watch?v=TqeSxMdnEQE adresindeki videonun ID\'si v= sorasındaki ID numarasıdır. TqeSxMdnEQE eklenmesi yeterlidir.)" data-trigger="hover" data-original-title="YouTube Video ID"></i></label>' . "\r\n\t\t\t\t\t\t\t" . '<input type="text" class="form-control form-control-sm" name="videoid" id="videoid" value="';
  67. echo isset($_GET['islem']) == 'duzenle' ? $Sonuc['videoid'] : '';
  68. echo '" />' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<div class="form-group col-md-6">' . "\r\n\t\t\t\t\t\t\t" . '<label>Yayın Tarihi <i class="icon-info text-info" data-toggle="popover" data-content="İçeriğin ilk eklendiği tarihtir. Sistem ekleme sırasında otomatik olarak verir. Dilerseniz tarihi değiştirebilirsiniz." data-trigger="hover" data-original-title="Yayın Tarihi"></i></label>' . "\r\n\t\t\t\t\t\t\t" . '<div class="input-group">' . "\r\n\t\t\t\t\t\t\t\t" . '<input type="text" autocomplete="off" name="tarih" value="';
  69. echo isset($_GET['islem']) == 'duzenle' ? $Sonuc['tarih'] : date('d-m-Y H:i');
  70. echo '" class="form-control form-control-sm date-timepicker" />' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="input-group-addon input-group-append border-left" style="height: 35px;">' . "\r\n\t\t\t\t\t\t\t\t" . ' <span class="mdi mdi-calendar input-group-text"></span>' . "\r\n\t\t\t\t\t\t\t\t" . '</span>' . "\r\n\t\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '<div class="form-group col-md-6">' . "\r\n\t\t\t\t\t\t\t" . '<label>Güncelleme Tarihi <i class="icon-info text-info" data-toggle="popover" data-content="İçeriğinizde güncelleme yaptıysanız takvim simgesine tıklayarak güncelleme tarihini belirtmeniz gerekir. İlk içerik girişinde yayın tarih ve saatiyle aynı seçilmesinde yarar vardır." data-trigger="hover" data-original-title="Güncelleme Tarihi"></i></label>' . "\r\n\t\t\t\t\t\t\t" . '<div class="input-group">' . "\r\n\t\t\t\t\t\t\t\t" . '<input type="text" autocomplete="off" name="tarihg" value="';
  71. echo isset($_GET['islem']) == 'duzenle' ? $Sonuc['tarihg'] : '';
  72. echo '" class="form-control form-control-sm date-timepicker" />' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="input-group-addon input-group-append border-left" style="height: 35px;">' . "\r\n\t\t\t\t\t\t\t\t" . ' <span class="mdi mdi-calendar input-group-text"></span>' . "\r\n\t\t\t\t\t\t\t\t" . '</span>' . "\r\n\t\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t";
  73.  
  74. if (isset($_GET['islem']) == 'duzenle') {
  75. echo "\t\t\t\t\t" . '<div class="row">' . "\r\n\t\t\t\t\t\t";
  76.  
  77. if ($Sonuc['kapak']) {
  78. echo "\t\t\t\t\t\t" . '<div class="form-group col-md-2">' . "\r\n\t\t\t\t\t\t\t" . '<img src="../';
  79. echo tema;
  80. echo '/uploads/projeler/';
  81. echo $Sonuc['kapak'];
  82. echo '" class="img-responsive img-thumbnail" style="margin-bottom:2px;width:100%;min-height:150px;">' . "\r\n\t\t\t\t\t\t\t" . '<a style="width: 100%;" class="btn btn-danger btn-sm popconfirm" title="Kapak Sil" href="../_class/yonetim_islem.php?projeresimsil=ok&sid=';
  83. echo $Sonuc['id'];
  84. echo '"><i class="fal fa-trash"></i> Kapak Sil</a>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t";
  85. ...........................................................................
  86. .........................................
  87. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement