Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- ___ ______ ________ ___ __ ______
- __ | / /__(_)____________/ / __ \/ / / / __ \
- __ | /| / /__ /__ __ \ __ / /_/ / /_/ / /_/ /
- __ |/ |/ / _ / _ / / / /_/ / ____/ __ / ____/
- ____/|__/ /_/ /_/ /_/\__,_/_/ /_/ /_/_/
- Copyright (C) 2016
- written_by::programmer("hunter_kirkland");
- Released under GPL License v3 (See License.txt)
- If you change this program, you absolutely _MUST_ release
- these changes even if under a new name, /and/ retain credits.
- */
- // ===================
- /* Whirlpool Edition */
- // ===================
- /* Configuration Section */
- // MySQLi
- $mysqli_host = "localhost";
- $mysqli_user = "root";
- $mysqli_password = "123";
- $mysqli_database = "whirlpool";
- // Start MySQLi up here because we're going to use it sooner than I thought.
- $mysqli = new MySQLi($mysqli_host, $mysqli_user, $mysqli_password, $mysqli_database);
- // Site Options
- $site["url"] = "http://localhost"; // No trailing "/"
- $site["cloudflare"] = false;
- $site["reverse_proxy"] = false;
- // Client
- $client["dcr_base"] = "/dcr"; // No trailing "/"
- /* Engine Section*/
- // Rev the engine..
- include("/system/class.user.php");
- use Whistler as Whistler;
- session_start();
- $user = new Whistler\User();
- // Set Parameters
- $params = Array(
- "dcr_base" => $client["dcr_base"],
- "site_url" => $site["url"]
- );
- // If you want to add additional parameters for your username,
- // see the user engine under the "enterGame();" function :)
- if($site["reverse_proxy"] == true || $site["cloudflare"] == true) {
- $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_FORWARDED_FOR"];
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement