aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/usercp_avatar.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/usercp_avatar.php')
-rw-r--r--phpBB/includes/usercp_avatar.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/usercp_avatar.php b/phpBB/includes/usercp_avatar.php
index 385316dbff..8e11e773bd 100644
--- a/phpBB/includes/usercp_avatar.php
+++ b/phpBB/includes/usercp_avatar.php
@@ -21,6 +21,12 @@
*
***************************************************************************/
+if ( !defined('IN_PROFILE') )
+{
+ die("Hacking attempt");
+ exit;
+}
+
function check_image_type(&$type, &$error, &$error_msg)
{
global $lang;