pview-php-commits Mailing List for Pview.php (Page 3)
Brought to you by:
vko
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(12) |
Jun
(60) |
Jul
(57) |
Aug
|
Sep
(26) |
Oct
|
Nov
(6) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
(8) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ville K. <vk...@us...> - 2001-07-18 08:54:00
|
Update of /cvsroot/pview-php/Pview.php/templates/thumb In directory usw-pr-cvs1:/tmp/cvs-serv1291/templates/thumb Modified Files: header.inc Log Message: * image.php prev/next links now images * some small desing changes Index: header.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/thumb/header.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** header.inc 2001/07/08 11:57:48 1.8 --- header.inc 2001/07/18 08:53:56 1.9 *************** *** 3,7 **** <td align="center" colspan="<?= $config['Pview']['layout']['columns'] ?>"><span class="pieni"><?= $series[$pathi[s]][0][4] ?></span><p> <span class="bold"><?= $series[$pathi[s]][0][0] ?></span><?php if (!empty($series[$pathi[s]][0][3])) ! echo '<br><span class="pieni">(' . $series[$pathi[s]][0][3] . ')</span></td>'; ?> </tr> --- 3,7 ---- <td align="center" colspan="<?= $config['Pview']['layout']['columns'] ?>"><span class="pieni"><?= $series[$pathi[s]][0][4] ?></span><p> <span class="bold"><?= $series[$pathi[s]][0][0] ?></span><?php if (!empty($series[$pathi[s]][0][3])) ! echo '<br><span class="pieni">(' . $series[$pathi[s]][0][3] . ')</span>'; ?></td> </tr> |
From: Ville K. <vk...@us...> - 2001-07-18 08:54:00
|
Update of /cvsroot/pview-php/Pview.php/templates/image In directory usw-pr-cvs1:/tmp/cvs-serv1291/templates/image Modified Files: footer.inc header.inc image.inc Log Message: * image.php prev/next links now images * some small desing changes Index: footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/image/footer.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** footer.inc 2001/06/12 18:36:54 1.8 --- footer.inc 2001/07/18 08:53:56 1.9 *************** *** 1,4 **** <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><?php prevnextlinks(); ?><br> </td> </tr> --- 1,4 ---- <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><?php prevnextlinks(); ?></td> </tr> Index: header.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/image/header.inc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** header.inc 2001/07/09 08:26:01 1.11 --- header.inc 2001/07/18 08:53:56 1.12 *************** *** 1,11 **** <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><span class="pieni"><?= $series[$pathi[s]][0][4] ?></span><br> </td> </tr> <tr> ! <td align="center"><?php prevnextlinks(); ?><br> </td> </tr> <tr> ! <td align="center"><?= $series[$pathi[s]][$pathi[i]][1] ?> <span class="pieni"><?= $lang[$config['Pview']['lang']]['gen']['image'] ?> <?= $pathi[i] ?>/<?= $imagecount - 1 ?></span></td> </tr> </table> --- 1,13 ---- <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><span class="pieni"><?= $series[$pathi[s]][0][4] ?></span><p> ! <span class="bold"><?= $series[$pathi[s]][0][0] ?></span><?php if (!empty($series[$pathi[s]][0][3])) ! echo '<br><span class="pieni">(' . $series[$pathi[s]][0][3] . ')</span>'; ?></td> </tr> <tr> ! <td align="center"><?php prevnextlinks(); ?></td> </tr> <tr> ! <td align="center"><span class="bold"><?= $series[$pathi[s]][$pathi[i]][1] ?></span> <span class="pieni"><?= $lang[$config['Pview']['lang']]['gen']['image'] ?> <?= $pathi[i] ?>/<?= $imagecount - 1 ?></span></td> </tr> </table> Index: image.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/image/image.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** image.inc 2001/07/13 21:30:23 1.8 --- image.inc 2001/07/18 08:53:56 1.9 *************** *** 5,9 **** <?php if (!empty($series[$pathi[s]][$pathi[i]][2])) { ?> <tr> ! <td align="center"><?= $series[$pathi[s]][$pathi[i]][2] ?><br> </td> </tr> <?php } ?> --- 5,9 ---- <?php if (!empty($series[$pathi[s]][$pathi[i]][2])) { ?> <tr> ! <td align="center"><?= $series[$pathi[s]][$pathi[i]][2] ?></td> </tr> <?php } ?> |
From: Ville K. <vk...@us...> - 2001-07-18 08:54:00
|
Update of /cvsroot/pview-php/Pview.php/templates In directory usw-pr-cvs1:/tmp/cvs-serv1291/templates Modified Files: common-header.inc Log Message: * image.php prev/next links now images * some small desing changes Index: common-header.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/common-header.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** common-header.inc 2001/06/11 18:16:46 1.3 --- common-header.inc 2001/07/18 08:53:56 1.4 *************** *** 5,9 **** <head> <link rel="stylesheet" type="text/css" href="<?= $config['Pview']['path']['root'] ?>/Pview.css"> - <?php --- 5,8 ---- *************** *** 16,20 **** ?> - <title><?= $title ?></title> </head> --- 15,18 ---- |
From: Ville K. <vk...@us...> - 2001-07-18 08:54:00
|
Update of /cvsroot/pview-php/Pview.php/lib In directory usw-pr-cvs1:/tmp/cvs-serv1291/lib Modified Files: pv.php Log Message: * image.php prev/next links now images * some small desing changes Index: pv.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/lib/pv.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** pv.php 2001/07/13 21:30:23 1.7 --- pv.php 2001/07/18 08:53:56 1.8 *************** *** 25,48 **** $indexpage = floor($pathi[i] / ($config['Pview']['layout']['columns'] * $config['Pview']['layout']['rows'])) . '/'; ! if ($pathi[i] > 1) ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; ! ! echo $lang[$config['Pview']['lang']]['gen']['Prev']; ! if ($pathi[i] > 1) ! echo '</a>'; ! ! echo ' <a href="' . $config['Pview']['path']['root'] . '/thumb.php/' . $pathi[s] . '/'; if (!empty($config['Pview']['layout']['rows'])) echo $indexpage; - - echo '">' . $lang[$config['Pview']['lang']]['gen']['Index'] . '</a> '; - if ($pathi[i] < $imagecount - 1) - echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/">'; - - echo $lang[$config['Pview']['lang']]['gen']['Next']; ! if ($pathi[i] < $imagecount - 1) ! echo '</a>'; echo '</span>'; } --- 25,44 ---- $indexpage = floor($pathi[i] / ($config['Pview']['layout']['columns'] * $config['Pview']['layout']['rows'])) . '/'; ! if ($pathi[i] > 1) { ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/"><img src="' . $config['Pview']['path']['graphics'] . '/arrowl.gif" width="10" height="11" border="0" alt="' . $lang[$config['Pview']['lang']]['gen']['Prev'] . '"></a>'; ! } else { ! echo '<img src="' . $config['Pview']['path']['graphics'] . '/10x11emp.gif" width="10" height="11" border="0" alt="">'; ! } ! echo '<img src="' . $config['Pview']['path']['graphics'] . '/10x11emp.gif" width="10" height="11" border="0" alt=" "><a href="' . $config['Pview']['path']['root'] . '/thumb.php/' . $pathi[s] . '/'; if (!empty($config['Pview']['layout']['rows'])) echo $indexpage; ! echo '"><img src="' . $config['Pview']['path']['graphics'] . '/arrowu.gif" width="10" height="11" border="0" alt="' . $lang[$config['Pview']['lang']]['gen']['Index'] . '"></a><img src="' . $config['Pview']['path']['graphics'] . '/10x11emp.gif" width="10" height="11" border="0" alt="">'; ! if ($pathi[i] < $imagecount - 1) { ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/"><img src="' . $config['Pview']['path']['graphics'] . '/arrowr.gif" width="10" height="11" border="0" alt="' . $lang[$config['Pview']['lang']]['gen']['Next'] . '"></a>'; ! } else { ! echo '<img src="' . $config['Pview']['path']['graphics'] . '/10x11emp.gif" width="10" height="11" border="0" alt="">'; ! } echo '</span>'; } |
From: Ville K. <vk...@us...> - 2001-07-18 08:53:59
|
Update of /cvsroot/pview-php/Pview.php/config In directory usw-pr-cvs1:/tmp/cvs-serv1291/config Modified Files: config.php Log Message: * image.php prev/next links now images * some small desing changes Index: config.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/config/config.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** config.php 2001/07/13 21:30:23 1.11 --- config.php 2001/07/18 08:53:55 1.12 *************** *** 7,10 **** --- 7,13 ---- $config['Pview']['path']['root'] = '/pview'; + # Pview.php site graphics directory + $config['Pview']['path']['graphics'] = $config['Pview']['path']['root'] . '/graphics'; + # Pview.php image directory $config['Pview']['path']['image'] = $config['Pview']['path']['root'] . '/images'; |
From: Ville K. <vk...@us...> - 2001-07-17 18:25:02
|
Update of /cvsroot/pview-php/Pview.php/doc In directory usw-pr-cvs1:/tmp/cvs-serv19932/doc Modified Files: CHANGES TODO Log Message: update docs Index: CHANGES =================================================================== RCS file: /cvsroot/pview-php/Pview.php/doc/CHANGES,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** CHANGES 2001/07/09 11:52:59 1.8 --- CHANGES 2001/07/17 18:24:57 1.9 *************** *** 7,10 **** --- 7,12 ---- * pco.php inputboxes -> option lists * moving some/all text to lang.php to allow multilingual operation + * image.php "creates" the image so that no-one can link + your image to their page, this behavior is as an option * design changes Index: TODO =================================================================== RCS file: /cvsroot/pview-php/Pview.php/doc/TODO,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** TODO 2001/07/08 17:03:47 1.10 --- TODO 2001/07/17 18:24:57 1.11 *************** *** 7,12 **** * config section for users, show all big pictures on one page, show thumbnails etc. - * make image.php "create" the image so that no-one can link - your image to their page, make this behavior as an option * multilingual * database support --- 7,10 ---- |
From: Ville K. <vk...@us...> - 2001-07-13 21:30:27
|
Update of /cvsroot/pview-php/Pview.php/config In directory usw-pr-cvs1:/tmp/cvs-serv14512/config Modified Files: config.php series.php Log Message: image.php "creates" the image so that no-one can link your image on their page, this is an option (default off) Index: config.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/config/config.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** config.php 2001/07/08 17:03:47 1.10 --- config.php 2001/07/13 21:30:23 1.11 *************** *** 25,28 **** --- 25,35 ---- $config['Pview']['lang'] = 'en'; + # 0/1: use image.php option that "creates" the + # image and protects it from outside linking + # if on, set $config['Pview']['imageprot']['path'] + # as absolute path to the images + $config['Pview']['imageprot']['on'] = '0'; + $config['Pview']['imageprot']['path'] = ''; + # Pview.php version number, no need to change unless you want to fool someone $config['Pview']['version'] = '0.2'; Index: series.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/config/series.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** series.php 2001/07/13 12:46:39 1.6 --- series.php 2001/07/13 21:30:23 1.7 *************** *** 5,10 **** # id => short description, date, place, longer description, ! # copyright, location of the id image dir WITHOUT ! # trailing slash (if default leave empty) $series = array( --- 5,10 ---- # id => short description, date, place, longer description, ! # copyright, remote location of the id image dir WITHOUT ! # trailing slash (http://server.tld/images) $series = array( |
From: Ville K. <vk...@us...> - 2001-07-13 21:30:27
|
Update of /cvsroot/pview-php/Pview.php/lib In directory usw-pr-cvs1:/tmp/cvs-serv14512/lib Modified Files: pv.php Log Message: image.php "creates" the image so that no-one can link your image on their page, this is an option (default off) Index: pv.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/lib/pv.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** pv.php 2001/07/12 09:29:00 1.6 --- pv.php 2001/07/13 21:30:23 1.7 *************** *** 47,48 **** --- 47,61 ---- echo '</span>'; } + + function imagelink() { + global $series, $pathi, $config; + if (($config['Pview']['imageprot']['on'] == '1') AND (empty($series[$pathi[s]][0][5]))) { + echo '<img src="' . $GLOBALS['SCRIPT_NAME'] . '/' . $pathi[s] . '/' . $pathi[i] . '/?createimage=1" '; + echo 'alt="[IMAGE (' . $series[$pathi[s]][$pathi[i]][1] . ')]">'; + } else { + echo '<img src="'; + echo empty($series[$pathi[s]][0][5]) ? $config['Pview']['path']['image'] : $series[$pathi[s]][0][5]; + echo '/' . $pathi[s] . '/normal/' . $series[$pathi[s]][$pathi[i]][0] .'" alt="[IMAGE ('; + echo $series[$pathi[s]][$pathi[i]][1] . ')]">'; + } + } |
From: Ville K. <vk...@us...> - 2001-07-13 21:30:27
|
Update of /cvsroot/pview-php/Pview.php In directory usw-pr-cvs1:/tmp/cvs-serv14512 Modified Files: image.php Log Message: image.php "creates" the image so that no-one can link your image on their page, this is an option (default off) Index: image.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/image.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** image.php 2001/07/09 08:26:01 1.3 --- image.php 2001/07/13 21:30:22 1.4 *************** *** 21,32 **** $pathi = expl_pathi(); ! include($config['Pview']['path']['template'] . '/common-header.inc'); ! $imagecount = count($series[$pathi[s]]); ! include($config['Pview']['path']['template'] . '/image/header.inc'); ! include($config['Pview']['path']['template'] . '/image/image.inc'); ! include($config['Pview']['path']['template'] . '/image/footer.inc'); ! include($config['Pview']['path']['template'] . '/common-footer.inc'); ! ?> --- 21,46 ---- $pathi = expl_pathi(); ! if (isset($GLOBALS['createimage'])) { ! $findin = 'http://' . $GLOBALS['SERVER_NAME'] . $config['Pview']['path']['root']; ! if (!stristr($GLOBALS['HTTP_REFERER'], $findin)) { ! //$img = ! exit; ! } ! $img = $config['Pview']['imageprot']['path'] . '/' . $pathi[s] . '/normal/' . $series[$pathi[s]][$pathi[i]][0]; ! $test1 = 'imagejpeg'; ! $filp = fopen($img, 'r'); ! $bimg = fread($filp, filesize($img)); ! fclose($filp); ! header('Content-type: image/jpeg'); ! echo $bimg; ! } elseif (!isset($GLOBALS['createimage'])){ ! include($config['Pview']['path']['template'] . '/common-header.inc'); ! $imagecount = count($series[$pathi[s]]); ! include($config['Pview']['path']['template'] . '/image/header.inc'); ! include($config['Pview']['path']['template'] . '/image/image.inc'); ! include($config['Pview']['path']['template'] . '/image/footer.inc'); ! include($config['Pview']['path']['template'] . '/common-footer.inc'); ! } ?> |
From: Ville K. <vk...@us...> - 2001-07-13 21:30:27
|
Update of /cvsroot/pview-php/Pview.php/templates/image In directory usw-pr-cvs1:/tmp/cvs-serv14512/templates/image Modified Files: image.inc Log Message: image.php "creates" the image so that no-one can link your image on their page, this is an option (default off) Index: image.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/image/image.inc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** image.inc 2001/07/06 13:12:17 1.7 --- image.inc 2001/07/13 21:30:23 1.8 *************** *** 1,6 **** <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><img ! src="<?= empty($series[$pathi[s]][0][5]) ? $config['Pview']['path']['image'] : $series[$pathi[s]][0][5]; ?>/<?= $pathi[s] ?>/normal/<?= $series[$pathi[s]][$pathi[i]][0] ?>" alt="[IMAGE (<?= $series[$pathi[s]][$pathi[i]][1] ?>)]"></td> </tr> <?php if (!empty($series[$pathi[s]][$pathi[i]][2])) { ?> --- 1,5 ---- <table cellpadding="2" cellspacing="2" border="0" width="100%"> <tr> ! <td align="center"><?php imagelink(); ?></td> </tr> <?php if (!empty($series[$pathi[s]][$pathi[i]][2])) { ?> |
From: Ville K. <vk...@us...> - 2001-07-13 18:23:50
|
Update of /cvsroot/pview-php/Pview.php/templates/index In directory usw-pr-cvs1:/tmp/cvs-serv3478/templates/index Modified Files: header.inc Log Message: design change Index: header.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/index/header.inc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** header.inc 2001/07/08 17:03:48 1.5 --- header.inc 2001/07/13 18:23:45 1.6 *************** *** 1,10 **** <table cellpadding="1" cellspacing="1" border="0"> <tr> - <td colspan="9">We have following picture series:</td> - </tr> - <tr> - <td colspan="9"> </td> - </tr> - <tr> <td class="bold"><?= $lang[$config['Pview']['lang']]['index']['sdesc'] ?></td> <td width="5"> </td> --- 1,4 ---- |
From: Ville K. <vk...@us...> - 2001-07-13 12:48:41
|
Update of /cvsroot/pview-php/Pview.php/templates/thumb In directory usw-pr-cvs1:/tmp/cvs-serv1460/templates/thumb Modified Files: footer.inc Log Message: oops, forgot my debug stuff again :) Index: footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/thumb/footer.inc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** footer.inc 2001/07/13 12:46:39 1.10 --- footer.inc 2001/07/13 12:48:38 1.11 *************** *** 4,33 **** if (!empty($config['Pview']['layout']['rows'])) { ! echo 'nro: "' . $kuvaidnro . '"<br>'; ! echo 'row: "' . $config['Pview']['layout']['rows'] . '"<br>'; ! echo 'col: "' . $config['Pview']['layout']['columns'] . '"<br>'; ! if ($kuvaidnro > ($config['Pview']['layout']['rows'] * $config['Pview']['layout']['columns'])) { ! $prev = $pathi[i] - 1; ! $next = $pathi[i] + 1; ! ! echo '<span class="pieni">'; ! if ($pathi[i] >= 1) ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; ! ! echo $lang[$config['Pview']['lang']]['gen']['Prev']; ! if ($pathi[i] >= 1) ! echo '</a>'; ! ! echo ' '; ! ! if (($pathi[i] = 0) OR ($imagecount - 1 > $kuvaidnro - 1)) ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/">'; ! ! echo $lang[$config['Pview']['lang']]['gen']['Next']; ! ! if (($pathi[i] = 0) OR ($imagecount - 1 > $kuvaidnro - 1)) ! echo '</a>'; ! echo '</span>'; ! } } ?> --- 4,30 ---- if (!empty($config['Pview']['layout']['rows'])) { ! if ($kuvaidnro > ($config['Pview']['layout']['rows'] * $config['Pview']['layout']['columns'])) { ! $prev = $pathi[i] - 1; ! $next = $pathi[i] + 1; ! ! echo '<span class="pieni">'; ! if ($pathi[i] >= 1) ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; ! ! echo $lang[$config['Pview']['lang']]['gen']['Prev']; ! if ($pathi[i] >= 1) ! echo '</a>'; ! ! echo ' '; ! ! if (($pathi[i] = 0) OR ($imagecount - 1 > $kuvaidnro - 1)) ! echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/">'; ! ! echo $lang[$config['Pview']['lang']]['gen']['Next']; ! ! if (($pathi[i] = 0) OR ($imagecount - 1 > $kuvaidnro - 1)) ! echo '</a>'; ! echo '</span>'; ! } } ?> |
From: Ville K. <vk...@us...> - 2001-07-13 12:46:43
|
Update of /cvsroot/pview-php/Pview.php/config In directory usw-pr-cvs1:/tmp/cvs-serv946/config Modified Files: series.php Log Message: make the thumb.php prev/next links go away when they're not needed Index: series.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/config/series.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 |
From: Ville K. <vk...@us...> - 2001-07-13 12:46:43
|
Update of /cvsroot/pview-php/Pview.php/templates/thumb In directory usw-pr-cvs1:/tmp/cvs-serv946/templates/thumb Modified Files: footer.inc Log Message: make the thumb.php prev/next links go away when they're not needed Index: footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/thumb/footer.inc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** footer.inc 2001/07/12 09:29:00 1.9 --- footer.inc 2001/07/13 12:46:39 1.10 *************** *** 4,7 **** --- 4,11 ---- if (!empty($config['Pview']['layout']['rows'])) { + echo 'nro: "' . $kuvaidnro . '"<br>'; + echo 'row: "' . $config['Pview']['layout']['rows'] . '"<br>'; + echo 'col: "' . $config['Pview']['layout']['columns'] . '"<br>'; + if ($kuvaidnro > ($config['Pview']['layout']['rows'] * $config['Pview']['layout']['columns'])) { $prev = $pathi[i] - 1; $next = $pathi[i] + 1; *************** *** 25,28 **** --- 29,33 ---- echo '</a>'; echo '</span>'; + } } ?> |
From: Ville K. <vk...@us...> - 2001-07-12 09:29:06
|
Update of /cvsroot/pview-php/Pview.php/lib In directory usw-pr-cvs1:/tmp/cvs-serv18490/lib Modified Files: pv.php Log Message: make those prev/next links a bit smaller, imo they look nicer now Index: pv.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/lib/pv.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** pv.php 2001/07/09 08:26:01 1.5 --- pv.php 2001/07/12 09:29:00 1.6 *************** *** 21,24 **** --- 21,25 ---- $prev = $pathi[i] - 1; $next = $pathi[i] + 1; + echo '<span class="pieni">'; if (!empty($config['Pview']['layout']['rows'])) $indexpage = floor($pathi[i] / ($config['Pview']['layout']['columns'] * $config['Pview']['layout']['rows'])) . '/'; *************** *** 44,46 **** --- 45,48 ---- if ($pathi[i] < $imagecount - 1) echo '</a>'; + echo '</span>'; } |
From: Ville K. <vk...@us...> - 2001-07-12 09:29:04
|
Update of /cvsroot/pview-php/Pview.php/templates In directory usw-pr-cvs1:/tmp/cvs-serv18490/templates Modified Files: common-footer.inc Log Message: make those prev/next links a bit smaller, imo they look nicer now Index: common-footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/common-footer.inc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** common-footer.inc 2001/07/10 13:20:28 1.11 --- common-footer.inc 2001/07/12 09:29:00 1.12 *************** *** 3,9 **** <tr> <td align="center" class="pieni"> ! [ <a href="<?= $config['Pview']['path']['root'] ?>/Pview.php/"><?= $config['Pview']['title']['site'] . ' ' . $lang[$config['Pview']['lang']]['gen']['index'] ?></a> ! | <a href="<?= $config['Pview']['path']['root'] ?>/pco.php"><?= $lang[$config['Pview']['lang']]['gen']['conf'] ?></a> ]<br> ! <a href="http://pview-php.sf.net/">Pview.php <?= $config['Pview']['version'] ?></a></td> </tr> </table> --- 3,9 ---- <tr> <td align="center" class="pieni"> ! [ <a href="<?= $config['Pview']['path']['root'] ?>/Pview.php/"><?= $config['Pview']['title']['site'] . ' ' . $lang[$config['Pview']['lang']]['gen']['index'] ?></a> ! | <a href="<?= $config['Pview']['path']['root'] ?>/pco.php"><?= $lang[$config['Pview']['lang']]['gen']['conf'] ?></a> ]<br> ! [ <b><a href="http://pview-php.sf.net/">Pview.php <?= $config['Pview']['version'] ?></a></b> ]</td> </tr> </table> |
From: Ville K. <vk...@us...> - 2001-07-12 09:29:04
|
Update of /cvsroot/pview-php/Pview.php/templates/thumb In directory usw-pr-cvs1:/tmp/cvs-serv18490/templates/thumb Modified Files: footer.inc Log Message: make those prev/next links a bit smaller, imo they look nicer now Index: footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/thumb/footer.inc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** footer.inc 2001/07/09 08:26:01 1.8 --- footer.inc 2001/07/12 09:29:00 1.9 *************** *** 7,10 **** --- 7,11 ---- $next = $pathi[i] + 1; + echo '<span class="pieni">'; if ($pathi[i] >= 1) echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; *************** *** 23,26 **** --- 24,28 ---- if (($pathi[i] = 0) OR ($imagecount - 1 > $kuvaidnro - 1)) echo '</a>'; + echo '</span>'; } ?> |
From: Ville K. <vk...@us...> - 2001-07-10 13:20:31
|
Update of /cvsroot/pview-php/Pview.php/templates In directory usw-pr-cvs1:/tmp/cvs-serv27720/templates Modified Files: common-footer.inc Log Message: why do I always forget my debugging stuff on?! Index: common-footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/common-footer.inc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** common-footer.inc 2001/07/10 13:19:54 1.10 --- common-footer.inc 2001/07/10 13:20:28 1.11 *************** *** 12,18 **** # global variables for debugging ! foreach ($GLOBALS as $key=>$value) { ! print "\$GLOBALS[\"$key\"] == \"$value\"<br>"; ! } ?> --- 12,18 ---- # global variables for debugging ! #foreach ($GLOBALS as $key=>$value) { ! # print "\$GLOBALS[\"$key\"] == \"$value\"<br>"; ! #} ?> |
From: Ville K. <vk...@us...> - 2001-07-10 13:20:00
|
Update of /cvsroot/pview-php/Pview.php/templates In directory usw-pr-cvs1:/tmp/cvs-serv27466/templates Modified Files: common-footer.inc Log Message: fix pco.php redirect issue Index: common-footer.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/common-footer.inc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** common-footer.inc 2001/07/08 17:03:47 1.9 --- common-footer.inc 2001/07/10 13:19:54 1.10 *************** *** 12,18 **** # global variables for debugging ! #foreach ($GLOBALS as $key=>$value) { ! # print "\$GLOBALS[\"$key\"] == \"$value\"<br>"; ! #} ?> --- 12,18 ---- # global variables for debugging ! foreach ($GLOBALS as $key=>$value) { ! print "\$GLOBALS[\"$key\"] == \"$value\"<br>"; ! } ?> |
From: Ville K. <vk...@us...> - 2001-07-10 13:20:00
|
Update of /cvsroot/pview-php/Pview.php In directory usw-pr-cvs1:/tmp/cvs-serv27466 Modified Files: pco.php Log Message: fix pco.php redirect issue Index: pco.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/pco.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** pco.php 2001/07/09 08:26:01 1.5 --- pco.php 2001/07/10 13:19:54 1.6 *************** *** 29,34 **** setcookie('Pviewphpcookie[rows]', $form_rows, time()+31536000); ! if (isset($form_columns) OR isset($form_rows)) header("Location: $form_referer"); if (isset($Pviewphpcookie[columns]) AND $Pviewphpcookie[columns] >= 1 AND $Pviewphpcookie[columns] <= 9) --- 29,37 ---- setcookie('Pviewphpcookie[rows]', $form_rows, time()+31536000); ! if (isset($form_columns) OR isset($form_rows)) { ! if (strstr($form_referer, "pco.php/rc")) ! $form_referer = "http://" . $GLOBALS["SERVER_NAME"] . $config['Pview']['path']['root'] . "/Pview.php/"; header("Location: $form_referer"); + } if (isset($Pviewphpcookie[columns]) AND $Pviewphpcookie[columns] >= 1 AND $Pviewphpcookie[columns] <= 9) |
From: Ville K. <vk...@us...> - 2001-07-10 06:26:03
|
Update of /cvsroot/pview-php/Pview.php/doc In directory usw-pr-cvs1:/tmp/cvs-serv7335/doc Modified Files: README Log Message: updating README Index: README =================================================================== RCS file: /cvsroot/pview-php/Pview.php/doc/README,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** README 2001/06/08 13:49:11 1.4 --- README 2001/07/10 06:25:58 1.5 *************** *** 16,30 **** pco.php personal configuration script for users Pview.css style sheet ! index.php default is to redirect to Pview.php, ! but you can change it to be your ! intro page config/config.php general configuration file config/series.php image series configuration file images/ images directory images/<series>/thumb/ thumbnail images images/<series>/normal/ "big" images ! templates/ most html ! tools/convert.sh makes thumbnails ! (you need imagemagick!) ---------------------------------------------------------------------- --- 16,30 ---- pco.php personal configuration script for users Pview.css style sheet ! index.php default is to redirect to Pview.php, but ! you can change it to be your intro page config/config.php general configuration file config/series.php image series configuration file + config/lang.php language file + admin/ will be the location of web admin stuff images/ images directory images/<series>/thumb/ thumbnail images images/<series>/normal/ "big" images ! templates/* most html ! tools/convert.sh makes thumbnails (you'll need imagemagick!) ---------------------------------------------------------------------- |
From: Ville K. <vk...@us...> - 2001-07-09 11:53:03
|
Update of /cvsroot/pview-php/Pview.php/doc In directory usw-pr-cvs1:/tmp/cvs-serv25750/doc Modified Files: CHANGES Log Message: update CHANGES Index: CHANGES =================================================================== RCS file: /cvsroot/pview-php/Pview.php/doc/CHANGES,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** CHANGES 2001/07/08 11:57:48 1.7 --- CHANGES 2001/07/09 11:52:59 1.8 *************** *** 6,9 **** --- 6,10 ---- --- * pco.php inputboxes -> option lists + * moving some/all text to lang.php to allow multilingual operation * design changes |
From: Ville K. <vk...@us...> - 2001-07-09 08:26:07
|
Update of /cvsroot/pview-php/Pview.php/lib In directory usw-pr-cvs1:/tmp/cvs-serv18545/lib Modified Files: pv.php Log Message: more multilingual stuff. moving cookie remove to pco.php. Index: pv.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/lib/pv.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** pv.php 2001/06/14 09:45:00 1.4 --- pv.php 2001/07/09 08:26:01 1.5 *************** *** 18,22 **** function prevnextlinks() { ! global $pathi, $imagecount, $SCRIPT_NAME, $config; $prev = $pathi[i] - 1; $next = $pathi[i] + 1; --- 18,22 ---- function prevnextlinks() { ! global $pathi, $imagecount, $SCRIPT_NAME, $config, $lang; $prev = $pathi[i] - 1; $next = $pathi[i] + 1; *************** *** 27,31 **** echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; ! echo 'Previous'; if ($pathi[i] > 1) echo '</a>'; --- 27,31 ---- echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $prev . '/">'; ! echo $lang[$config['Pview']['lang']]['gen']['Prev']; if ($pathi[i] > 1) echo '</a>'; *************** *** 36,44 **** echo $indexpage; ! echo '">Index</a> '; if ($pathi[i] < $imagecount - 1) echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/">'; ! echo 'Next'; if ($pathi[i] < $imagecount - 1) --- 36,44 ---- echo $indexpage; ! echo '">' . $lang[$config['Pview']['lang']]['gen']['Index'] . '</a> '; if ($pathi[i] < $imagecount - 1) echo '<a href="' . $SCRIPT_NAME . '/' . $pathi[s] . '/' . $next . '/">'; ! echo $lang[$config['Pview']['lang']]['gen']['Next']; if ($pathi[i] < $imagecount - 1) |
From: Ville K. <vk...@us...> - 2001-07-09 08:26:07
|
Update of /cvsroot/pview-php/Pview.php/templates/pco In directory usw-pr-cvs1:/tmp/cvs-serv18545/templates/pco Modified Files: pco.inc Added Files: pco-rc.inc Log Message: more multilingual stuff. moving cookie remove to pco.php. --- NEW FILE: pco-rc.inc --- <div align="center" class="bold">Cookies removed.</div><p> Index: pco.inc =================================================================== RCS file: /cvsroot/pview-php/Pview.php/templates/pco/pco.inc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** pco.inc 2001/07/08 11:57:48 1.6 --- pco.inc 2001/07/09 08:26:01 1.7 *************** *** 1,5 **** - <form action="<?= $SCRIPT_NAME ?>" method="POST"> - <input type="hidden" name="form_referer" value="<?= $GLOBALS["HTTP_REFERER"] ?>"> <table cellpadding="2" cellspacing="2" border="0"> <tr> <td>Columns in thumbnail view</td> --- 1,5 ---- <table cellpadding="2" cellspacing="2" border="0"> + <form action="<?= $SCRIPT_NAME ?>" method="POST"> + <input type="hidden" name="form_referer" value="<?= $GLOBALS["HTTP_REFERER"] ?>"> <tr> <td>Columns in thumbnail view</td> *************** *** 7,11 **** <?php for ($num = 1; $num < 10; $num++) { echo ' <option'; ! if ($num == $Pviewphpcookie[columns]) echo ' selected'; echo ">$num</option>\n"; --- 7,11 ---- <?php for ($num = 1; $num < 10; $num++) { echo ' <option'; ! if ($num == $config['Pview']['layout']['columns']) echo ' selected'; echo ">$num</option>\n"; *************** *** 18,22 **** <?php for ($num = 0; $num < 10; $num++) { echo ' <option'; ! if ($num == $Pviewphpcookie[rows]) echo ' selected'; echo ">$num</option>\n"; --- 18,22 ---- <?php for ($num = 0; $num < 10; $num++) { echo ' <option'; ! if ($num == $config['Pview']['layout']['rows']) echo ' selected'; echo ">$num</option>\n"; *************** *** 29,32 **** <td><span class="pieni">Stores configuration info in a cookie.</span></td> </tr> </table> - </form> --- 29,36 ---- <td><span class="pieni">Stores configuration info in a cookie.</span></td> </tr> + </form> + <tr> + <td> </td> + <td colspan="2"><span class="pieni"><a href="<?= $SCRIPT_NAME ?>/rc/">Remove</a> this sites cookies.</span></td> + </tr> </table> |
From: Ville K. <vk...@us...> - 2001-07-09 08:26:07
|
Update of /cvsroot/pview-php/Pview.php In directory usw-pr-cvs1:/tmp/cvs-serv18545 Modified Files: image.php pco.php thumb.php Removed Files: remcookie.php Log Message: more multilingual stuff. moving cookie remove to pco.php. Index: image.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/image.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** image.php 2001/06/12 18:36:53 1.2 --- image.php 2001/07/09 08:26:01 1.3 *************** *** 13,16 **** --- 13,17 ---- include_once 'config/config.php'; include_once 'config/series.php'; + include_once 'config/lang.php'; /* include common functions */ Index: pco.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/pco.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** pco.php 2001/07/06 08:14:11 1.4 --- pco.php 2001/07/09 08:26:01 1.5 *************** *** 10,23 **** ! include_once('config/config.php'); ! include_once('config/series.php'); ! #if (!isset($form_columns) AND !isset($form_rows)) { ! # include($config['Pview']['path']['template'] . '/pco/pco.inc'); ! #} elseif (($form_columns < 1 AND $form_columns > 9)) { ! # include($config['Pview']['path']['template'] . '/pco/pco-error.inc'); ! #} ! ! if (isset($form_columns) AND $form_columns > 0 AND $form_columns < 10) setcookie('Pviewphpcookie[columns]', $form_columns, time()+31536000); --- 10,27 ---- ! include_once 'config/config.php'; ! include_once 'config/series.php'; ! include_once 'config/lang.php'; ! include_once 'lib/pv.php'; ! $pathi = expl_pathi(); ! if ($pathi[s] == 'rc') { ! setcookie('Pviewphpcookie[columns]', '', time()-20000); ! setcookie('Pviewphpcookie[rows]', '', time()-20000); ! include($config['Pview']['path']['template'] . '/common-header.inc'); ! include($config['Pview']['path']['template'] . '/pco/pco-rc.inc'); ! include($config['Pview']['path']['template'] . '/common-footer.inc'); ! exit; ! } if (isset($form_columns) AND $form_columns > 0 AND $form_columns < 10) setcookie('Pviewphpcookie[columns]', $form_columns, time()+31536000); *************** *** 27,30 **** --- 31,39 ---- if (isset($form_columns) OR isset($form_rows)) header("Location: $form_referer"); + + 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]; include($config['Pview']['path']['template'] . '/common-header.inc'); Index: thumb.php =================================================================== RCS file: /cvsroot/pview-php/Pview.php/thumb.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** thumb.php 2001/07/06 10:48:50 1.4 --- thumb.php 2001/07/09 08:26:01 1.5 *************** *** 13,16 **** --- 13,17 ---- include_once 'config/config.php'; include_once 'config/series.php'; + include_once 'config/lang.php'; /* include common functions */ --- remcookie.php DELETED --- |