Update knowledgebase.php, functions and index.php