Project

General

Profile

« Previous | Next » 

Revision 108

Added by stefan about 19 years ago

Minor cleanup.

View differences:

trunk/wb/search/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");
trunk/wb/framework/class.frontend.php
58 58
	// ugly database stuff
59 59
	var $extra_where_sql;
60 60

  
61
	function frontend() {
62
		$this->wb();
63
	}
64
	
65 61
	function page_select() {
66 62
		global $page_id,$no_intro;
67 63
		global $database;
trunk/wb/index.php
35 35

  
36 36
require_once(WB_PATH.'/framework/class.frontend.php');
37 37
// Create new frontend object
38
// Perform general initializations
39
if (!isset($wb)) $wb = new frontend();
38
$wb = new frontend();
40 39

  
41 40
// Figure out which page to display
42 41
// Stop processing if intro page was shown

Also available in: Unified diff