added admin.php, and some addition in index.php and search.php