From 07253dc75c69cf585ad39a218f3f2cf97b773987 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sat, 26 Dec 2009 20:02:05 +0000 Subject: commit before joe fucks shit git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@401 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- includes/functions.php | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index 6238ec4..f0fe60e 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -29,7 +29,7 @@ function bbcode_format ($str) { $str = htmlentities($str); $str = strip_tags($str); - $str = wordwrap($str,100,"\n",true); + //$str = wordwrap($str,100,"\n",true); $simple_search = array( '/\[b\](.*?)\[\/b\]/is', @@ -247,7 +247,8 @@ function LinkList($array) */ function LinkModule($module_name,$args = NULL,$link_name) { - return "{$link_name}"; + + return "{$link_name}"; } /** @@ -297,29 +298,43 @@ if(!defined("CALLED_FROM_ADMIN")) { /** * OpenTable() - * * Begins a Bayonet site table. - * * @return */ function OpenTable() { //width="100%" is important. Otherwise all of our tables will be text width. - //echo "\n"; - echo "
"; - echo "
"; + echo "
\n"; } /** * CloseTable() - * * Closes a Bayonet site table. - * * @return */ function CloseTable() { //echo "
"; + } + + /** + * OpenContent() + * Begins a Bayonet site table. + * @return + */ + function OpenContent() + { + echo "
"; + echo "
"; + } + + /** + * CloseContent() + * Closes a Bayonet site table. + * @return + */ + function CloseContent() + { echo "
"; echo "
"; } @@ -327,7 +342,7 @@ if(!defined("CALLED_FROM_ADMIN")) function OpenBlock($title = 'New Block') { - OpenTable(); + OpenContent(); echo "
{$title}
"; echo "
"; } @@ -335,7 +350,7 @@ function OpenBlock($title = 'New Block') function CloseBlock() { echo "
"; - CloseTable(); + CloseContent(); } static $error_stack_messages = array(); //global stack of errors accumulated throughout execution @@ -375,9 +390,9 @@ function handle_error ($errno, $errstr, $errfile, $errline) function ReportError($message) { //WriteLog($message,BAYONET_LOG_ERROR); - OpenTable(); + OpenContent(); echo "
Error Message
{$message}
"; - CloseTable(); + CloseContent(); } /** @@ -587,7 +602,7 @@ function GetBlocks($position = BLOCK_LEFT) if(file_exists($load)) { OpenBlock($block['title']); - include $load; + include_once $load; CloseBlock(); decho("'{$block['dir_name']}' block loaded"); } -- cgit