Code Duplication    Length = 5-5 lines in 3 locations

table-output.php 3 locations

@@ 79-83 (lines=5) @@
76
			print '<th class="distance"><a href="'.$page_url.'&sort=distance_desc" class="active"><span class="nomobile">'._("Distance").'</span><span class="mobile">'._("Distance").'</span></a> <i class="fa fa-sort small"></i></th>';
77
		}
78
	}
79
	if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS)) {
80
		print '<th class="pilot"><span class="nomobile">'._("Pilot name").'</span><span class="mobile">'._("Pilot").'</span></a></th>';
81
	} else {
82
		print '<th class="owner"><span class="nomobile">'._("Owner name").'</span><span class="mobile">'._("Owner").'</span></a></th>';
83
	}
84
	if ($_GET['sort'] == "date_asc")
85
	{
86
		print '<th class="time"><a href="'.$page_url.'&sort=date_desc" class="active">'._("Date").'</a> <i class="fa fa-caret-up"></i></th>';
@@ 203-207 (lines=5) @@
200
			print '<th class="arrival"><span class="nomobile">'._("Flying to").'</span><span class="mobile">'._("To").'</span></th>';
201
		}                                               
202
		print '<th class="route"><span class="nomobile">'._("Route").'</span><span class="mobile">'._("Route").'</span></th>';
203
		if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS)) {
204
			print '<th class="pilot"><span class="nomobile">'._("Pilot name").'</span><span class="mobile">'._("Pilot").'</span></a></th>';
205
		} else {
206
			print '<th class="owner"><span class="nomobile">'._("Owner name").'</span><span class="mobile">'._("Owner").'</span></a></th>';
207
		}
208
		
209
		if (strtolower($current_page) == "date")
210
		{
@@ 292-296 (lines=5) @@
289
			print '<th class="arrival"><a href="'.$page_url.'/'.$limit_start.','.$limit_end.'/airport_arrival_asc"><span class="nomobile">'._("Flying to").'</span><span class="mobile">'._("To").'</span></a> <i class="fa fa-sort small"></i></th>';
290
		}
291
		print '<th class="routestop"><span class="nomobile">'._("Route stop").'</span><span class="mobile">Stop</span></a></th>';
292
		if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS)) {
293
			print '<th class="pilot"><span class="nomobile">'._("Pilot name").'</span><span class="mobile">'._("Pilot").'</span></a></th>';
294
		} else {
295
			print '<th class="owner"><span class="nomobile">'._("Owner name").'</span><span class="mobile">'._("Owner").'</span></a></th>';
296
		}
297
		if (strtolower($current_page) == "date")
298
		{
299
			if ($_GET['sort'] == "date_asc")