From fa8180ea3a41584943dd7464eb8c3cad769d8211 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 17 Apr 2011 16:49:09 +0000 Subject: Jessus christ git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2.1@491 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- include/functions.php | 54 +++++++++++---------------------------------------- 1 file changed, 11 insertions(+), 43 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 3f1c3d2..109f11c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -330,26 +330,27 @@ if(!defined("CALLED_FROM_ADMIN")) /** * OpenContent() * Begins a Bayonet site table. + * MOVE FOR CUSTOMIZED USE FOR THEMES * @return */ - function OpenContent() +/* function OpenContent() { echo "
"; echo "
"; - } + } */ /** * CloseContent() * Closes a Bayonet site table. * @return */ - function CloseContent() + /* function CloseContent() { echo "
"; echo "
"; - } + } */ } - +/* MOVED TO THEMES function OpenBlock($title = 'New Block') { OpenContent(); @@ -361,7 +362,7 @@ function CloseBlock() { echo ""; CloseContent(); -} +} */ static $error_stack_messages = array(); //global stack of errors accumulated throughout execution function push_error_stack($message) @@ -404,9 +405,9 @@ function handle_error ($errno, $errstr, $errfile, $errline) function ReportError($message) { //WriteLog($message,BAYONET_LOG_ERROR); - OpenContent(); + //OpenContent(); echo "
Error Message
{$message}
"; - CloseContent(); + //CloseContent(); } /** @@ -421,9 +422,9 @@ function ReportError($message) function ReportHack($message) { //WriteLog($message,BAYONET_LOG_HACK); - OpenContent(); + //OpenContent(); echo "
Hacking Attempt
{$message}
"; - CloseContent(); + //CloseContent(); } /** @@ -552,39 +553,6 @@ function WriteLogBayonet($message,$flag) } } -/** - * UnderConstruction() - * - * Displays a site-wide message across the page header. - * - * @param mixed $message - * @param mixed $flag Acceptable flags are BAYONET_SITE, and BAYONET_SECTION - * @return - */ -define('BAYONET_SITE','bayonet_site'); -define('BAYONET_SECTION','bayonet_section'); -function UnderConstruction($message = NULL, $flag = BAYONET_SITE) -{ - $timestamp = date("Y-M-d h:m:s"); - OpenTable(); - switch($flag) - { - case BAYONET_SITE: - echo "Site is currently under construction : $timestamp"; - break; - case BAYONET_SECTION: - echo "Section currently under construction : $timestamp"; - } - - if(!is_null($message)) - { - echo "$message"; - } - - CloseTable(); - echo "
"; -} - /** * valid_result() * -- cgit