PHP Classes

File: fwphp/glomodul/blog_akram/Include/Sessions.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/blog_akram/Include/Sessions.php   Download  
File: fwphp/glomodul/blog_akram/Include/Sessions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: ver 11.0.2.0 mnu, adrs, msg, mkd. Same module db adapter for any shared db adapter
ver 11.0.1.0 mnu, adrs, msg, mkd. Same module db adapter for any shared db adapter
Date: 1 year ago
Size: 866 bytes
 

Contents

Class file image Download
<?php
session_start
();


function
Message(){
    if(isset(
$_SESSION["ErrorMessage"])){
      if (
is_array($_SESSION['ErrorMessage'])) $_SESSION['ErrorMessage'] = '' ;
      
$Output="<div class=\"alert alert-danger\">" ;
      
$Output.=escp($_SESSION["ErrorMessage"]);
      
$Output.="</div>";
      
$_SESSION["ErrorMessage"]=null;
       return
$Output;
       
       
    }
}


function
SuccessMessage(){
    if(isset(
$_SESSION['SuccessMessage'])){
       if (
is_array($_SESSION['SuccessMessage'])) $_SESSION['SuccessMessage'] = '' ;
           
//echo '<pre><b>ses_suc_msg=</b>='; print_r($_SESSION['SuccessMessage']); echo '</pre>';
      
$Output="<div class=\"alert alert-success\">" ;
      
$Output.=escp($_SESSION['SuccessMessage']);
      
$Output.="</div>";
      
$_SESSION['SuccessMessage']=null;
       return
$Output;
       
       
    }
}