if (!defined("_ECRIRE_INC_VERSION")) return;
define('_MYSQL_SET_SQL_MODE',true);
$GLOBALS['spip_connect_version'] = 0.7;
-spip_connect_db(getenv("SPIP_MYSQL_HOST"),'',getenv("SPIP_MYSQL_USER"),getenv("SPIP_MYSQL_PASSWORD"),getenv("SPIP_MYSQL_DB"),'mysql', 'spip','ldap.php');
+spip_connect_db(
+ getenv("SPIP_MYSQL_HOST"),
+ getenv("SPIP_MYSQL_PORT"),
+ getenv("SPIP_MYSQL_USER"),
+ getenv("SPIP_MYSQL_PASSWORD"),
+ getenv("SPIP_MYSQL_DB"),
+ 'mysql',
+ 'spip',
+ 'ldap.php'
+);
?>