define("SAFEMODE", @ini_get("safe_mode") ? true : false);
define("SAFEMODE", true);
$photo_thumb = $data['photo_thumb2'] ? PHOTODIR.$data['photo_thumb2'] : "";
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
if(!file_exists(PHOTODIR.$data['photo_filename']) && file_exists(PHOTOS.$data['photo_filename'])){
$photo_thumb = $data['photo_thumb2'] ? PHOTOS.$data['photo_thumb2'] : "";
$photo_file = PHOTOS.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
}
else {
$photo_thumb = $data['photo_thumb2'] ? PHOTODIR.$data['photo_thumb2'] : "";
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
}
if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){
echo "<img src='".PHOTODIR.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
else {
echo $locale['432'];
}
if ($data['photo_thumb1'] && file_exists(PHOTODIR.$data['photo_thumb1'])){
echo "<img src='".PHOTODIR.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
elseif ($data['photo_thumb1'] && file_exists(PHOTOS.$data['photo_thumb1'])){
echo "<img src='".PHOTOS.$data['photo_thumb1']."' alt='".$data['photo_thumb1']."' title='".$locale['431']."' style='border:0px' class='photogallery_album_photo' />";
}
else {
echo $locale['432'];
}
Category Forum
Content Administration - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions