-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_function.renderBody.php
More file actions
executable file
·38 lines (37 loc) · 1.62 KB
/
Copy path_function.renderBody.php
File metadata and controls
executable file
·38 lines (37 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
// +----------------------------------------------------------------------+
// | MicroFrabster v0.9.7 |
// +----------------------------------------------------------------------+
// | Copyright (c) 2005 - 2011 Selincite.com |
// +----------------------------------------------------------------------+
// | This code is released under the Mozilla Public License Version 1.1
// | See http://www.mozilla.org/MPL/MPL-1.1.html for full details.
// | For more informatino about licensing, and/or further development |
// | we encourage you to contact us - we're not evil. :) |
// +----------------------------------------------------------------------+
// | Authors: Jocke Selin <jocke@selincite.com> |
// +----------------------------------------------------------------------+
//
/* File purpose:
Contains the logic for outputting the body of the content.
*/
function renderBody($sHTMLBody)
{
if(defined("EXEC_LOGIC")) {
if (file_exists(EXEC_LOGIC)) {
if (defined("EXEC_LOGIC_POSITION") AND (EXEC_LOGIC_POSITION == "after")) {
print($sHTMLBody);
}
include(EXEC_LOGIC);
if (defined("EXEC_LOGIC_POSITION") AND (EXEC_LOGIC_POSITION == "before")) {
print($sHTMLBody);
}
} else {
print("<!-- I tried to execute this: " . EXEC_LOGIC . ", but the file doesn't exist, so I'm reverting back to 'standard content' -->");
print($sHTMLBody);
}
} else {
print($sHTMLBody);
}
}
?>