Exemplo n.º 1
0
                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">
Exemplo n.º 2
0
 public function deleteConfirm($crawledContent)
 {
     if (!User::current()->isModerator()) {
         return Redirect::to('/user/login');
     }
     $crawledContent->delete();
     flashAlert('global.delete-succeed', 'success');
     return Redirect::to('/');
 }