<?php
if (isset($_COOKIE['test'])){
    include __DIR__ . '/public/index.php';
}else {
    include __DIR__ . '/public/registration.php';
}