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

Last change on this file since 8195 was 8195, checked in by mistic100, 13 years ago
  • Nouveau plugin : CreateCustomThumbs permet de créer des miniatures de taille fixe
  • On peut maintenant désinstaller un plugin facilement
  • Ajout d’une option pour gérer le dossier de sortie non vide (effacer, continuer, bloquer)
File size: 712 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 $copyONhd, $copyONnormal et $copyPOS
9
10$waterFILE = $PluginsBefore['watermark']['waterFILE']; // Fichier à incruster
11$waterALPHA = $PluginsBefore['watermark']['waterALPHA']; // Opacité
12
13if (file_exists($waterFILE)) {
14        if ($copyONhd) {
15                $copyHD = '-wmfile "'.$waterFILE.'" -wmflag '.$copyPOS.' -wmpos 0 0 -wmopacity '.$waterALPHA.'';
16        }
17       
18        if ($copyONnormal) {
19                $copyNormal = '-wmfile "'.$waterFILE.'" -wmflag '.$copyPOS.' -wmpos 0 0 -wmopacity '.$waterALPHA.'';
20        }
21}
22?>
Note: See TracBrowser for help on using the repository browser.