[Pview.php-commits] CVS: Pview.php image.php,1.11,1.12
Brought to you by:
vko
|
From: Ville K. <vk...@us...> - 2002-02-08 21:18:17
|
Update of /cvsroot/pview-php/Pview.php
In directory usw-pr-cvs1:/tmp/cvs-serv11301
Modified Files:
image.php
Log Message:
imageprot: error page if directly linked
Index: image.php
===================================================================
RCS file: /cvsroot/pview-php/Pview.php/image.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** image.php 8 Feb 2002 20:54:34 -0000 1.11
--- image.php 8 Feb 2002 21:18:12 -0000 1.12
***************
*** 29,33 ****
$findin = 'http://' . $GLOBALS['SERVER_NAME'] . $config['Pview']['path']['root'];
if (!stristr($GLOBALS['HTTP_REFERER'], $findin)) {
! //$img =
exit;
}
--- 29,35 ----
$findin = 'http://' . $GLOBALS['SERVER_NAME'] . $config['Pview']['path']['root'];
if (!stristr($GLOBALS['HTTP_REFERER'], $findin)) {
! include($config['Pview']['path']['template'] . '/common-header.inc');
! include($config['Pview']['path']['template'] . '/image/imageproterror.inc');
! include($config['Pview']['path']['template'] . '/common-footer.inc');
exit;
}
|