Exemplo n.º 1
0
<?php

use Scabbia\Extensions\Session\Session;
if (($notification = Session::getFlash('notification')) !== null) {
    ?>
    <div class="alert alert-<?php 
    echo $notification[0];
    ?>
">
        <i class="icon-<?php 
    echo $notification[1];
    ?>
"></i> <?php 
    echo implode('<br />', (array) $notification[2]);
    ?>
    </div>
<?php 
}
Exemplo n.º 2
0
 /**
  * @ignore
  */
 public static function check($uCode, $uCookieName = 'captcha')
 {
     // check the supplied code
     $tResult = Session::getFlash($uCookieName, "") === strtolower($uCode);
     // return the result
     return $tResult;
 }