Project

General

Profile

« Previous | Next » 

Revision 119

Added by stefan about 19 years ago

Implemented new module type 'tool'. Added setting section 'Tools' (advanced). Removed possibility to set permissions for all module types other than 'page'.

View differences:

groups.php
90 90
			if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/modules/$file") AND file_exists(WB_PATH."/modules/$file/info.php")) {
91 91
				// Include the modules info file
92 92
				require(WB_PATH.'/modules/'.$file.'/info.php');
93
				$template->set_var('VALUE', $file);
94
				$template->set_var('NAME', $module_name);
95
				if(!is_numeric(array_search($file, $module_permissions))) {
96
					$template->set_var('CHECKED', 'checked');
97
				} else {
98
					$template->set_var('CHECKED', '');
93
				if ($module_type=='page') {
94
					$template->set_var('VALUE', $file);
95
					$template->set_var('NAME', $module_name);
96
					if(!is_numeric(array_search($file, $module_permissions))) {
97
						$template->set_var('CHECKED', 'checked');
98
					} else {
99
						$template->set_var('CHECKED', '');
100
					}
101
					$template->parse('module_list', 'module_list_block', true);
99 102
				}
100
				$template->parse('module_list', 'module_list_block', true);
101 103
			}
102 104
		}
103 105
	}

Also available in: Unified diff