PHP Classes
elePHPant
Icontem

File: lib/global.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of andreas altendorfer  >  XML Weblication  >  lib/global.php  >  Download  
File: lib/global.php
Role: Application script
Content type: text/plain
Description: Global Functions
Class: XML Weblication
XML based content management framework
Author: By
Last change:
Date: 11 years ago
Size: 704 bytes
 

Contents

Class file image Download
<?

/**
  * Global function for weblication
  * @author Andreas Altendorfer <andreas@altendorfer.at>
  * @date 2003-12-06
  */
 
 
 
function Fatal( $err ) {
    die(
"<hr><center>FATAL</center><hr>" . $err . "<hr>\n" );
  }
 
  function
Append( &$rc, $append ) {
    return(
$rc .= $append );
  }
 
  function
Remark( $msg ) {
    global
$cfg;
   
    if (
false == $cfg["remarks"] ) {
      return(
"");
    }
   
   
$rc = $cfg["remark_init"] .
         
$msg .
         
$cfg["remark_close"];
 
    return(
$rc );
  }
 
  function
Error( $msg ) {
    global
$cfg;
   
    if (
false == $cfg["errors"] ) {
      return(
"");
    }
   
   
$rc = $cfg["error_init"] .
         
$msg .
         
$cfg["error_close"];
 
    return(
$rc );
  }
 
?>