*/ // get template $html = file_get_contents('./gb-template.html'); // create GuestBook object include './scripts/gb.script.inc'; $gb = new GuestBook(); // insert GB contents into template file $html = str_replace('{gb-output}', $gb->html, $html); // custom heading for admin area if ($gb->is_admin() && array_key_exists('gb_admin', $_GET)) { $html = str_replace( '

My Guestbook

', '

'.$gb->hsc_translate('gb-administration').'

', $html ); } header('content-type: text/html; charset=utf-8'); // echo page to browser echo $html; ?>