Menu

#15 Can't install

open
nobody
None
5
2002-12-27
2002-12-27
Anonymous
No

Am I the only one that can't get this to work at all? I
untarred to my html directory, I typed make suid, and
when I try to load up the index.php file I get the
craziness I have pasted below. Did I miss a step?

"* Copyright (C) 2000 Robert A. Holak * * This program
is free software; you can redistribute it and/or *
modify it under the terms of the GNU General Public
License as * published by the Free Software Foundation;
either version 2 of * the License, or (at your option)
any later version. * * This program is distributed in
the hope that it will be useful, * but WITHOUT ANY
WARRANTY; without even the implied warranty of *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the * GNU General Public License for more details.
* * You should have received a copy of the GNU General
Public License * along with this program; if not, write
to the Free Software * Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA * 02111-1307 USA */
include("common.inc"); if (! $album) { $albumname =
"Albums"; } else { $albumname = $album; } ?>

0) { print "<-- "; } if ($totalfiles) { print "Images
" .($start + 1) . "-" . min($totalfiles, $start +
$items_per_page) . " of " . $totalfiles . "\n"; } else
{ print "No images"; } # XXX: Gah, hack, bleh. for ($x
= $start; $x < $start + $items_per_page and
$filelist[$x]; $x++); if ($totalfiles > $x) { print "
-->"; } ?>

\n"; $fd = fopen($descfile, "r"); while (! feof($fd)) {
$buffer = fgets($fd, 4096); print $buffer; }
fclose($fd); print "\n"; } ?> \n"; $thisdir = $album;
if ($thisdir) { $thisdir .= "/"; } reset($dirlist);
$album_img_size = GetImageSize($album_img); while
(list(, $dirname) = each($dirlist)) { # XXX: Look for a
user-provided thumbnail in the cache
DisplayImage($htmlbase.$albumpath.$userstring."album="
. urlencode("${thisdir}${dirname}") .
"&dispsize=$dispsize&start=0", $htmlbase.$album_img,
$album_img_size[0], $album_img_size[1], $dirname,
'album'); } PadTable("album"); } if
(is_array($filelist)) { print "\n"; $unknown_url_size =
GetImageSize($unknown_url); for ($x = $start; $x <
$start + $items_per_page and $filelist[$x]; $x++) {
$file = $filelist[$x]; $sourcefile =
$realpixbase.$album."/".$file; $sourcehttp =
$htmluserbase."$pix_base/$album/$file"; $thumbpic =
"${file}__scaled_${thumb_size}.jpg"; $thumbfile =
$cache_base."/".$usercachebase.$album."/".$thumbpic;
$ret = CreateImage($thumb_size, $sourcefile,
$thumbfile); if ($ret == -1) { $url =
$htmlbase.$unknown_url; $thumbsize = $unknown_url_size;
} else { $url = urlencode_url($htmlbase.$thumbfile);
$thumbsize = GetImageSize($thumbfile); }
DisplayImage($htmlbase.$viewpath.$userstring."album=" .
urlencode($album) . "&pic=" . urlencode($file) .
"&dispsize=$dispsize&start=$start&picindex=$x", $url,
$thumbsize[0], $thumbsize[1], $file); } PadTable(); } ?>

$items_per_page) { ?> 0) { print "\n"; } for ($i =
max(0, $start - 10 * $items_per_page); $i <
min($totalfiles,$start + 10 * $items_per_page); $i +=
$items_per_page) { if (($start >= $i) and ($start < $i
+ $items_per_page)) { print "\n"; } else { print "\n";
} } if ($totalfiles > $x) { print "\n"; } ?>

Album page:
"; print "<--"; print "
"; print ($i/$items_per_page) + 1; print "
"; print "" . (($i/$items_per_page) + 1) . ""; print "
"; print "-->"; print "

Generated by PHPix "

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.