This file contains hidden or 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
| <?php | |
| mysqli_report(MYSQLI_REPORT_ERROR); | |
| $env = parse_ini_file(__DIR__."/../.env"); | |
| $mysqli = new mysqli("localhost", $env["DB_USER"], $env["DB_PASS"], $env["DB_NAME"]); | |
| if ($mysqli->connect_error) | |
| { | |
| exit("Connection failed: " . $mysqli->connect_error . "\n"); | |
| } |
This file contains hidden or 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
| <?php | |
| date_default_timezone_set('UTC'); | |
| mysqli_report(MYSQLI_REPORT_ERROR); | |
| /** | |
| * Compiles an activity sheet in JSON format from a database populated by the 'MGE' | |
| * and 'Private Analytics' plugins: | |
| * | |
| * * https://forums.alliedmods.net/showthread.php?p=2723595 | |
| * * https://forums.alliedmods.net/showthread.php?p=1448559 |