|
|
|
@ -1983,3 +1983,14 @@ function mfh_getNumberOfDownloadsForAttachment($att_id, $table='attachments')
|
|
|
|
|
$rec = hesk_dbFetchAssoc($res);
|
|
|
|
|
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;
|
|
|
|
|
}
|