sorry but it works not realy

maybe i'm a fool but i must ask again...
now i have the following code, but i see only a white page -.-
<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once("template-functions.php");
//load extensions
$_zp_plugin_scripts = array();
$_zp_flash_player = NULL;
$curdir = getcwd();
chdir("plugins/");
$filelist = safe_glob('*'.'php');
chdir($curdir);
foreach ($filelist as $extension) {
$opt = 'zp_plugin_'.substr($extension, 0, strlen($extension)-4);
if (getOption($opt)) {
require_once("plugins" . $extension);
}
}
include'classes.php';
include'lib-auth.php';
$user='test';
$pass='test';
$pw= passwordHash($user, $pass);
echo $pw;
?>
i defined the plugins and included the lib-auth and classes.php ... the file "test" is in zenphoto/zp-core/