Files
kabano/includes/database.php
copilot-swe-agent[bot] 92555ea2bf Centralize SQL connections
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
2026-01-24 12:48:16 +00:00

14 lines
261 B
PHP

<?php
namespace Kabano;
function sql_connect() {
global $config;
return pg_connect(
"host=".$config['SQL_host']." dbname=".$config['SQL_db']." user=".$config['SQL_user']." password=".$config['SQL_pass']
) or die ("Could not connect to server\n");
}
?>