die($e->getMessage()); } } } } include 'includes/header.php'; ?> <div class="row"> <div class="large-12 columns"> <?php if (Session::exists('login')) { flashMessage(Session::flash('login')); } if (Session::exists('alert')) { flashAlert(Session::flash('alert')); } ?> </div> </div> <div class="register-card"> <h3>Log In</h3> <div class="row"> <div class="large-12 columns"> <form action="" method="POST"> <label for="username"><h5>Username <span class="required">*</span></h5> <input type="text" id="username" name="username"> </label> <label for="password"><h5>Password <span class="required">*</span></h5> <input type="password" id="password" name="password">
public function deleteConfirm($crawledContent) { if (!User::current()->isModerator()) { return Redirect::to('/user/login'); } $crawledContent->delete(); flashAlert('global.delete-succeed', 'success'); return Redirect::to('/'); }