function draw_number_line($x, $y, $start, $end, $dx, $dy) { global $font_size; $arrow_start_x = $arrow_end_x = $arrow_end_y = 0; $arrow_start_y = 0; for ($n = $start; $n <= $end; $n++) { $box = write_number($x, $y, $n); if ($arrow_start_x) { if ($dx > 0) { $arrow_end_x = $box[0] - $box[2] / 2; } else { $arrow_end_x = $box[0] + $box[2] / 2; } draw_arrow($arrow_start_x, $arrow_start_y, $arrow_end_x, $arrow_start_y + $dy); } $arrow_start_x = $dx > 0 ? $box[0] + $box[2] / 2 : $box[0] - $box[2] / 2; $arrow_start_y = $box[1]; $x += $dx; $y += $dy; } return array($x, $y, $box[0], $box[1] + $box[3] / 2, $box[3]); }
} if (isset($_GET['dl'])) { if ($_GET['dl'] == 'targz') { write_targz(get_repo_path($_GET['p'])); } elseif ($_GET['dl'] == 'zip') { write_zip(get_repo_path($_GET['p'])); } 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");