All pastes #903948 Raw Edit

Anonymous

public php v1 · immutable
·published 2008-02-14 16:37 UTC
rendered paste body
<?php/*** Core CMS Code * Contains all the core code* 3rd party / End User code should extend this * @author James*/class cmsCore {	var $apiVerMajor = 0;	var $apiVerMinor = 0;	var $apiVerRev = 1;    function cmsCore()    {           //In here we set any vars that need to be set at API level 	}	// We should now do all the debug / warning etc functions now	function warning($msg)	{		if (DEBUG_LEVEL > 3)		{			echo "<div class=\"warning\" id=\"warning\"> ".$msg." </div>";		}	}	function fatal($msg)	{		echo "<div class=\"warning\" id=\"fatal\"> ".$msg." </div>";		die();	}	function incfile( $file )	{		if ( file_exists( $file ) )			{				include($file);			}		else			{				$this->fatal("Cant include ".$file);			}}}?>