-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatermark.php
54 lines (43 loc) · 1.67 KB
/
watermark.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**************************************************
Coppermine Photo Gallery 1.4.2 CPGMark Plugin
*************************************************
1.0 CPGMark
Copyright (C) 2005 Jeff Paffett <[email protected]>
************************************************* //
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*************************************************
Coppermine version: 1.4.2
$Source: /cvsroot/cpg-contrib/CPGMark/watermark.php,v $
$Revision: 1.4 $
$Author: donnoman $
$Date: 2006/07/31 04:49:50 $
***************************************************/
Header("Content-type: image/jpeg");
include ('include/watermark.class.php');
$image = '../../'.$_GET['image'];
if (isset($_GET['img_watermark']))
{
$img_watermark = '../../'.$_GET['img_watermark'];
}
$watermark=new watermark($image);
if (isset($_GET['img_watermark']))
{
$watermark->img_watermark='../../'.$_GET['img_watermark'];
$watermark->img_watermark_Valing=$_GET['img_watermark_Valing'];
$watermark->img_watermark_Haling=$_GET['img_watermark_Haling'];
}
if (isset($_GET['txt_watermark']))
{
$watermark->txt_watermark=urldecode($_GET['txt_watermark']);
$watermark->txt_watermark_color=$_GET['txt_watermark_color'];
$watermark->txt_watermark_font=$_GET['txt_watermark_font'];
$watermark->txt_watermark_Valing=$_GET['txt_watermark_Valing'];
$watermark->txt_watermark_Haling=$_GET['txt_watermark_Haling'];
}
$watermark->process();
$watermark->show();
?>