Project

General

Profile

« Previous | Next » 

Revision 1806

Added by Dietmar about 12 years ago

  1. Bugfix double header in admintools

View differences:

tool.php
23 23

  
24 24
if(!class_exists('admin', false)){
25 25
    include(WB_PATH.'/framework/class.admin.php');
26
    $admin = new admin('Admintools','admintools');
26
    $admin = new admin('Admintools','admintools',false);
27 27
}
28 28

  
29 29
require_once(WB_PATH.'/framework/functions.php');
30 30

  
31 31
$toolDir = (isset($_GET['tool']) && (trim($_GET['tool']) != '') ? trim($_GET['tool']) : '');
32
$doSave = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save'));
32
$doSave  = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save'));
33 33

  
34 34
// test for valid tool name
35 35
	if(preg_match('/^[a-z][a-z_\-0-9]{2,}$/i', $toolDir)) {

Also available in: Unified diff