anotherfile.php is loaded via jQuery.
Here is the code:
`
function exifLoad(image) {
var album = $(".zp_uneditable_album_title").html();
var postData = {
"image" : image,
"album" : album
};
$.ajax({
type: "POST",
url: "/zenphoto/themes/mytheme/anotherfile.php",
data: postData,
success: function(data){
$("#exif-panel").html(data);
}
});
}
`
And this is the changed `anotherfile.php`:
`
<?php
define('WEBPATH', '/zp-core');
require_once(dirname(dirname(dirname(__FILE__))). WEBPATH .'/functions.php');
require_once(dirname(dirname(dirname(__FILE__))). WEBPATH .'/functions-controller.php');
zp_load_gallery();
require_once(dirname(__FILE__)."/functions.php");
$image = $_POST['image'];
$album = $_POST['album'];
$galleryobject = new Gallery();
$albumobject = new Album($galleryobject, $album);
$imageobject = newImage($albumobject, $image);
//echo $image;
if (getMetaDataImage($imageobject)) {
printMetadataImage('', false);
}
?>
`
Though now it doesn't throw any error, it doesn't display any data either. Nada. Blank.