<?php include_once('classes/check.class.php'); ?>
<?php include_once('header.php'); ?>

<div class="row">

	<div class="col-md-6">
	<?php if( protectThis("Admin") ) : ?>
		<h1 class="page-header"><?php _e('Admin only text <small>User level: 1</small>'); ?></h1>
		<p><?php _e('You will only be able to see this content if you have an <span class="label label-danger">administrator</span> user level. ')?></p>
		<pre>Super secret code that admin only can view</pre>
	<?php else : ?>
		<div class="alert alert-warning"><?php _e('Only admins can view this content.'); ?></div>
	<?php endif; ?>
	</div>

	<div class="col-md-6">
	<?php if( protectThis("Admin, Special") ) : ?>
		<h1 class="page-header"><?php _e('Why hello, special user! <small>User level: 2</small>'); ?></h1>
		<p><?php _e('You will only be able to see this content if you have a <span class="label label-info">special</span> user level. ')?></p>
	<?php else : ?>
		<div class="alert alert-warning"><?php _e('Only admins or special users can view this content.'); ?></div>
	<?php endif; ?>
	</div>

</div>

<div class="row">

	<div class="col-md-6">
	<?php if( protectThis("*") ) : ?>
		<h1 class="page-header"><?php _e('All registered users <small>User level: * </small>'); ?></h1>
		<p><?php _e('Any user level in the entire world can see this! All that matters is that you\'re logged in.')?></p>
		<pre>All signed in users view this</pre>
	<?php else : ?>
		<div class="alert alert-warning"><?php _e('Only signed in users can view what\'s hidden here!'); ?></div>
	<?php endif; ?>
	</div>

	<div class="col-md-6">
		<h1 class="page-header"><?php _e('Public content. <small>No sign in required.</small>'); ?></h1>
		<p><?php _e('When visiting this page, anyone that is not signed in will be able to view your markup. ')?></p>
		<pre>Not-so super secret code, let's let everyone view this</pre>
	</div>

</div>

<?php include_once('footer.php'); ?>