<?php 

if ($_FILES['f_ForumAvatar']['size'] != 0 && $_FILES['f_ForumAvatar']['type'] != '')  {
	eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID='$cc'","\$data[CustomSettings]"));
	
    require_once($nc_core->INCLUDE_FOLDER . "classes/nc_imagetransform.class.php");
	
    $photo_path = $DOCUMENT_ROOT . nc_file_path('User', $message, 'ForumAvatar');
    if ($photo_path) {
		nc_ImageTransform::imgResize($photo_path, $photo_path, $CustomSettings['avatar_height'] ? $CustomSettings['avatar_height'] : 32, $CustomSettings['avatar_width'] ? $CustomSettings['avatar_width'] : 32);
	}
}

echo "";
if($inside_admin) {
	ob_end_clean();
	header("Location: ".$goBackLink."&inside_admin=1");
	exit;
}
else {
	echo NETCAT_MODERATION_MSG_OBJCHANGED;
	echo "<br /><br />".$goBack;
}
echo ""; ?>