set_include_path('articles/');
if (isset($_GET['p'])) {
$article_content = file_get_contents($_GET['p'], 1);
# 使用strpos()函数检查读取的文章内容是否以“PREMIUM”或“FREE”开头
if (strpos($article_content, 'PREMIUM') === 0) {
die('Thank you for your interest in The idek Times, but this article is only for premium users!'); // TODO: implement subscriptions
else if (strpos($article_content, 'FREE') === 0) {
echo "<article>$article_content</article>";