"http://dev.mysql.com/doc/mysql/de/Column_types.html"); function MSD_mysql_connect() { global $config,$databases; $port=(isset($config["dbport"]) && !empty($config["dbport"])) ? ":".$config["dbport"] : ""; $socket=(isset($config["dbsocket"]) && !empty($config["dbsocket"])) ? ":".$config["dbsocket"] : ""; $config["dbconnection"] = @mysql_connect($config["dbhost"].$port.$socket,$config["dbuser"],$config["dbpass"]) or die(SQLError("Datenbankverbindung",mysql_error())); if(!defined('MSD_MYSQL_VERSION')) GetMySQLVersion(); return true; } function GetMySQLVersion() { $res=MSD_query("select version()"); $row = mysql_fetch_array($res); $version=$row[0]; $new=(substr($version,0,3)>=4.1); if(!defined('MSD_MYSQL_VERSION')) define('MSD_MYSQL_VERSION', $version); if(!defined('MSD_NEW_VERSION')) define('MSD_NEW_VERSION',$new); } function MSD_query($query) { global $config; if(!isset($config["dbconnection"])) MSD_mysql_connect(); return @mysql_query($query, $config["dbconnection"]); } function MSD_mysql_error() { global $config,$databases; } function SQLError($sql,$error) { global $lang,$mysql_errorhelp_ref; echo '
'; } function Highlight_SQL($sql) { global $sql_keywords; $tmp="/".implode("/ /",$sql_keywords)."/"; $tmp_array=explode(" ",$tmp); $tmp="".implode("###",$sql_keywords).""; $tmp_replace=explode("###",$tmp); $sql=nl2br(htmlentities($sql)); $sql=preg_replace("/`(.*?)`/si", "`$1`", $sql); str_replace("{","{