1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Additional checks

This commit is contained in:
e107steved
2011-03-13 14:15:51 +00:00
parent dc42b3eca3
commit 20704a1278
4 changed files with 24 additions and 0 deletions

View File

@@ -13,6 +13,12 @@
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
$e107 = e107::getInstance();
if (!$e107->isInstalled('forum'))
{
header('Location: '.e_BASE.'index.php');
exit;
}
require_once(e_PLUGIN.'forum/forum_class.php'); require_once(e_PLUGIN.'forum/forum_class.php');
$forum = new e107forum; $forum = new e107forum;

View File

@@ -13,6 +13,12 @@
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
$e107 = e107::getInstance();
if (!$e107->isInstalled('forum'))
{
header('Location: '.e_BASE.'index.php');
exit;
}
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_post.php'); include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_post.php');

View File

@@ -13,6 +13,12 @@
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
$e107 = e107::getInstance();
if (!$e107->isInstalled('forum'))
{
header('Location: '.e_BASE.'index.php');
exit;
}
//TODO: Investigate the queries used here //TODO: Investigate the queries used here

View File

@@ -13,6 +13,12 @@
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
$e107 = e107::getInstance();
if (!$e107->isInstalled('forum'))
{
header('Location: '.e_BASE.'index.php');
exit;
}
if(!USER) if(!USER)
{ {