Guest User

Untitled

a guest
Apr 19th, 2020
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 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. define('BASEPATH', 'FUCK YOURSELF');
  15.  
  16. if (!empty($_SERVER['HTTPS'])) {
  17. $base_url = 'https://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
  18. } else {
  19. $base_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
  20. }
  21.  
  22. $base_url = str_replace('/kurulum', '', $base_url);
  23. SPisKing::init();
  24.  
  25. class SPisKing
  26. {
  27. public static $applicationpath = 'application';
  28. public static $mesaj = array('mesaj' => 'Hiçbir işlem yapılamadı', 'hata' => true);
  29.  
  30. public static function init()
  31. {
  32. if (is_dir('../' . self::$applicationpath)) {
  33. if (($_temp = realpath('../' . self::$applicationpath)) !== false) {
  34. self::$applicationpath = $_temp;
  35. } else {
  36. self::$applicationpath = strtr(rtrim(self::$applicationpath, '/\\'), '/\\', DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR);
  37. }
  38.  
  39. self::db_connection();
  40.  
  41. if ($_POST) {
  42. self::install();
  43. } else {
  44. self::setup();
  45. }
  46. } else {
  47. header('HTTP/1.1 503 Service Unavailable.', true, 503);
  48. echo 'Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php';
  49.  
  50. exit(3);
  51. }
  52. }
  53.  
  54. public static function yansit($message = null, $hata = null)
  55. {
  56. if (!is_null($message)) {
  57. self::$mesaj['mesaj'] = $message;
  58. }
  59.  
  60. if (is_bool($hata)) {
  61. self::$mesaj['hata'] = $hata;
  62. }
  63.  
  64. echo json_encode(self::$mesaj, JSON_UNESCAPED_UNICODE);
  65. }
  66.  
  67. public static function secret_key()
  68. {
  69. $clearUrl = rtrim(str_replace(array('http://', 'https://', 'www.'), array('', '', ''), base_url()), '/');
  70. $hash = hash('sha1', md5(base64_decode($clearUrl)) . 'sacredpamir');
  71. ..............................................................................
  72. .............................................
  73. ......................
Add Comment
Please, Sign In to add comment