Commit 46aa3427 authored by Jyhem's avatar Jyhem

[SEC] Added even more security checks

parent a4f5e1ca
......@@ -10,6 +10,12 @@ require_once ('lib/tikilib.php');
require_once ('lib/blogs/bloglib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_blogs'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_blogs");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_blogs'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
......@@ -9,6 +9,12 @@ require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_file_galleries'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_file_galleries");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_file_galleries'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
......@@ -9,6 +9,12 @@ require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_forums'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_forums");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_forums'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
......@@ -10,6 +10,12 @@ require_once ('lib/tikilib.php');
require_once ('lib/imagegals/imagegallib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_galleries'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_galleries");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_image_galleries'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
......@@ -10,6 +10,12 @@ require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_maps'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_maps");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_mapfiles'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
......@@ -10,6 +10,12 @@ require_once ('lib/tikilib.php');
require_once ('lib/wiki/histlib.php');
require_once ('lib/rss/rsslib.php');
if ($prefs['feature_wiki'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_wiki");
$smarty->display("error.tpl");
die;
}
if ($prefs['rss_wiki'] != 'y') {
$errmsg=tra("rss feed disabled");
require_once ('tiki-rss_error.php');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment