1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owntracks_ynh.git synced 2024-09-03 19:56:24 +02:00
owntracks_ynh/conf/config.inc.php
ericgaspar e3dbe39e56 Fix
2021-07-28 10:18:38 +02:00

27 lines
749 B
PHP

<?php
$_config['sql_host'] = 'localhost';
$_config['sql_user'] = '__DB_NAME__';
$_config['sql_pass'] = '__DB_PWD__';
$_config['sql_db'] = '__DB_NAME__';
$_config['sql_prefix'] = '';
$_config['default_accuracy'] = 1000;
// The following function free us from requiring mysqlnd
function get_result($Statement)
{
$RESULT = array();
$Statement->store_result();
for ($i = 0; $i < $Statement->num_rows; $i++) {
$Metadata = $Statement->result_metadata();
$PARAMS = array();
while ($Field = $Metadata->fetch_field()) {
$PARAMS[] = &$RESULT[ $i ][ $Field->name ];
}
call_user_func_array(array( $Statement, 'bind_result' ), $PARAMS);
$Statement->fetch();
}
return $RESULT;
}