· 6 years ago · Oct 23, 2019, 05:30 PM
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
14ob_start();
15@session_start();
16error_reporting(0);
17ini_set('display_errors', 'On');
18set_time_limit(0);
19include 'config.php';
20include 'fonksiyon.php';
21require 'pin/vendor/autoload.php';
22
23if (isset($_POST['login'])) {
24 $admin_username = $_POST['admin_username'];
25 $admin_pass = $_POST['admin_pass'];
26 $kullanicikontrol = $db->prepare('SELECT * FROM admin where admin_username=:admin_username and admin_pass=:admin_pass ');
27 $kullanicikontrol->execute(array('admin_username' => $admin_username, 'admin_pass' => $admin_pass));
28 $say = $kullanicikontrol->rowCount();
29
30 if ($say == 1) {
31 $_SESSION['admin_username'] = $admin_username;
32 header('Location: /admin/index.php');
33
34 exit();
35 }
36
37 header('Location: /admin/login.php');
38
39 exit();
40}
41
42if (isset($_POST['kelimeEkle'])) {
43 $kelimeler = $_POST['kelime_ekle'];
44 $array = explode("\n", $kelimeler);
45 $veri = preg_replace('/(?:(?:\\r\\n|\\r|\\n)\\s*)/sim', '', $array);
46
47 foreach ($veri as $key) {
48 $ayarkaydet = $db->prepare("INSERT INTO kelimeler SET\n\t\tkelime=:kelime,\n\t\tpinterestuser_id=:pinterestuser_id,\n\t\tkelime_board_id=:kelime_board_id");
49 $update = $ayarkaydet->execute(array('kelime' => $key, 'pinterestuser_id' => $_POST['userId'], 'kelime_board_id' => $_POST['id']));
50 $id = $_POST['id'];
51 $userId = $_POST['userId'];
52
53 if ($update) {
54 header('Location:/admin/kelime.php?id=' . $id . '&userId=' . $userId . '&status=true');
55 } else {
56 header('Location:/admin/kelime.php?id=' . $id . '&userId=' . $userId . '&status=false');
57 }
58 }
59}
60
61if (isset($_POST['apiInstert'])) {
62 $pinterestuser_id = $_POST['id'];
63 $settingrow = $db->prepare('SELECT * FROM ayarlar');
64 $settingrow->execute();
65 $settingrows = $settingrow->fetch(PDO::FETCH_ASSOC);
66 $apirandoms = $db->prepare('SELECT * FROM pinterest_api where pinterestuser_id=:id');
67 $apirandoms->execute(array('id' => $pinterestuser_id));
68 $apicount = $apirandoms->rowCount();
69
70 if ($apicount == 3) {
71 echo 'Daha Fazla Api Eklenemez' . '<br>';
72 echo '<a href="' . $settingrows['site_link'] . '/admin/apiekle.php?id=' . $pinterestuser_id . '&status=false">Geri Dönmek İçin Tıklayın</a>';
73 } else {
74 $kaydet = $db->prepare("INSERT IGNORE INTO pinterest_api SET \n\t\tpinterestuser_id=:pinterestuser_id,\n\t\tapi_id=:api_id,\n\t\tapi_secret=:api_secret");
75 $insert = $kaydet->execute(array('pinterestuser_id' => $pinterestuser_id, 'api_id' => $_POST['api_id'], 'api_secret' => $_POST['api_secret']));
76
77 if ($insert) {
78 header('Location:/admin/apiekle.php?id=' . $pinterestuser_id . '&status=true');
79 } else {
80 error_reporting(1 | 2 | 4 | 8);
81 error_reporting(32767);
82 print_r(error_get_last());
83......................................................................
84....................................
85.................