From 8a877d047b8ddfb3e802cfdb8f982f7e32c0f2cd Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 10 Dec 2012 17:07:56 +0000 Subject: Create themes/mageia/page_header.php --- index.php | 75 +----------------------------------------- themes/mageia/page_header.php | 76 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 74 deletions(-) create mode 100644 themes/mageia/page_header.php diff --git a/index.php b/index.php index 1df967f..6bb141b 100644 --- a/index.php +++ b/index.php @@ -68,82 +68,9 @@ publish_stats_headers( (isset($_GET['last']) && $total > 0) ? reset($pkgs) : null ); -?> - - - - - <?php echo strip_tags($title); ?> - - - - - - - - -/m", file_get_contents("http://check.mageia.org/cauldron/dependencies.rss"), $matches); - $unmaintained_count = file_exists(__DIR__ . '/data/unmaintained.txt') ? count(file(__DIR__ . '/data/unmaintained.txt')) : 0; - - if ($missing_deps_count > 0 - || $unmaintained_count > 0 - ) { - if ($missing_deps_count > 0) { - $figures_list[] = sprintf('%d broken deps.', - $missing_deps_count, - 'http://check.mageia.org/cauldron/dependencies.html' - ); - } - - if ($unmaintained_count > 0) { - $figures_list[] = sprintf('%d unmaintained', - $unmaintained_count, - 'data/unmaintained.txt' - ); - } - - if (count($figures_list) > 0) - $figures_list[count($figures_list)-1] .= sprintf(' %s', - 'https://wiki.mageia.org/en/Importing_packages', - 'YES you can help!', 'pick one'); - } - - preg_match_all('/(\d+)/', file_get_contents("https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali"), $matches); - $qa_bugs = $matches[1][0]; - if ($qa_bugs > 0) { - $figures_list[] = sprintf('%d update%s to validate - %s', - $qa_bugs, - 'http://mageia.madb.org/tools/updates', - plural($qa_bugs), - 'https://wiki.mageia.org/en/QA_process_for_validating_updates', - 'YES you can help!', 'see how' - ); - } - - $html_figures = null; - if (count($figures_list) > 0) { - $html_figures = 'Packages: ' . implode(', ', $figures_list) . '.'; - } - -?> -
-

- -
-
- + + + + <?php echo strip_tags($title); ?> + + + + + + + + +/m", file_get_contents("http://check.mageia.org/cauldron/dependencies.rss"), $matches); + $unmaintained_count = file_exists(__DIR__ . '/data/unmaintained.txt') ? count(file(__DIR__ . '/data/unmaintained.txt')) : 0; + + if ($missing_deps_count > 0 + || $unmaintained_count > 0 + ) { + if ($missing_deps_count > 0) { + $figures_list[] = sprintf('%d broken deps.', + $missing_deps_count, + 'http://check.mageia.org/cauldron/dependencies.html' + ); + } + + if ($unmaintained_count > 0) { + $figures_list[] = sprintf('%d unmaintained', + $unmaintained_count, + 'data/unmaintained.txt' + ); + } + + if (count($figures_list) > 0) + $figures_list[count($figures_list)-1] .= sprintf(' %s', + 'https://wiki.mageia.org/en/Importing_packages', + 'YES you can help!', 'pick one'); + } + + preg_match_all('/(\d+)/', file_get_contents("https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali"), $matches); + $qa_bugs = $matches[1][0]; + if ($qa_bugs > 0) { + $figures_list[] = sprintf('%d update%s to validate + %s', + $qa_bugs, + 'http://mageia.madb.org/tools/updates', + plural($qa_bugs), + 'https://wiki.mageia.org/en/QA_process_for_validating_updates', + 'YES you can help!', 'see how' + ); + } + + $html_figures = null; + if (count($figures_list) > 0) { + $html_figures = 'Packages: ' . implode(', ', $figures_list) . '.'; + } + +?> +
+

+ +
+
+ -- cgit v1.2.1