$interface = new databaseInterface();
if (isset($_GET['art_id'])) {
    if (isset($_GET['typ'])) {
        $typ = htmlspecialchars($_GET['typ']);
    }
    $art_id = htmlspecialchars($_GET['art_id']);
    if ($typ == 'blog') {
        $typ = 'blog_items';
    } else {
        if ($typ == 'project') {
            $typ = 'project_items';
        }
    }
    $article = $interface->getById($art_id, $typ);
    $tags_array = explode(":", $article[0]["tags"]);
    $interface->addView($art_id, $typ);
}
if (isset($_GET['typ'])) {
    $typ = htmlspecialchars($_GET['typ']);
}
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title></title>
        <meta name="generator" content="Responsive Web Css (www.responsivewebcss.com)" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="<?php 
echo $article[0]['description'];