20 lines
487 B
PHP
20 lines
487 B
PHP
<?php
|
|
|
|
class waterMarkHook
|
|
{
|
|
|
|
function initializeWaterMarkProcess()
|
|
{
|
|
log_message('ERROR','### watermark hook called');
|
|
$CI =&get_instance();
|
|
if($CI->router->class == 'PD_Controller' && ($CI->router->method == 'checkAfterResponse' || $CI->router->method == 'savePDPhotos'))
|
|
{
|
|
// $CI->load->helper('watermark');
|
|
// $sourceFilePath = 'C:\Users\Venba\Pictures\1canvas.png';
|
|
// watermark::makeWatermark();
|
|
|
|
}
|
|
|
|
|
|
}
|
|
} |