Revision 174
Added by ryan about 19 years ago
index.php | ||
---|---|---|
123 | 123 |
) |
124 | 124 |
); |
125 | 125 |
|
126 |
// Insert groups into signup list
|
|
126 |
// Insert tools into tool list
|
|
127 | 127 |
$template->set_block('main_block', 'tool_list_block', 'tool_list'); |
128 | 128 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool'"); |
129 |
$tool_list_empty=true; |
|
130 | 129 |
if($results->numRows() > 0) { |
131 | 130 |
while($tool = $results->fetchRow()) { |
132 | 131 |
$template->set_var('TOOL_NAME', $tool['name']); |
133 | 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); |
|
134 | 135 |
} |
135 | 136 |
} else { |
136 |
$template->set_var('tool_list', $TEXT['NONE_FOUND']); |
|
137 |
|
|
137 |
$template->set_var('TOOL_LIST', $TEXT['NONE_FOUND']); |
|
138 | 138 |
} |
139 |
$template->parse('tool_list', 'tool_list_block', true); |
|
140 | 139 |
|
141 |
|
|
142 | 140 |
// Insert language values |
143 | 141 |
$template->set_block('main_block', 'language_list_block', 'language_list'); |
144 | 142 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language'"); |
... | ... | |
455 | 453 |
$template->set_var('SERVER_EMAIL', SERVER_EMAIL); |
456 | 454 |
|
457 | 455 |
// Insert groups into signup list |
458 |
$template->set_block('main_block', 'tool_list_block', 'tool_list');
|
|
456 |
$template->set_block('main_block', 'group_list_block', 'group_list');
|
|
459 | 457 |
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'"); |
460 | 458 |
if($results->numRows() > 0) { |
461 | 459 |
while($group = $results->fetchRow()) { |
Also available in: Unified diff
Updated tools interface