Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. ___ ______ ________ ___ __ ______
  6. __ | / /__(_)____________/ / __ \/ / / / __ \
  7. __ | /| / /__ /__ __ \ __ / /_/ / /_/ / /_/ /
  8. __ |/ |/ / _ / _ / / / /_/ / ____/ __ / ____/
  9. ____/|__/ /_/ /_/ /_/\__,_/_/ /_/ /_/_/
  10.  
  11.  
  12. Copyright (C) 2016
  13. written_by::programmer("hunter_kirkland");
  14.  
  15. Released under GPL License v3 (See License.txt)
  16.  
  17. If you change this program, you absolutely _MUST_ release
  18. these changes even if under a new name, /and/ retain credits.
  19.  
  20. */
  21.  
  22. // ===================
  23. /* Whirlpool Edition */
  24. // ===================
  25.  
  26.  
  27.  
  28. /* Configuration Section */
  29.  
  30. // MySQLi
  31. $mysqli_host = "localhost";
  32. $mysqli_user = "root";
  33. $mysqli_password = "123";
  34. $mysqli_database = "whirlpool";
  35.  
  36. // Start MySQLi up here because we're going to use it sooner than I thought.
  37. $mysqli = new MySQLi($mysqli_host, $mysqli_user, $mysqli_password, $mysqli_database);
  38.  
  39.  
  40. // Site Options
  41. $site["url"] = "http://localhost"; // No trailing "/"
  42. $site["cloudflare"] = false;
  43. $site["reverse_proxy"] = false;
  44.  
  45.  
  46. // Client
  47. $client["dcr_base"] = "/dcr"; // No trailing "/"
  48.  
  49.  
  50. /* Engine Section*/
  51.  
  52. // Rev the engine..
  53.  
  54. include("/system/class.user.php");
  55.  
  56. use Whistler as Whistler;
  57. session_start();
  58. $user = new Whistler\User();
  59.  
  60. // Set Parameters
  61. $params = Array(
  62. "dcr_base" => $client["dcr_base"],
  63. "site_url" => $site["url"]
  64. );
  65.  
  66. // If you want to add additional parameters for your username,
  67. // see the user engine under the "enterGame();" function :)
  68.  
  69. if($site["reverse_proxy"] == true || $site["cloudflare"] == true) {
  70.  
  71. $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_FORWARDED_FOR"];
  72.  
  73. }
  74.  
  75. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement