Exemple #1
0
        break;
    case "del":
        if ($birthday->del($id)) {
            header("Location: /siteadmin/birthday/?year={$year}");
            exit;
        }
        $error = 'Ошибка.';
        break;
    case "accept":
    case "unaccept":
        if ($birthday->accept($id)) {
            header("Location: /siteadmin/birthday/?year={$year}");
            exit;
        }
        $error = 'Ошибка.';
        break;
    case 'close':
    case 'open':
        if ($birthday->setStatus($action)) {
            header("Location: /siteadmin/birthday/?year={$year}");
            exit;
        }
        $error = 'Ошибка.';
    default:
        break;
}
$content = "../content.php";
$inner_page = "inner_index.php";
$header = $rpath . "header.php";
$footer = $rpath . "footer.html";
include $rpath . "template.php";