| @@ 349-357 (lines=9) @@ | ||
| 346 | } |
|
| 347 | ||
| 348 | switch ($op) { |
|
| 349 | case 'flagForm': |
|
| 350 | xoops_cp_header(); |
|
| 351 | $index_admin = new ModuleAdmin(); |
|
| 352 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 353 | //xfguestbook_admin_menu(2); |
|
| 354 | flagForm($country_code); |
|
| 355 | include __DIR__ . '/admin_footer.php'; |
|
| 356 | //xoops_cp_footer(); |
|
| 357 | break; |
|
| 358 | case 'flagUpload': |
|
| 359 | flagUpload($country_code); |
|
| 360 | break; |
|
| @@ 367-375 (lines=9) @@ | ||
| 364 | case 'countryDel': |
|
| 365 | countryDel($country_id); |
|
| 366 | break; |
|
| 367 | case 'countryEdit': |
|
| 368 | xoops_cp_header(); |
|
| 369 | $index_admin = new ModuleAdmin(); |
|
| 370 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 371 | //xfguestbook_admin_menu(2); |
|
| 372 | countryForm($country_id); |
|
| 373 | include __DIR__ . '/admin_footer.php'; |
|
| 374 | //xoops_cp_footer(); |
|
| 375 | break; |
|
| 376 | case 'countrySave': |
|
| 377 | countrySave($country_id, $country_code, $country_name); |
|
| 378 | break; |
|
| @@ 379-387 (lines=9) @@ | ||
| 376 | case 'countrySave': |
|
| 377 | countrySave($country_id, $country_code, $country_name); |
|
| 378 | break; |
|
| 379 | case 'countryAdd': |
|
| 380 | xoops_cp_header(); |
|
| 381 | $index_admin = new ModuleAdmin(); |
|
| 382 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 383 | //xfguestbook_admin_menu(2); |
|
| 384 | countryForm(); |
|
| 385 | include __DIR__ . '/admin_footer.php'; |
|
| 386 | //xoops_cp_footer(); |
|
| 387 | break; |
|
| 388 | case 'countryShow': |
|
| 389 | default: |
|
| 390 | xoops_cp_header(); |
|
| @@ 389-398 (lines=10) @@ | ||
| 386 | //xoops_cp_footer(); |
|
| 387 | break; |
|
| 388 | case 'countryShow': |
|
| 389 | default: |
|
| 390 | xoops_cp_header(); |
|
| 391 | $index_admin = new ModuleAdmin(); |
|
| 392 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 393 | //xfguestbook_admin_menu(2); |
|
| 394 | countryShow(); |
|
| 395 | countryForm(); |
|
| 396 | include __DIR__ . '/admin_footer.php'; |
|
| 397 | //xoops_cp_footer(); |
|
| 398 | break; |
|
| 399 | } |
|
| 400 | ||
| @@ 177-185 (lines=9) @@ | ||
| 174 | } |
|
| 175 | ||
| 176 | switch ($op) { |
|
| 177 | case 'badIpForm': |
|
| 178 | xoops_cp_header(); |
|
| 179 | $index_admin = new ModuleAdmin(); |
|
| 180 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 181 | //xfguestbook_admin_menu(3); |
|
| 182 | badIpForm($ip_id); |
|
| 183 | include __DIR__ . '/admin_footer.php'; |
|
| 184 | //xoops_cp_footer(); |
|
| 185 | break; |
|
| 186 | case 'badIpDel': |
|
| 187 | badIpDel($ip_id); |
|
| 188 | break; |
|
| @@ 189-197 (lines=9) @@ | ||
| 186 | case 'badIpDel': |
|
| 187 | badIpDel($ip_id); |
|
| 188 | break; |
|
| 189 | case 'badIpEdit': |
|
| 190 | xoops_cp_header(); |
|
| 191 | $index_admin = new ModuleAdmin(); |
|
| 192 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 193 | //xfguestbook_admin_menu(3); |
|
| 194 | badIpForm($ip_id); |
|
| 195 | include __DIR__ . '/admin_footer.php'; |
|
| 196 | //xoops_cp_footer(); |
|
| 197 | break; |
|
| 198 | case 'badIpSave': |
|
| 199 | badIpSave($ip_id, $ip_value); |
|
| 200 | break; |
|
| @@ 201-209 (lines=9) @@ | ||
| 198 | case 'badIpSave': |
|
| 199 | badIpSave($ip_id, $ip_value); |
|
| 200 | break; |
|
| 201 | case 'badIpAdd': |
|
| 202 | xoops_cp_header(); |
|
| 203 | $index_admin = new ModuleAdmin(); |
|
| 204 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 205 | //xfguestbook_admin_menu(3); |
|
| 206 | badIpForm(); |
|
| 207 | include __DIR__ . '/admin_footer.php'; |
|
| 208 | //xoops_cp_footer(); |
|
| 209 | break; |
|
| 210 | case 'badIpShow': |
|
| 211 | default: |
|
| 212 | xoops_cp_header(); |
|
| @@ 211-220 (lines=10) @@ | ||
| 208 | //xoops_cp_footer(); |
|
| 209 | break; |
|
| 210 | case 'badIpShow': |
|
| 211 | default: |
|
| 212 | xoops_cp_header(); |
|
| 213 | $index_admin = new ModuleAdmin(); |
|
| 214 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 215 | //xfguestbook_admin_menu(3); |
|
| 216 | badIpShow(); |
|
| 217 | badIpForm(); |
|
| 218 | include __DIR__ . '/admin_footer.php'; |
|
| 219 | //xoops_cp_footer(); |
|
| 220 | break; |
|
| 221 | } |
|
| 222 | ||
| @@ 371-379 (lines=9) @@ | ||
| 368 | break; |
|
| 369 | ||
| 370 | case 'show': |
|
| 371 | default: |
|
| 372 | xoops_cp_header(); |
|
| 373 | $index_admin = new ModuleAdmin(); |
|
| 374 | echo $index_admin->addNavigation(basename(__FILE__)); |
|
| 375 | //xfguestbook_admin_menu(0); |
|
| 376 | show(); |
|
| 377 | include __DIR__ . '/admin_footer.php'; |
|
| 378 | //xoops_cp_footer(); |
|
| 379 | break; |
|
| 380 | } |
|
| 381 | ||