-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to recaptcha v3, cleanup login
- Loading branch information
Showing
77 changed files
with
6,216 additions
and
5,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
<?php | ||
if(basename($_SERVER["PHP_SELF"]) == "properties.php") { | ||
die("403 - Access Forbidden"); | ||
if (basename($_SERVER["PHP_SELF"]) == "properties.php") { | ||
die("403 - Access Forbidden"); | ||
} | ||
try { | ||
/* Site Controls */ | ||
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties"); | ||
if (!$properties) | ||
/* Site Controls */ | ||
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties"); | ||
if (!$properties) { | ||
throw new Exception($mysqli->error); | ||
$prop = $properties->fetch_assoc(); | ||
$themetype = "light"; | ||
$nav = "navbar navbar-expand-lg navbar-light bg-light"; | ||
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; | ||
|
||
|
||
/* Name of server */ | ||
$servername = $prop['name']; | ||
$siteurl = $prop['siteurl']; | ||
$banner = $prop['banner']; | ||
$background = $prop['background']; | ||
$bgcolor = $prop['bgcolor']; | ||
$bgrepeat = $prop['bgrepeat']; | ||
$bgcenter = $prop['bgcenter']; | ||
$bgfixed = $prop['bgfixed']; | ||
$bgcover = $prop['bgcover']; | ||
/* Download link for client */ | ||
$client = $prop['client']; | ||
$server = $prop['server']; | ||
/* Server Version and Type*/ | ||
$version = (float)$prop['version']; | ||
$servertype = $prop['type']; | ||
/* Forum url*/ | ||
$forumurl = $prop['forumurl']; | ||
/* Server Rates */ | ||
$exprate = $prop['exprate']; | ||
$mesorate = $prop['mesorate']; | ||
$droprate = $prop['droprate']; | ||
/* Flood Prevention */ | ||
$baseflood = $prop['flood']; | ||
/* Flood Interval */ | ||
$basefloodint = $prop['floodint']; | ||
/* Level for GMs and up */ | ||
$gmlevel = $prop['gmlevel']; | ||
/* Get Theme */ | ||
$theme = $prop['theme']; | ||
$getdarkhemes = array("cyborg", "slate", "superhero", "darkly"); | ||
if (in_array($theme, $getdarkhemes)) { | ||
$themetype = "dark"; | ||
} | ||
/*Get Vote Config*/ | ||
$colnx = $prop['colnx']; | ||
$colvp = $prop['colvp']; | ||
|
||
/* reCAPTCHA Keys */ | ||
$recaptcha_public = ($prop['recaptcha_public'] ?: null); | ||
$recaptcha_private = ($prop['recaptcha_private'] ?: null); | ||
} | ||
$prop = $properties->fetch_assoc(); | ||
$themetype = "light"; | ||
$nav = "navbar navbar-expand-lg navbar-light bg-light"; | ||
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; | ||
|
||
/* Name of server */ | ||
$servername = $prop['name']; | ||
$siteurl = $prop['siteurl']; | ||
$domain = $prop['domain']; | ||
$banner = $prop['banner']; | ||
$background = $prop['background']; | ||
$bgcolor = $prop['bgcolor']; | ||
$bgrepeat = $prop['bgrepeat']; | ||
$bgcenter = $prop['bgcenter']; | ||
$bgfixed = $prop['bgfixed']; | ||
$bgcover = $prop['bgcover']; | ||
/* Download link for client */ | ||
$client = $prop['client']; | ||
$server = $prop['server']; | ||
/* Server Version and Type*/ | ||
$version = (float)$prop['version']; | ||
$servertype = $prop['type']; | ||
/* Forum url*/ | ||
$forumurl = $prop['forumurl']; | ||
/* Server Rates */ | ||
$exprate = $prop['exprate']; | ||
$mesorate = $prop['mesorate']; | ||
$droprate = $prop['droprate']; | ||
/* Flood Prevention */ | ||
$baseflood = $prop['flood']; | ||
/* Flood Interval */ | ||
$basefloodint = $prop['floodint']; | ||
/* Level for GMs and up */ | ||
$gmlevel = $prop['gmlevel']; | ||
/* Get Theme */ | ||
$theme = $prop['theme']; | ||
$getdarkhemes = array("cyborg", "slate", "superhero", "darkly"); | ||
if (in_array($theme, $getdarkhemes)) { | ||
$themetype = "dark"; | ||
} | ||
/*Get Vote Config*/ | ||
$colnx = $prop['colnx']; | ||
$colvp = $prop['colvp']; | ||
|
||
/* reCAPTCHA Keys */ | ||
$recaptcha_public = ($prop['recaptcha_public'] ?: null); | ||
$recaptcha_private = ($prop['recaptcha_private'] ?: null); | ||
|
||
$hash_algorithm = ($prop['hash_algorithm']); | ||
if ($prop['nav']) { | ||
$nav = "navbar navbar-expand-lg navbar-dark bg-dark"; | ||
} | ||
} catch(Exception $e) { | ||
print("Unable to load MapleBit configuration. Perhaps MapleBit has not been installed yet.<br/>To resolve this, delete <b>assets/config/install/installdone.txt</b> and reload this page."); | ||
exit(); | ||
$hash_algorithm = ($prop['hash_algorithm']); | ||
if ($prop['nav']) { | ||
$nav = "navbar navbar-expand-lg navbar-dark bg-dark"; | ||
} | ||
} catch (Exception $e) { | ||
print("Unable to load MapleBit configuration. Perhaps MapleBit has not been installed yet.<br/>To resolve this, delete <b>assets/config/install/installdone.txt</b> and reload this page."); | ||
exit(); | ||
} | ||
?> |
Oops, something went wrong.