第一:首页 找到statics/images/water 文件夹,将去删除;
第二:找到phpcms/libs/classes/image.class.php文件中watermark函数,将此函数中$w_text 参数的值设置为空即可,代码如下:
- function watermark($source, $target = '', $w_pos = '', $w_img = '', $w_text = '',$w_font = 8, $w_color = '#ff0000') {
- $w_pos = $w_pos ? $w_pos : $this->w_pos;
- $w_img = $w_img ? $w_img : $this->w_img;
- if(!$this->watermark_enable || !$this->check($source)) return false;
- if(!$target) $target = $source;
- $w_img = PHPCMS_PATH.$w_img;
- $source_info = getimagesize($source);
- $source_w = $source_info[0];
- $source_h = $source_info[1]; //Vevb.com
注:如果想替代phpcms自带水印,可以制作替换原来的图片,或者 $w_text 设置参数为文本水印.
新闻热点
疑难解答