Revision 1805
Added by Dietmar about 12 years ago
tool.php | ||
---|---|---|
14 | 14 |
* @lastmodified $Date$ |
15 | 15 |
* |
16 | 16 |
*/ |
17 |
require('../../config.php'); |
|
18 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
17 |
|
|
18 |
$config_file = realpath('../../config.php'); |
|
19 |
if(file_exists($config_file) && !defined('WB_URL')) |
|
20 |
{ |
|
21 |
require_once($config_file); |
|
22 |
} |
|
23 |
|
|
24 |
if(!class_exists('admin', false)){ |
|
25 |
include(WB_PATH.'/framework/class.admin.php'); |
|
26 |
$admin = new admin('Admintools','admintools'); |
|
27 |
} |
|
28 |
|
|
19 | 29 |
require_once(WB_PATH.'/framework/functions.php'); |
20 | 30 |
|
21 |
$toolDir = (isset($_GET['tool']) && (trim($_GET['tool']) != '') ? trim($_GET['tool']) : ''); |
|
22 |
$doSave = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save')); |
|
31 |
$toolDir = (isset($_GET['tool']) && (trim($_GET['tool']) != '') ? trim($_GET['tool']) : ''); |
|
32 |
$doSave = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save')); |
|
33 |
|
|
23 | 34 |
// test for valid tool name |
24 | 35 |
if(preg_match('/^[a-z][a-z_\-0-9]{2,}$/i', $toolDir)) { |
25 | 36 |
// Check if tool is installed |
Also available in: Unified diff
! show more information in awaiting activation /admin/users
! set input passord to autocomplete off /admin/users and /admin/prfeferences
! add Timezone abbreviation to time format
! change time and date formats fill with leading zeros
! optimize REQUEST_METHOD to get page_id and section_id
! more request vars are possible by this method