' . "\n"; if (!isset($_GET['p'])) { $html .= '
  • ' . strtoupper(translate('home')) . '
  • ' . "\n"; } else { $html .= '
  • ' . strtoupper(translate('home')) . '
  • ' . "\n"; } foreach ($mainlinks as $key => $value) { if (isset($_GET['p']) && $_GET['p'] == $key) { $html .= '
  • ' . strtoupper($value). "
  • " . "\n"; } else { $html .= '
  • ' . strtoupper($value). "
  • " . "\n"; } } $html .= '' . "\n"; return $html; } // Display promotions function get_html_promo() { $promotion = array(); $promotion['CentOS-5 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; $promotion['CentOS-4 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; $promotion['CentOS-3 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; $promotion['CentOS-2 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; $counter = 0; $last_promotion = count($promotion) -1; echo '
    ' . "\n"; foreach ( $promotion as $key => $value ) { // Set first promoblock switch ($counter) { case 0: $html = '
    '; break; case $last_promotion: $html .= '
    '; break; default: $html .= '
    '; } $html .= '

    ' . $key . '

    ' . "\n"; $html .= '

    ' . $value . '

    ' . "\n"; $html .= '
    '; $counter++; } return $html; } function get_html_searchform() { $html = '
    '; $html .= '
    '; $html .= ''; $html .= ''; $html .= '
    '; $html .= '
    '; return $html; } // Build 404 page not found error function get_html_err($err_id = '404', $err_msg = 'Page not found', $err_descrip = '') { $html = '

    ' . $err_id . ': ' . ucfirst($err_msg) . '

    ' . "\n"; $html .= '

    ' . $err_descrip. '

    '; return $html; } ?>