Project

General

Profile

« Previous | Next » 

Revision 1378

Added by Dietmar over 13 years ago

fixed inclusion of SecureForm
added IDNA/Punycode to wb::validate_email()

View differences:

class.admin.php
31 31

  
32 32
// Include EditArea wrapper functions
33 33
require_once(WB_PATH . '/include/editarea/wb_wrapper_edit_area.php');
34
require_once(WB_PATH . '/framework/SecureForm.php');
34 35

  
35
/*
36
Begin user changeable settings
37
*/
38 36

  
39

  
40 37
class admin extends wb {
41 38
	// Authenticate user then auto print the header
42
	function admin($section_name, $section_permission = 'start', $auto_header = true, $auto_auth = true) {
43
		$this->wb();
39
	public function __construct($section_name, $section_permission = 'start', $auto_header = true, $auto_auth = true) {
40
		parent::__construct(SecureForm::BACKEND);
44 41
		global $MESSAGE;
45 42
		// Specify the current applications name
46 43
		$this->section_name = $section_name;

Also available in: Unified diff