This code is provided for archival purposes only. New features will not be added.
23 lines
643 B
PHP
23 lines
643 B
PHP
<?php
|
|
|
|
ini_set("log_errors", 1);
|
|
ini_set("error_log", ZOOPZ_LOG);
|
|
ini_set('display_errors', 0);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting( E_ALL);
|
|
|
|
$dblink = mysqli_connect(ZOOPZ_HOST, ZOOPZ_USERNAME, ZOOPZ_PASSWORD);
|
|
if (!$dblink) {
|
|
die('Zoopz! We are currently experiencing issues, please try again later.');
|
|
}
|
|
mysqli_select_db($dblink, ZOOPZ_DATABASE);
|
|
|
|
function zoopz_query($string){
|
|
global $dblink;
|
|
$result = mysqli_query($dblink, $string);
|
|
$mysql_error = mysqli_error($dblink);
|
|
if ($mysql_error != '') {
|
|
error_log( $mysql_error . "\n" . print_r(debug_backtrace(), true));
|
|
}
|
|
return $result;
|
|
}
|