Revision 144
Added by ryan about 20 years ago
| tool.php | ||
|---|---|---|
| 34 | 34 |
} |
| 35 | 35 |
|
| 36 | 36 |
// check if tool is installed |
| 37 |
$query_result=$database->query("SELECT * FROM ".TABLE_PREFIX."modules WHERE type='tool' AND name='{$_GET['tool']}'");
|
|
| 37 |
$query_result=$database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND name = '{$_GET['tool']}'");
|
|
| 38 | 38 |
if ($query_result->numRows()==0) {
|
| 39 | 39 |
header("Location: index.php");
|
| 40 | 40 |
} |
Also available in: Unified diff
Updated tool-handling code