$subfunction = isset($_GET['s']) ? $_GET['s'] : null;
if (($function && $function == 'show' && !$subfunction) ||
($function && $function == 'add' && $subfunction) ||
$subfunction = isset($_GET['s']) ? $_GET['s'] : null;
if (($function && $function == 'show' && !$subfunction) ||
($function && $function == 'add' && $subfunction) ||
header('Location: index.php');
} else if($function == 'show') {
if ($subfunction == 'all') {
$list = $util->makeRestCall('/show');
if ($list) {
header('Location: index.php');
} else if($function == 'show') {
if ($subfunction == 'all') {
$list = $util->makeRestCall('/show');
if ($list) {