ob_start();
if (!isset($_GET['page']))
{
include 'district/indexnew.html';
}
else if (str_contains($_GET['page'], http, true) == 0 && str_contains($_GET['page'], ':', true) == 0 && str_contains($_GET['page'], www, true) == 0)
{
if ($_GET['page'] == 'hs/indexnew.php')
{
$_GET['page'] = 'hs/indexnew.html';
}
else if ($_GET['page'] == 'ms/indexnew.php')
{
$_GET['page'] = 'ms/indexnew.html';
}
@include ''.$_GET['page'].'';
}
else
{
print 'Sorry, the page you requested is invalid.';
}
$content = ob_get_contents();
ob_end_clean();
$pattern = "'<.*?]*?>'si";
$content = preg_replace($pattern, '', $content);
$content = str_replace('', '', $content);
$content = str_replace('', '', $content);
$content = str_replace('', '', $content);
$content = str_replace('../', '', $content);
$content = str_replace('href="=', 'href="http://www.dist228.org/index-new.php?page=', $content);
if ($section != '')
{
$content = str_replace('images/', ''.$section.'/images/', $content);
}
if (str_contains($_GET['page'], '.txt', true) > 0)
{
$content = nl2br($content);
}
print $content;
?> |
|