';
} else {
print '
';
$basepath = CACTI_PATH_INCLUDE . '/content';
$file = realpath($basepath . '/' . $page['contentfile']);
if ($file !== false && substr($file, 0, strlen($basepath)) == $basepath) {
print file_get_contents($file);
} else {
print '
The file \'' . html_escape($page['contentfile']) . '\' does not exist!!
';
}
print '';
}
bottom_footer();
} else {
raise_message('permission_denied');
header('Location: ' . $referer);
exit;
}
}