- if ((isExtensionActive('msg')) && (postRequestParameter('type') == 'message')) {
- // Add message
- $message = loadEmailTemplate('admins_msg_contct_admin', postRequestParameter('text'), 0);
- sendAdminMessage(getRequestParameter('admin'), '{--ADMINS_MSG_FROM_ADMIN--}', $message);
- } else {
- // Load admin's email address
- $email = getAdminEmail(bigintval(getRequestParameter('admin')));