<?php

function activeMenu($page)
{
    $current = basename($_SERVER['PHP_SELF']);

    if ($current == $page) {
        return 'active';
    }

    return '';
}


function siteTitle($title = '')
{
    if (!empty($title)) {
        return $title . ' | ' . SITE_NAME;
    }

    return SITE_NAME;
}


function sanitize($value)
{
    return htmlspecialchars(trim($value));
}

?>