#327 Add method for getting MFH settings
This commit is contained in:
parent
57c3e6aaa6
commit
4934c60e34
@ -1983,3 +1983,14 @@ function mfh_getNumberOfDownloadsForAttachment($att_id, $table='attachments')
|
|||||||
$rec = hesk_dbFetchAssoc($res);
|
$rec = hesk_dbFetchAssoc($res);
|
||||||
return $rec['download_count'];
|
return $rec['download_count'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mfh_getSettings() {
|
||||||
|
global $hesk_settings;
|
||||||
|
|
||||||
|
$settings = array();
|
||||||
|
$res = hesk_dbQuery("SELECT `Key`, `Value` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` WHERE `Key` <> 'version'");
|
||||||
|
while ($row = hesk_dbFetchAssoc($res)) {
|
||||||
|
$settings[$row['Key']] = $row['Value'];
|
||||||
|
}
|
||||||
|
return $settings;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user