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

@@ 439-465 (lines=27) @@
436
	}
437
438
	// Didn't find any, show an error message!
439
	if (empty($incontext['detected_languages']))
440
	{
441
		// Let's not cache this message, eh?
442
		header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
443
		header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
444
		header('Cache-Control: no-cache');
445
446
		echo '<!DOCTYPE html>
447
			<html>
448
				<head>
449
					<title>SMF Upgrader: Error!</title>
450
						<style>
451
							body {
452
								font-family: sans-serif;
453
								max-width: 700px; }
454
455
								h1 {
456
									font-size: 14pt; }
457
458
								.directory {
459
									margin: 0.3em;
460
									font-family: monospace;
461
									font-weight: bold; }
462
						</style>
463
				</head>
464
				<body>
465
					<h1>A critical error has occurred.</h1>
466
						<p>This upgrader was unable to find the upgrader\'s language file or files.  They should be found under:</p>
467
						<div class="directory">', dirname($_SERVER['PHP_SELF']) != '/' ? dirname($_SERVER['PHP_SELF']) : '', '/Themes/default/languages</div>
468
						<p>In some cases, FTP clients do not properly upload files with this many folders. Please double check to make sure you <strong>have uploaded all the files in the distribution</strong>.</p>