Код:<?php echo " ";
if ($_FILES[f_Picture][size]!=0 && $_FILES[f_Picture][type]!='')
{
eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID='$cc'","\$data[CustomSettings]"));
global $nc_core;
require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");
nc_ImageTransform::createThumb('Picture','Preview',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);
$photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, 'Picture', "");
if ($photo_path) nc_ImageTransform::imgResize($photo_path,$photo_path,$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);
nc_ImageTransform::putWatermark($classID,'Picture',$message, '/images/logotype.png', 1 );
}
if ($_FILES[f_Preview][size]!=0 && $_FILES[f_Preview][type]!='')
{
eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID='$cc'","\$data[CustomSettings]"));
global $nc_core;
require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");
$photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, 'Preview', "");
if ($photo_path) nc_ImageTransform::imgResize($photo_path,$photo_path,$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);
nc_ImageTransform::putWatermark($classID,'Preview',$message, '/images/wat_plan.png', 1 );
}
### default
if($inside_admin) {
ob_end_clean();
header("Location: ".$goBackLink."&inside_admin=1");
exit;
}
else {
echo NETCAT_MODERATION_MSG_OBJCHANGED;
echo "<br><br>".$goBack;
}
echo "
"; ?>