<?php
/**
* @author Moroz Taras (-= MTV =-)
*/
namespace functions;
$mod = (isset($_GET['mod']) ? a_filter_url($_GET['mod']) : NULL);
switch($mod) :
default:
if(a_isUser() == true) {
setcookie('id', '', time() - 86400*7, '/');
setcookie('ps', '', time() - 86400*7, '/');
exit(header('Location: /'));
} else {
exit(header('Location: /'));
}
break;
endswitch;