toward the bottom of detail.php change
to the followingCode:$title = str_replace("<%link_title%>",$link_title,$title); DisplayTemplate($theme_path."header.html","\$title,\$cat");
Code:$title = str_replace("<%link_title%>",$link_title,$title); $users_obj = new clsUsers; $users_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName); $users_obj->table_name = "idx_users"; if(!$users_obj->GetUserAuthentication()==0){ $back_url = urlencode("detail.php?id=$id"); header("Location: login.php?f=1&b=$back_url"); } DisplayTemplate($theme_path."header.html","\$title,\$cat");



