Revision 55
Added by stefan about 19 years ago
class.admin.php | ||
---|---|---|
36 | 36 |
header('Location: ../index.php'); |
37 | 37 |
} |
38 | 38 |
|
39 |
|
|
40 | 39 |
require_once(WB_PATH.'/framework/class.wb.php'); |
41 | 40 |
|
42 |
require_once(WB_PATH.'/framework/initialize.php'); |
|
41 |
//require_once(WB_PATH.'/framework/initialize.php');
|
|
43 | 42 |
|
44 | 43 |
// Include PHPLIB template class |
45 | 44 |
require_once(WB_PATH."/include/phplib/template.inc"); |
... | ... | |
52 | 51 |
Begin user changeable settings |
53 | 52 |
*/ |
54 | 53 |
|
54 |
|
|
55 | 55 |
class admin extends wb { |
56 | 56 |
// Authenticate user then auto print the header |
57 | 57 |
function admin($section_name, $section_permission = 'start', $auto_header = true, $auto_auth = true) { |
58 |
$this->wb(); |
|
58 | 59 |
global $MESSAGE; |
59 | 60 |
// Specify the current applications name |
60 | 61 |
$this->section_name = $section_name; |
... | ... | |
83 | 84 |
global $MESSAGE; |
84 | 85 |
global $TEXT; |
85 | 86 |
// Connect to database and get website title |
86 |
$database = new database();
|
|
87 |
$database = & $this->database;
|
|
87 | 88 |
$get_title = $database->query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = 'title'"); |
88 | 89 |
$title = $get_title->fetchRow(); |
89 | 90 |
$header_template = new Template(ADMIN_PATH."/interface"); |
Also available in: Unified diff
Removed initialize.php, moved initialization code to class wb constructor. Changed attribute no_default_content to default_block_content and changed behavior.