1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category admin
|
5
|
* @package admintools
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2004-2009, Ryan Djurovich
|
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: tool.php 1398 2011-01-20 18:44:35Z FrankH $
|
14
|
* @filesource $HeadURL: $
|
15
|
* @lastmodified $Date: $
|
16
|
*
|
17
|
*/
|
18
|
|
19
|
require('../../config.php');
|
20
|
require_once(WB_PATH.'/framework/class.admin.php');
|
21
|
require_once(WB_PATH.'/framework/functions.php');
|
22
|
|
23
|
$admin = new admin('admintools', 'admintools');
|
24
|
|
25
|
if(!isset($_GET['tool'])) {
|
26
|
header("Location: index.php");
|
27
|
exit(0);
|
28
|
}
|
29
|
|
30
|
// Check if tool is installed
|
31
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND directory = '".preg_replace("/\W/", "", $_GET['tool'])."'");
|
32
|
if($result->numRows() == 0) {
|
33
|
header("Location: index.php");
|
34
|
exit(0);
|
35
|
}
|
36
|
$tool = $result->fetchRow();
|
37
|
|
38
|
?>
|
39
|
<h4>
|
40
|
<a href="<?php echo ADMIN_URL; ?>/admintools/index.php"><?php echo $HEADING['ADMINISTRATION_TOOLS']; ?></a>
|
41
|
»
|
42
|
<?php echo $tool['name']; ?>
|
43
|
</h4>
|
44
|
<?php
|
45
|
require(WB_PATH.'/modules/'.$tool['directory'].'/tool.php');
|
46
|
|
47
|
$admin->print_footer();
|
48
|
|
49
|
?>
|