if (isset($_POST['action'])) {
    switch ($_POST['action']) {
        case 'update-author':
            if ($_POST['new-password'] == $_POST['conf-password']) {
                $auth = new CreateAuthor();
                $message = $auth->getMessage();
            } else {
                $message = "Your passwords didn't match";
            }
            break;
        case 'delete-author':
            $conn->dbDelete('author', 'username', $_POST['forDeletion']);
            $message = "Author " . $_POST['forDeletion'] . " Deleted";
            break;
        case 'set-showcase':
            $conn->dbUpdate('setup', 'article_id', $_POST['showcaseSelected'], 'layout', 'setup');
            break;
    }
}
$setup = $conn->dbSelect('setup', 'layout', 'setup');
?>

<div class="cwiki-admin">
    <img class="ci-portrait" src="images/sig-background-p.png">
    <img class="ci-landscape" src="images/sig-background.png">

    <div class="cwiki-body c-gen-body">
        <div class="cwiki-text c-gen-text back-trans fc-white">
            <?php 
echo $message;
?>