From 752d40ac119723885e7923fc37f2e6f0db086f21 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Fri, 25 Dec 2009 05:38:03 +0000 Subject: Debugging was incomplete. Apparently I forgot to double-check to make certain that arrays and objects were being parsed out in the correct fashion. That has been fixed, so decho will properly insert both types into the message stack. logQueueFlush can now be forced to operate if debugging is disabled globally Example: logQueueFlush(FORCE); The inital commit of the download module has been added. It works, but the MySQL back-end needs to be beefed up with more file information. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@399 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- includes/functions.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index 4518fa8..6238ec4 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -175,13 +175,13 @@ function BBCode($Text) // Images // [img]pathtoimage[/img] - $Text = preg_replace("/\[img\](.+?)\[\/img\]/", '', $Text); + $Text = preg_replace("/\[img\](.+?)\[\/img\]/", '', $Text); //[img=align]image source[/img] $Text = preg_replace("(\[img align\=(.+?)\](.+?)\[\/img\])is","",$Text); // [img=widthxheight]image source[/img] - $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '', $Text); + $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '', $Text); // Alignment // [align=type]text[/align] @@ -250,6 +250,20 @@ function LinkModule($module_name,$args = NULL,$link_name) return "{$link_name}"; } +/** + * LinkModuleFile() + * + * Helper function to link to Bayonet internal module files. + * + * @param mixed $module_name + * @param mixed $link_name + * @return + */ + function LinkModuleFile($module_name, $file_name, $link_name) + { + return "{$link_name}"; + } + /** * LinkPage() * -- cgit