<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 06/24/2012 *
- * =================== Last change: 06/24/2012 *
+ * =================== Last change: 06/23/2013 *
* *
* -------------------------------------------------------------------- *
* File : ajax_admin.php *
************************************************************************/
// Some security stuff...
-if ((!defined('__SECURITY')) || (!isAjaxOutputMode())) {
+if (!defined('__SECURITY')) {
+ die();
+} elseif ((!isAjaxOutputMode()) || (!isAdmin())) {
header('HTTP/1.1 403 Forbidden');
die(json_encode(array('reply_content' => 'Access forbidden'), JSON_FORCE_OBJECT));
} // END - if