Код:";
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");
if ($_FILES[f_Plan][size]!=0 && $_FILES[f_Plan][type]!='')
{
$photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, 'Plan', "");
if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);
}
if ($_FILES[f_Plan][size]!=0 && $_FILES[f_Plan][type]!='' && $_FILES[f_Plan2][size]== 0)
{
nc_ImageTransform::createThumb('Plan','Plan2',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);
}
if ($_FILES[f_Plan2][size]!=0 && $_FILES[f_Plan2][type]!='')
{
$photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, 'Plan2', "");
if ($photo_path)
nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);
nc_ImageTransform::putWatermark($classID,'Picture',$message, 'Plan2', 1 );
}
// default
if($inside_admin) {
ob_end_clean();
header("Location: ".$goBackLink."&inside_admin=1");
exit;
}
else {
echo "<br><br>".$goBack;
}
echo "