site no longer sending important emails (beta issue?)
Using Jamroom
recursive module trigger means you have a jrCore_list inside another jrCore_list that each rely on the other. Check for looped calls
$_data['download_file_name'] = "whatever_you_want.???" jrCore_register_event_listener('jrCore', 'download_file', 'jrGallery_download_file_listener');
/**
* Watch for original image downloads
* @param $_data array incoming data array
* @param $_user array current user info
* @param $_conf array Global config
* @param $_args array additional info about the module
* @param $event string Event Trigger name
* @return array
*/
function jrGallery_download_file_listener($_data, $_user, $_conf, $_args, $event)
{
if (isset($_args['module']) && $_args['module'] == 'jrGallery') {
if (!isset($_conf['jrGallery_download']) || $_conf['jrGallery_download'] != 'on') {
header('HTTP/1.0 403 Forbidden');
header('Connection: close');
jrCore_notice('Error', 'you do not have permission to download this file');
exit;
}
}
return $_data;
}