summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-10-10 08:29:43 +0100
committerAndrew Dolgov <[email protected]>2007-10-10 08:29:43 +0100
commitdff94f6369daefe7561d367fef8a9c75871da771 (patch)
treed07b37ea9e3050ee1b71df4eae89661bff811952 /functions.php
parent4148e809d30ac999ff6a77a55406e98c2184fe0a (diff)
add new option: ENABLE_TAGWALL
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/functions.php b/functions.php
index ea991269d..f87491d61 100644
--- a/functions.php
+++ b/functions.php
@@ -73,11 +73,13 @@
require_once 'magpierss/rss_utils.inc';
}
- include_once "tw/tw-config.php";
- include_once "tw/tw.php";
- include_once TW_SETUP . "paranoya.php";
+ if (ENABLE_TAGWALL) {
+ include_once "tw/tw-config.php";
+ include_once "tw/tw.php";
+ include_once TW_SETUP . "paranoya.php";
- $tw_parser = new twParser();
+ $tw_parser = new twParser();
+ }
function _debug($msg) {
$ts = strftime("%H:%M:%S", time());
@@ -3169,10 +3171,17 @@
$res = $str;
if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) {
- global $tw_parser;
- global $tw_paranoya_setup;
- $res = $tw_parser->strip_tags($res, $tw_paranoya_setup);
+ if (ENABLE_TAGWALL) {
+ global $tw_parser;
+ global $tw_paranoya_setup;
+
+ $res = $tw_parser->strip_tags($res, $tw_paranoya_setup);
+ } else {
+
+ $res = strip_tags_long($res, "<p><a><i><em><b><strong><blockquote><br><img><div><span>");
+
+ }
// $res = preg_replace("/\r\n|\n|\r/", "", $res);
// $res = strip_tags_long($res, "<p><a><i><em><b><strong><blockquote><br><img><div><span>");