source: extensions/PHP_Optimisateur/plugins/watermark/main.php @ 16883

Last change on this file since 16883 was 12819, checked in by mistic100, 12 years ago

fix detection regex and watermark position

File size: 849 bytes
Line 
1<?php
2/***************************************\
3|            PHP OPTIMISATEUR           |
4|          Plugin Watermark 1.1         |
5\***************************************/
6
7## Replace le texte de copyright par une image
8## Dépend des valeurs de $CONF['copyONhd'], $CONF['copyONnormal'] et $CONF['copyPOS']
9
10$WM_waterfile = $CONF['Plugins']['watermark']['waterFILE'];   // Fichier à incruster
11$WM_wateralpha = $CONF['Plugins']['watermark']['waterALPHA']; // Opacité
12
13if (file_exists($WM_waterfile)) {
14  if ($CONF['copyONhd']) {
15    $CONF['copyHD'] = '-wmfile "'.$WM_waterfile.'" -wmflag '.$CONF['copyPOS'].' -wmpos 0 0 -wmopacity '.$WM_wateralpha.'';
16  }
17 
18  if ($CONF['copyONnormal']) {
19    $CONF['copyNormal'] = '-wmfile "'.$WM_waterfile.'" -wmflag '.$CONF['copyPOS'].' -wmpos 0 0 -wmopacity '.$WM_wateralpha.'';
20  }
21}
22?>
Note: See TracBrowser for help on using the repository browser.