Revision 108
Added by stefan about 20 years ago
| index.php | ||
|---|---|---|
| 25 | 25 |
|
| 26 | 26 |
// Include the config file |
| 27 | 27 |
require('../config.php');
|
| 28 |
require_once(WB_PATH."/framework/class.frontend.php"); |
|
| 29 |
$wb = new frontend(); |
|
| 30 | 28 |
|
| 31 |
|
|
| 32 | 29 |
// Required page details |
| 33 | 30 |
$page_id = 0; |
| 34 | 31 |
$page_description = ''; |
| ... | ... | |
| 43 | 40 |
define('VISIBILITY', 'public');
|
| 44 | 41 |
define('PAGE_CONTENT', 'search.php');
|
| 45 | 42 |
|
| 46 |
|
|
| 47 |
// Include database class file |
|
| 48 |
require_once(WB_PATH.'/framework/class.database.php'); |
|
| 49 |
|
|
| 50 | 43 |
// Find out what the search template is |
| 51 | 44 |
$database = new database(); |
| 52 | 45 |
$query_template = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'template' LIMIT 1");
|
Also available in: Unified diff
Minor cleanup.