]> git.openstreetmap.org Git - chef.git/blob - cookbooks/donate/templates/default/db-connect.inc.php.erb
supybot: update osmf-server-info urls
[chef.git] / cookbooks / donate / templates / default / db-connect.inc.php.erb
1 <?php
2 $_DB_H = new mysqli('localhost','donate','<%= @passwords['database'] %>','donate');
3 if ($_DB_H->connect_errno) {
4     die('DB Connect Error: ' . $_DB_H->connect_errno);
5 }
6 $_DB_H->report_mode = MYSQLI_REPORT_ERROR;
7 $_DB_H->query('set @@sql_mode = \'\'');
8 $_DB_H->query('SET NAMES \'utf8\'');