dataset/seed/roundcube/templates/roundcube-init.php

14 lines
708 B
PHP
Raw Normal View History

2022-03-08 19:42:28 +01:00
<?php
//$sql = file_get_contents('/usr/share/roundcubemail/SQL/mysql.initial.sql');
//$mysqli = mysqli_init();
//$mysqli->options(MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, true);
//$mysqli->ssl_set(NULL, NULL, "/etc/ssl/certs/ca-bundle.crt", NULL, NULL);
//$mysqli->real_connect('mariadb_client_server_domainname', 'mariadb_client_username', 'mariadb_client_password', 'mariadb_client_database');
//$mysqli->multi_query($sql);
//$mysqli->close();
$sql = file_get_contents('/usr/share/roundcubemail/SQL/postgres.initial.sql');
$db = pg_connect("host=%%pg_client_server_domainname port=5432 dbname=%%pg_client_database user=%%pg_client_username password=%%pg_client_password");
pg_query($db, $sql);
pg_close($db);
?>