'; echo ''; $file = $_SERVER['PHP_SELF']; if ($file == "/home.php") { echo 'Search All Posts'; } else { echo 'Search All Posts in '.$_SESSION['title'].''; } echo ''; echo ''; } function archive ($includearr) { $searches = isset($_GET['search']) ? explode(" ", trim($_GET['search'])) : null; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach ($includearr as $post) { $link = $post[0]; $mod = $post[1]; $title = file_get_contents($link); $linkarr = explode("/", $link); $linkarr[sizeof($linkarr) - 1] = "_index.php?post=" . $linkarr[sizeof($linkarr) - 1]; $link = implode("/", $linkarr); $title = explode('

', $title)[1]; $title = explode(''; echo '

'; echo ''; echo ''; } echo '
TitleDate
'.$title.''.$mod.'
'; echo '
'; echo ''; } ?>