Hi, I'm trying to input two PHP includes into the theme.html thing. I've followed the FAQ thing, my code looking like this (only have one php inclues on here)
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
if(empty($custom_header)){
include('http://www.myurl.com/randomimage.php');
static $custom_header = ob_get_contents();
ob_clean();
}
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
$template_vars = array(
'{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'].' - '.$section,
'{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{MAIN_MENU}' => theme_main_menu(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
);
echo template_eval($template_header, $template_vars);
but I get this error when I try to load the index.php:
Parse error: parse error, unexpected '(', expecting ',' or ';' in /usr/local/psa/home/vhosts/funkymoron.net/httpdocs/gallery/themes/default/theme.php on line 779
Fatal error: Call to undefined function: theme_display_album_list_cat() in /usr/local/psa/home/vhosts/funkymoron.net/httpdocs/gallery/index.php on line 493
Thanks much in advance for any help!