<?php
class Notif {
function message($text,$redirect){
$_SESSION['message'] = $text;
header('Location: '.$redirect);
exit;
}
function error($text,$redirect){
$_SESSION['error'] = $text;
header('Location: '.$redirect);
exit;
}
}