';
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 'Title | ';
echo 'Date | ';
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 ''.$title.' | ';
echo ''.$mod.' | ';
echo '';
}
echo '
';
echo '
';
echo '';
}
?>