source: extensions/PHP_Optimisateur/plugins/watermark.php @ 7988

Last change on this file since 7988 was 7988, checked in by mistic100, 13 years ago

version 1.0

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