1. Import

This commit is contained in:
2026-03-29 10:34:57 +02:00
parent b0e00c1259
commit a1129565af
4899 changed files with 3007593 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
/*=======================================================================
*
* dbconnect.inc.php
*
* Autor: Marc Vollmann
*
=======================================================================*/
include_once ("../../include/glob_defs.inc.php");
/**
* Zuweisung zur Variable $dsn je nach benutzter Datenquelle aus-/kommentieren
*/
if ($phpVersion >= "5.1") :
date_default_timezone_set('Europe/Berlin');
endif;
include_once ("../../lib/inc_lib_db.inc.php");
$dbCreds = array("dbHost" => $dbhostOnly, "dbUser" => $dblogin, "dbPassword" => $dbpassword, "dbName" => $dbname, "dbPort" => $dbport, "dbTable" => "user");
$db = new DB($dbCreds);
$db->dbQ('SET NAMES latin1');
$db->dbQ('SET @@SESSION.old_passwords=0');
$db2 = $db;
// Wrapper for deprecated DB functions
if ($phpVersion >= "7.0") :
function mysql_escape_string($string) { global $db; return $db->escape($string); };
endif;
?>