1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Switch to include_lan()

This commit is contained in:
marj
2009-11-19 09:52:35 +00:00
parent d8436b9f18
commit 5961e8cba4
5 changed files with 90 additions and 88 deletions

View File

@@ -9,15 +9,14 @@
* Forum Posting
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $
* $Revision: 1.40 $
* $Date: 2009-11-18 01:05:36 $
* $Author: e107coders $
* $Revision: 1.41 $
* $Date: 2009-11-19 09:52:35 $
* $Author: marj_nl_fr $
*/
require_once('../../class2.php');
$lan_file = e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_post.php';
include(file_exists($lan_file) ? $lan_file : e_PLUGIN.'forum/languages/English/lan_forum_post.php');
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_post.php');
if (isset($_POST['fjsubmit']))
{

View File

@@ -9,9 +9,9 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_uploads.php,v $
* $Revision: 1.5 $
* $Date: 2009-11-18 01:05:36 $
* $Author: e107coders $
* $Revision: 1.6 $
* $Date: 2009-11-19 09:52:35 $
* $Author: marj_nl_fr $
*/
require_once("../../class2.php");
@@ -21,8 +21,7 @@ if(!USER)
header("location:".e_BASE.$PLUGINS_DIRECTORY."forum/forum.php");
exit;
}
$lan_file = e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_uploads.php';
include_once(file_exists($lan_file) ? $lan_file : e_PLUGIN.'forum/languages/English/lan_forum_uploads.php');
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_uploads.php');
if(is_array($_POST['delete']))
{

View File

@@ -9,22 +9,22 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu_config.php,v $
* $Revision: 1.4 $
* $Date: 2009-11-18 01:05:36 $
* $Author: e107coders $
* $Revision: 1.5 $
* $Date: 2009-11-19 09:52:35 $
* $Author: marj_nl_fr $
*/
$eplug_admin = TRUE;
require_once("../../class2.php");
if (!getperms("1")) {
header("location:".e_BASE."index.php");
exit ;
require_once('../../class2.php');
if (!getperms('1'))
{
header('location:'.e_BASE.'index.php');
exit();
}
require_once(e_ADMIN."auth.php");
$lan_file = e_PLUGIN."forum/languages/".e_LANGUAGE."/lan_newforumposts_menu.php";
require_once(file_exists($lan_file) ? $lan_file : e_PLUGIN."forum/languages/English/lan_newforumposts_menu.php");
require_once(e_ADMIN.'auth.php');
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_newforumposts_menu.php');
if (isset($_POST['update_menu'])) {
while (list($key, $value) = each($_POST)) {
if ($value != NFP_9) {