39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
error_reporting(0);
|
|
// settingz
|
|
$sitename = "Grublox";
|
|
$version = 1.0;
|
|
|
|
$devmode = true;
|
|
// enable this when the site should be in debug mode (like showing errors and things to fix)
|
|
|
|
if($devmode) {
|
|
error_reporting(E_ALL);
|
|
}
|
|
|
|
$maintainers = array("Mario1", "qzip", "nolanwhy");
|
|
|
|
$arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png', 'baconbloxii.png');
|
|
|
|
$youtubefunnies = array('bitqf13QU7Q', 'Z_V6yKKIk5U', '2tHl6O5Sp8w', '-5WcDfKndxU', 'cwyTleTL06Y','Rr8XkF5TBLU');
|
|
|
|
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
|
|
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
|
}
|
|
|
|
$sql = [
|
|
"dbname" => "GruBlox",
|
|
"host" => "localhost",
|
|
"port" => 3306,
|
|
"user" => "root",
|
|
"pass" => ""
|
|
];
|
|
|
|
try {
|
|
$con = new PDO("mysql:dbname=".$sql["dbname"].";host=".$sql["host"].";port=".$sql["port"], $sql["user"], $sql["pass"]);
|
|
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
|
|
unset($sql);
|
|
} catch (PDOException $e) {
|
|
die("Connection failed: " . $e->getMessage());
|
|
}
|