Project

General

Profile

« Previous | Next » 

Revision 1377

Added by FrankH over 13 years ago

  1. Security fix for modules jsadmin, menu_link and output_filter

View differences:

tool.php
1 1
<?php
2

  
3
// $Id$
4

  
5
// JsAdmin module for Website Baker
6
// Copyright (C) 2006, Stepan Riha
7
// www.nonplus.net
8

  
9
// modified by Swen Uth for Website Baker 2.7
10

  
11
/*
12

  
13
 Website Baker Project <http://www.websitebaker.org/>
14
 Copyright (C) 2004-2009, Ryan Djurovich
15

  
16
 Website Baker is free software; you can redistribute it and/or modify
17
 it under the terms of the GNU General Public License as published by
18
 the Free Software Foundation; either version 2 of the License, or
19
 (at your option) any later version.
20

  
21
 Website Baker is distributed in the hope that it will be useful,
22
 but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 GNU General Public License for more details.
25

  
26
 You should have received a copy of the GNU General Public License
27
 along with Website Baker; if not, write to the Free Software
28
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29

  
2
/**
3
 *
4
 * @category        modules
5
 * @package         JsAdmin
6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/modules/menu_link/save.php $
15
 * @lastmodified    $Date: 2011-01-10 13:21:47 +0100 (Mo, 10 Jan 2011) $
16
 *
30 17
*/
31 18

  
32 19
// direct access prevention
......
52 39

  
53 40
// Check if user selected what add-ons to reload
54 41
if(isset($_POST['submit']) AND $_POST['submit'] != '') {
42
	if (!$admin->checkFTAN())
43
	{
44
		$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL);
45
		exit();
46
	}
47

  
55 48
	// Include functions file
56 49
	require_once(WB_PATH.'/framework/functions.php');
57 50
	save_setting('mod_jsadmin_persist_order', isset($_POST['persist_order']));
......
90 83
  {
91 84
  ?>
92 85
   <form id="jsadmin_form" style="margin-top: 1em; display: true;" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
86
	<?php echo $admin->getFTAN(); ?>
93 87
   <table cellpadding="4" cellspacing="0" border="0">
94 88
   <tr>
95 89
	     <td colspan="2"><?php echo $MOD_JSADMIN['TXT_HEADING_B']; ?>:</td>

Also available in: Unified diff