validate_id($id); $template->assign_if("author", 1); $info = $authors->author_profile($id); $total = $info[2]; $title = $lang['author_title'].$info[0]; $template->assign("WEBSITE", $info[1]); $content = $info[3]; $template->assign("ID", $id); } else { $template->assign_if("author_list", 1); $info = $authors->author_list(); $content = $info[0]; $total = $info[1]; $title = $lang['author_list_title']; } // Process template $template->assign("TOTAL", $total); $template->assign("CONTENT", $content); $template->assign("PAGE_TITLE", $title); $template->assign("HEAD_TITLE", $site->site_title($title, 1)); $template->pparse("layout/authors.tmpl"); ?>