コード例 #1
0
ファイル: sectionError.php プロジェクト: eserozvataf/scabbia1
<?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 
}
コード例 #2
0
ファイル: Captcha.php プロジェクト: eserozvataf/scabbia1
 /**
  * @ignore
  */
 public static function check($uCode, $uCookieName = 'captcha')
 {
     // check the supplied code
     $tResult = Session::getFlash($uCookieName, "") === strtolower($uCode);
     // return the result
     return $tResult;
 }