Project

General

Profile

« Previous | Next » 

Revision 536

Added by doc almost 17 years ago

Moved the admin tools from 'Settings' to the new section 'Admin-Tools'.

View differences:

index.php
123 123
								 )
124 124
						 );
125 125

  
126
// Insert tools into tool list
127
$template->set_block('main_block', 'tool_list_block', 'tool_list');
128
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool'");
129
if($results->numRows() > 0) {
130
	while($tool = $results->fetchRow()) {
131
		$template->set_var('TOOL_NAME', $tool['name']);
132
		$template->set_var('TOOL_DIR', $tool['directory']);
133
		$template->set_var('TOOL_DESCRIPTION', $tool['description']);
134
		$template->parse('tool_list', 'tool_list_block', true);
135
	}
136
} else {
137
	$template->set_var('TOOL_LIST', $TEXT['NONE_FOUND']);	
138
}
139

  
140 126
// Insert language values
141 127
$template->set_block('main_block', 'language_list_block', 'language_list');
142 128
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' order by directory");

Also available in: Unified diff