PDA

View Full Version : No panorama display with PTcrypt activated


TomKa
31st of January 2004 (Sat), 10:14
Hi Pekka,
there is a problem displaying encrypted panoramas with PTcrypt in beta5. It gets the file with the extension jpa, but the picture is only displayed in flat mode. Panorama mode is activated for the picture in the photo editor, and in misc settings i have activated PTCrypt on and Use Panorama Tools Java Viewer.

I have tried to change something around the lines starting with line 1936 in photo.php with no luck.

starting with line 1936:

if ($s_try_pt_crypt == "1") {
$s_use_pt_flat = "0";
$s_use_pt_pano = "0";
$s_ftp_view = "0";
$crypt_url = str_replace(".jpg",".jpa",$url);
if (@$crypt_exists = @fopen($crypt_url,"rb")) {
$viewertype = "pt_crypt";
@fclose($crypt_exists);
}
}

if ($s_use_pt_flat == "1") {
$viewertype = "pt_flat";
$s_try_pt_crypt = "0";
$s_ftp_view = "0";
}
if ($photo_panorama == "yes") {
if ($s_use_pt_pano == "1") $viewertype = "pt_pano";
$s_ftp_view = "0";
$s_try_pt_crypt = "0";


do you have any hint for me what I have to change?
Or maybe I better wait for the final version 1.5 before changing something...

Pekka
31st of January 2004 (Sat), 12:18
Can you mail me one crypted panorama to test with?