Why can't displayimage.php just be called with pid? Why can't displayimage.php just be called with pid?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Why can't displayimage.php just be called with pid?

Started by ruckerz, April 26, 2006, 04:03:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruckerz

Why doesn't the following work? http://blah.blah.blah/gallery/displayimage.php?pid=XXX ? The offending code is in

if (!isset($_GET['pos'])) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);

in displayimage.php line 308.

Sure pos is missing, but if pid is defined you have everything you need to pull a picture.  The current method requires fullsize,slideshow, or pos to be defined. $pos was defined back around 261 (using only pid)

FR


Stramm

that's not the intended usage of pid
try to add &fullsize=1

Joachim Müller


Abbas Ali

....or wait for future release in which pid will replace pos ;)
Chief Geek at Ranium Systems