comparison pics/common.php @ 142:2ed8cf5f36bf

myrss2: fix handling of null feed title or links; miscellaneous URL updates
author paulo
date Mon, 18 Dec 2023 20:10:27 +0000
parents 2ede1c948f35
children
comparison
equal deleted inserted replaced
1:f29a608adc73 2:8ec2bc310d4d
45 45
46 sort($files, SORT_NUMERIC); 46 sort($files, SORT_NUMERIC);
47 for ($i = 0, $size = sizeof($files); $i < $size; $i++) { 47 for ($i = 0, $size = sizeof($files); $i < $size; $i++) {
48 if ($files[$i] == $getValue) { 48 if ($files[$i] == $getValue) {
49 if ($i > 0) { 49 if ($i > 0) {
50 echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" accesskey="p">'; 50 echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" ID="prev" accesskey="p">';
51 echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1] . '">'; 51 echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1] . '">';
52 echo '</A>' . "\n"; 52 echo '</A>' . "\n";
53 } 53 }
54 if ($i < $size - 1) { 54 if ($i < $size - 1) {
55 echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" accesskey="n">'; 55 echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" ID="next" accesskey="n">';
56 echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1] . '">'; 56 echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1] . '">';
57 echo '</A>' . "\n"; 57 echo '</A>' . "\n";
58 } 58 }
59 echo '<br>' . "\n"; 59 echo '<br>' . "\n";
60 echo '<A HREF="./index.php#' . $files[$i] . '">'; 60 echo '<A HREF="./index.php#' . $files[$i] . '" ID="up" accesskey="u">';
61 echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> '; 61 echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> ';
62 echo '</A>' . "\n"; 62 echo '</A>' . "\n";
63 63
64 $query = 'SELECT * FROM '. basename(getcwd()) . ' WHERE id = "' . $getValue . '"'; 64 $query = 'SELECT * FROM '. basename(getcwd()) . ' WHERE id = "' . $getValue . '"';
65 $results = mysql_query($query); 65 $results = mysql_query($query);