[Pview.php-commits] CVS: Pview.php image.php,1.7,1.8 thumb.php,1.8,1.9
Brought to you by:
vko
|
From: Ville K. <vk...@us...> - 2001-09-10 13:43:24
|
Update of /cvsroot/pview-php/Pview.php
In directory usw-pr-cvs1:/tmp/cvs-serv29339
Modified Files:
image.php thumb.php
Log Message:
thumb.php prev/next links to images
Index: image.php
===================================================================
RCS file: /cvsroot/pview-php/Pview.php/image.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** image.php 2001/09/06 08:16:36 1.7
--- image.php 2001/09/10 13:43:19 1.8
***************
*** 24,28 ****
// if $config['Pview']['imageprot']['on'] is 1 then "create" the image,
! // (currently works only with jpegs!)
// else just normally show the image
if (isset($GLOBALS['cri'])) {
--- 24,28 ----
// if $config['Pview']['imageprot']['on'] is 1 then "create" the image,
! // (works only with jpeg, gif and png)
// else just normally show the image
if (isset($GLOBALS['cri'])) {
Index: thumb.php
===================================================================
RCS file: /cvsroot/pview-php/Pview.php/thumb.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** thumb.php 2001/09/06 08:52:35 1.8
--- thumb.php 2001/09/10 13:43:19 1.9
***************
*** 20,29 ****
cookieval();
- // if user has used pco.php to configure his thumb view, use those values
- if (isset($Pviewphpcookie[columns]) AND $Pviewphpcookie[columns] >= 1 AND $Pviewphpcookie[columns] <= 9)
- $config['Pview']['layout']['columns'] = $Pviewphpcookie[columns];
- if (isset($Pviewphpcookie[rows]) AND $Pviewphpcookie[columns] >= 0 AND $Pviewphpcookie[columns] <= 9)
- $config['Pview']['layout']['rows'] = $Pviewphpcookie[rows];
-
// explode $GLOBALS['PATH_INFO']
$pathi = expl_pathi();
--- 20,23 ----
***************
*** 31,35 ****
include($config['Pview']['path']['template'] . '/common-header.inc');
! $tr = 1; $rows = 0;
$imagecount = count($series[$pathi[s]]);
--- 25,29 ----
include($config['Pview']['path']['template'] . '/common-header.inc');
! $tr = 0; $rows = 0; $start = 0;
$imagecount = count($series[$pathi[s]]);
***************
*** 49,56 ****
if ($rows == $config['Pview']['layout']['rows']) break;
}
! if ($tr == "0") echo(" </tr>\n <tr>\n");
include($config['Pview']['path']['template'] . '/thumb/thumb.inc');
! $kuvaidnro++; $tr++;
! if ($tr == $config['Pview']['layout']['columns'] + 1) {
$tr = 0; $rows++;
}
--- 43,50 ----
if ($rows == $config['Pview']['layout']['rows']) break;
}
! if ($tr == 0 AND $start > 0) echo(" </tr>\n <tr>\n");
include($config['Pview']['path']['template'] . '/thumb/thumb.inc');
! $kuvaidnro++; $tr++; $start++;
! if ($tr == $config['Pview']['layout']['columns']) {
$tr = 0; $rows++;
}
|