", $indexcontents);
$indexcontents = str_replace("", "
", $indexcontents);
$indexcontents = str_replace("", $indexcontents);
$indexcontents = str_replace("", "
", $indexcontents);
echo($indexcontents);
}
else
{
echo("Error
Index not found");
}
}
else
{
//Set your document format and path
$path = "docs/" . $_GET['page'] . ".php";
if(file_exists($path))
{
$file = fopen($path, "r") or exit("Error
Page open failed");
$title = fgets($file);
$pagetitle = fgets($file);
fclose($file);
$doc=file_get_contents($path);
$doc = str_replace("", $doc);
$doc = str_replace("", "
", $doc);
$doc = str_replace("", $doc);
$doc = str_replace("", "
", $doc);
echo($doc);
}
else
{
echo("Error
Page not found");
}
}
echo("
