Ejemplo n.º 1
0
 function decrypt($text)
 {
     $key = System\Config::get("App", "AppKey");
     $data = base64_decode($text);
     $iv = substr($data, 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC));
     return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, hash('sha256', $key, true), substr($data, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)), MCRYPT_MODE_CBC, $iv), "");
 }
Ejemplo n.º 2
0
<body>
	<div id="header">
		<?php 
$messages = array("We're lost.", "This doesn't look familiar.", "We need a map.");
$message = $messages[mt_rand(0, 2)];
?>

		<h1 class="laravel"><?php 
echo $message;
?>
</h1>
	</div>

	<div id="wrapper">
		<?php 
$apologies = array("This is embarrassing.", "Don't give up on us.", "We're really sorry.");
$apology = $apologies[mt_rand(0, 2)];
?>

		<h2><?php 
echo $apology;
?>
</h2>

		<p>We couldn't find the resource you requested. Would you like go to our <a href="<?php 
echo System\Config::get('application.url');
?>
">home page</a> instead?</p>
	</div>
</body>
</html>