Update config.php
This commit is contained in:
parent
1b0d1b34a4
commit
aaa987f909
|
|
@ -4,14 +4,15 @@ $sitename = "Grublox";
|
|||
$version = 1.0;
|
||||
|
||||
$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"];
|
||||
}
|
||||
|
||||
// easier to edit shit
|
||||
$sql = [
|
||||
"dbname" => "GruBlox",
|
||||
"host" => "localhost",
|
||||
|
|
@ -24,5 +25,5 @@ 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);
|
||||
} catch (PDOException $e) {
|
||||
echo "Connection failed: " . $e->getMessage();
|
||||
die("Connection failed: " . $e->getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue