ecshop 百度编辑器添加水印

文件路径:includes/ueditor/php/imageUp.php

 

 

//添加水印,载入水印需要的文件 @author Abner @time 20171221 start
define('IN_ECS', true);
define('INIT_NO_USERS', true);
require_once( '../../init.php');
require_once( '../../cls_image.php');
$image = new cls_image(); 
if (intval($_CFG['watermark_place']) > 0 && !empty($_CFG['watermark']))
{ 
$image->add_watermark( $tmpName , '', '../../'.$_CFG['watermark'], $_CFG['watermark_place'], $_CFG['watermark_alpha']);

}
//添加水印,载入水印需要的文件 @author Abner @time 20171221 end

 

posted @ 2017-12-21 18:22  Abner3721  阅读(447)  评论(0编辑  收藏  举报