Code Duplication    Length = 27-27 lines in 2 locations

other/install.php 1 location

@@ 287-313 (lines=27) @@
284
	}
285
286
	// Didn't find any, show an error message!
287
	if (empty($incontext['detected_languages']))
288
	{
289
		// Let's not cache this message, eh?
290
		header('expires: Mon, 26 Jul 1997 05:00:00 GMT');
291
		header('last-modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
292
		header('cache-control: no-cache');
293
294
		echo '<!DOCTYPE html>
295
<html>
296
	<head>
297
		<title>SMF Installer: Error!</title>
298
		<style>
299
			body {
300
				font-family: sans-serif;
301
				max-width: 700px; }
302
		
303
			h1 {
304
				font-size: 14pt; }
305
306
			.directory {
307
				margin: 0.3em;
308
				font-family: monospace;
309
				font-weight: bold; }
310
		</style>
311
	</head>
312
	<body>
313
		<h1>A critical error has occurred.</h1>
314
315
		<p>This installer was unable to find the installer\'s language file or files. They should be found under:</p>
316

other/upgrade.php 1 location

@@ 442-468 (lines=27) @@
439
	}
440
441
	// Didn't find any, show an error message!
442
	if (empty($incontext['detected_languages']))
443
	{
444
		// Let's not cache this message, eh?
445
		header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
446
		header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
447
		header('Cache-Control: no-cache');
448
449
		echo '<!DOCTYPE html>
450
<html>
451
	<head>
452
		<title>SMF Upgrader: Error!</title>
453
		<style>
454
			body {
455
				font-family: sans-serif;
456
				max-width: 700px; }
457
		
458
			h1 {
459
				font-size: 14pt; }
460
461
			.directory {
462
				margin: 0.3em;
463
				font-family: monospace;
464
				font-weight: bold; }
465
		</style>
466
	</head>
467
	<body>
468
		<h1>A critical error has occurred.</h1>
469
470
		<p>This upgrader was unable to find the upgrader\'s language file or files.  They should be found under:</p>
471