| 1 |
536
|
doc
|
<?php
|
| 2 |
1398
|
FrankH
|
/**
|
| 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$
|
| 14 |
|
|
* @filesource $HeadURL: $
|
| 15 |
|
|
* @lastmodified $Date: $
|
| 16 |
|
|
*
|
| 17 |
|
|
*/
|
| 18 |
536
|
doc
|
|
| 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 |
1398
|
FrankH
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND directory = '".preg_replace("/\W/", "", $_GET['tool'])."'");
|
| 32 |
536
|
doc
|
if($result->numRows() == 0) {
|
| 33 |
|
|
header("Location: index.php");
|
| 34 |
|
|
exit(0);
|
| 35 |
|
|
}
|
| 36 |
|
|
$tool = $result->fetchRow();
|
| 37 |
|
|
|
| 38 |
|
|
?>
|
| 39 |
944
|
Ruebenwurz
|
<h4>
|
| 40 |
536
|
doc
|
<a href="<?php echo ADMIN_URL; ?>/admintools/index.php"><?php echo $HEADING['ADMINISTRATION_TOOLS']; ?></a>
|
| 41 |
1035
|
Ruebenwurz
|
»
|
| 42 |
536
|
doc
|
<?php echo $tool['name']; ?>
|
| 43 |
|
|
</h4>
|
| 44 |
|
|
<?php
|
| 45 |
|
|
require(WB_PATH.'/modules/'.$tool['directory'].'/tool.php');
|
| 46 |
|
|
|
| 47 |
|
|
$admin->print_footer();
|
| 48 |
|
|
|
| 49 |
|
|
?>
|