| 41 |
exit(); |
exit(); |
| 42 |
} |
} |
| 43 |
|
|
| 44 |
|
// Generate menu of section class |
| 45 |
$buffer .= <<<MENU |
$buffer .= <<<MENU |
| 46 |
#--------------------------------------------------------------------- |
#--------------------------------------------------------------------- |
| 47 |
%S_EGROUP |
%S_EGROUP |
| 48 |
·µ»Ø[[1;32m¡û[0;37m] ½øÈë[[1;32m¡ú[0;37m] Ñ¡Ôñ[[1;32m¡ü[0;37m,[1;32m¡ý[0;37m] |
·µ»Ø[[1;32m¡û[0;37m] ½øÈë[[1;32m¡ú[0;37m] Ñ¡Ôñ[[1;32m¡ü[0;37m,[1;32m¡ý[0;37m] |
| 49 |
[44;37m [1;37mÏÂÊô°æ¿é À¸Ä¿Ãû³Æ ÖÐ ÎÄ Ðð Êö [m |
[44;37m [1;37mÏÂÊô°æ¿é À¸Ä¿Ãû³Æ ÖÐ ÎÄ Ðð Êö [m |
| 50 |
|
|
| 51 |
|
|
| 98 |
|
|
| 99 |
foreach ($section_hierachy as $c_index => $section_class) |
foreach ($section_hierachy as $c_index => $section_class) |
| 100 |
{ |
{ |
| 101 |
|
// Generate menu of sections in section_class[$c_index] |
| 102 |
$buffer .= <<<MENU |
$buffer .= <<<MENU |
| 103 |
#--------------------------------------------------------------------- |
#--------------------------------------------------------------------- |
| 104 |
%S__{$section_class["name"]} |
%S__{$section_class["name"]} |
| 105 |
·µ»Ø[[1;32m¡û[0;37m] ½øÈë[[1;32m¡ú[0;37m] Ñ¡Ôñ[[1;32m¡ü[0;37m,[1;32m¡ý[0;37m] |
·µ»Ø[[1;32m¡û[0;37m] ½øÈë[[1;32m¡ú[0;37m] Ñ¡Ôñ[[1;32m¡ü[0;37m,[1;32m¡ý[0;37m] |
| 106 |
[44;37m [1;37mÖ÷ÌâÊýÁ¿ °æ¿éÃû³Æ ÖÐ ÎÄ Ðð Êö [m |
[44;37m [1;37mÖ÷ÌâÊýÁ¿ °æ¿éÃû³Æ ÖÐ ÎÄ Ðð Êö [m |
| 107 |
|
|
| 108 |
|
|
| 158 |
|
|
| 159 |
} |
} |
| 160 |
|
|
| 161 |
|
// Generate menu of all sections |
| 162 |
|
$buffer .= <<<MENU |
| 163 |
|
#--------------------------------------------------------------------- |
| 164 |
|
%S_BOARD |
| 165 |
|
·µ»Ø[[1;32m¡û[0;37m] ½øÈë[[1;32m¡ú[0;37m] Ñ¡Ôñ[[1;32m¡ü[0;37m,[1;32m¡ý[0;37m] |
| 166 |
|
[44;37m [1;37mÖ÷ÌâÊýÁ¿ °æ¿éÃû³Æ ÖÐ ÎÄ Ðð Êö [m |
| 167 |
|
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
| 186 |
|
|
| 187 |
|
% |
| 188 |
|
#--------------------------------------------------------------------- |
| 189 |
|
%menu M_BOARD |
| 190 |
|
title 0, 0, "[°æ¿éÁбí]" |
| 191 |
|
screen 2, 0, S_BOARD |
| 192 |
|
page 4, 1, 20 |
| 193 |
|
|
| 194 |
|
MENU; |
| 195 |
|
|
| 196 |
|
$display_row = 4; |
| 197 |
|
|
| 198 |
|
foreach ($section_hierachy as $c_index => $section_class) |
| 199 |
|
{ |
| 200 |
|
$class_title_f = "[" . addslashes($section_class['title']) . "]" . str_repeat(" ", 14 - str_length($section_class['title'])); |
| 201 |
|
|
| 202 |
|
foreach ($section_class["sections"] as $s_index => $section) |
| 203 |
|
{ |
| 204 |
|
$topic_count = 0; // TODO |
| 205 |
|
|
| 206 |
|
$title_f = str_repeat(" ", 5 - intval(log10($topic_count))) . $topic_count . " £« " . |
| 207 |
|
$section['name'] . str_repeat(" ", 22 - strlen($section['name'])) . |
| 208 |
|
$class_title_f . |
| 209 |
|
addslashes($section['title']); |
| 210 |
|
|
| 211 |
|
$buffer .= <<<MENU |
| 212 |
|
@LIST_SECTION {$display_row}, 4, 1, {$section['read_user_level']}, "{$section['name']}", "{$title_f}" |
| 213 |
|
|
| 214 |
|
MENU; |
| 215 |
|
|
| 216 |
|
$display_row = 0; |
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
$buffer .= <<<MENU |
| 221 |
|
% |
| 222 |
|
|
| 223 |
|
MENU; |
| 224 |
|
|
| 225 |
unset($section_hierachy); |
unset($section_hierachy); |
| 226 |
|
|
| 227 |
mysqli_close($db_conn); |
mysqli_close($db_conn); |