on the older version of the zenphoto I simply had the functions included on the external page of the zenphoto
<?
define('SERVERPATH',str_replace('\\','/',dirname(__FILE__)).'/galeria');
require_once(SERVERPATH.'/zp-core/template-functions.php');
require_once(SERVERPATH . "/zp-core/zp-extensions/image_album_statistics.php"); ?>
then I've putted: <?php printlatestImages(12); ?>
and that worked fine untill I've uptaded the zenphoto. now it shows the file names, but the link to the pictures is wrong (not showing "/galeria").