} elseif ($_GET['dl'] == 'plain') { write_plain(); } elseif (in_array($_GET['dl'], $icondesc, true)) { write_img_png($_GET['dl']); } elseif ($_GET['dl'] == 'dlfile') { write_dlfile(); } elseif ($_GET['dl'] == 'rss2') { write_rss2(); } elseif (in_array($_GET['dl'], $arrowdesc, true)) { draw_arrow($_GET['dl']); } } html_header(); html_style(); html_breadcrumbs(); html_pages(); if (isset($_GET['p'])) { html_spacer(); html_summary($_GET['p']); html_spacer(); if ($_GET['a'] == "commitdiff") { html_title("diff --git {$_GET['p']} {$_GET['h']}"); html_diff($_GET['p'], $_GET['h']); } elseif (isset($_GET['tr'])) { html_title("Files"); html_browse($_GET['p']); } } else { html_spacer(); html_home(); }
function send_the_main_page($subpage = 'submit') { if (!isset($_GET['p'])) { die; } html_header(); html_style(); html_breadcrumbs(); html_Title("COMMITTING TO {$_GET['p']}"); html_pages(); switch ($subpage) { case 'submit': send_the_submit_form(); break; case 'verify': check_verify_bundle(); break; case 'badsecret': html_spacer(); html_title("!!! Wrong secret !!!"); html_spacer(); break; } send_the_bundles_in_queue(); html_spacer(); html_footer(); die; }