<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Korea Studies | EngKorWat</title>
	<link rel="stylesheet" href="/vendors/kevquirk/simple-css/simple.min.css">
	<link rel="stylesheet" href="/style.css">
        <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
        <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
        <link rel="manifest" href="/site.webmanifest">
</head>

<body id="top">
	<header>
		<h1>Eng&middot;Kor&middot;Wat</h1>
		<p>An English Speaker&rsquo;s Korea Studies and What Not</p>
		<nav>
			<ul>
				<li><a class="current" href="/">Home</a></li>
				<li><a href="/web/coub/">On the Web</a></li>
			</ul>
		</nav>
	</header>

	<main>

<h3 id="welcome">
<script>
const locale = new Intl.Locale(navigator.language);

switch (locale.language) {
  case 'ko':
    document.write("환영합니다");
    break;
  default:
    document.write("Welcome");
}
</script>
</h3>

<p>
This homepage is a personal, part-time project of a US-born resident in South Korea.&nbsp;
<a href="/web/coub/">Quick links</a> to recent activity on the Web are available.
</p>

<aside>
<p><b>Site Updates</b></p>

                                        <dl>
                                                <dt>January 2026</dt>
                                                <dd>RSS parsing libary switched to SimplePie.</dd>
                                                <dd>Recently read items posted to the Siheung subreddit were added.</dd>
                                        </dl>
</aside>

        <p>
            The name, <a href="https://www.engkorwat.com/">EngKor Wat</a>, is a play on the name of the temple complex in Cambodia. The
            syllables that make up the name reference groupings of topics of interest for the author:
        </p>

        <dl>
            <dt>ENG</dt>
            <dd><em>English</em>: Education | Philosophy | Technology</dd>
            <dt>KOR</dt>
            <dd><em>Korean</em>: Language | Food | Culture</dd>
            <dt>WAT</dt>
            <dd><em>What</em>: Answers | Humor | Research</dd>
        </dl>

        <p>
            This website is a project developed in the free time of a computer and coding hobbyist who most recently moved to South Korea in 2018. It could grow into an online magazine, a teaching resource, or maybe a networking event page for locals, expats, travelers and visitors from around the world virtual, or otherwise.
        </p>

<section>
<h4>Recent Reads</h4>

<?php
// The autoloader path is relative to this file's location
require_once '../vendor/autoload.php';

// Initialize the counter
$i = 0;

$feed = new SimplePie();
$feed->set_feed_url('https://old.reddit.com/r/siheung/.rss');
$feed->enable_cache(true);
$feed->set_cache_location('/app/public/cache');
$feed->set_cache_duration(86400); // 1 day
$feed->set_useragent('MyCoolFeedFetcher/1.0 (https://www.engkorwat.com)');

// Initialize the feed and check for success
if ($feed->init()) {
    $feed->handle_content_type();

    echo '<ul>' . "\n";
    foreach ($feed->get_items() as $item) {
        if ($i++ >= 7) {
            break;
        }
        // Sanitize output to prevent XSS
        $link = htmlspecialchars($item->get_link(), ENT_QUOTES, 'UTF-8');
        $title = htmlspecialchars($item->get_title(), ENT_QUOTES, 'UTF-8');

        echo '<li><a href="' . $link . '">' . $title . '</a></li><br>' . "\n";
    }
    echo '</ul>';
} else {
    echo '<p>Error fetching feed. Please try again later.</p>';
}
?>

</section>

	</main>
	<footer>
		<p>Thanks for visiting!</p>
	</footer>

<script data-goatcounter="https://engkorwat.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>

</body>
</html>
