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.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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