Code Duplication    Length = 3-3 lines in 3 locations

cron.php 1 location

@@ 44-46 (lines=3) @@
41
define('TIME_START', microtime(true));
42
43
// Just being safe...
44
foreach (array('db_character_set', 'cachedir') as $variable)
45
	if (isset($GLOBALS[$variable]))
46
		unset($GLOBALS[$variable]);
47
48
// Get the forum's settings for database and file paths.
49
require_once(dirname(__FILE__) . '/Settings.php');

index.php 1 location

@@ 35-37 (lines=3) @@
32
ob_start();
33
34
// Do some cleaning, just in case.
35
foreach (array('db_character_set', 'cachedir') as $variable)
36
	if (isset($GLOBALS[$variable]))
37
		unset($GLOBALS[$variable], $GLOBALS[$variable]);
38
39
// Load the settings...
40
require_once(dirname(__FILE__) . '/Settings.php');

SSI.php 1 location

@@ 31-33 (lines=3) @@
28
$time_start = microtime(true);
29
30
// Just being safe...
31
foreach (array('db_character_set', 'cachedir') as $variable)
32
	if (isset($GLOBALS[$variable]))
33
		unset($GLOBALS[$variable]);
34
35
// Get the forum's settings for database and file paths.
36
require_once(dirname(__FILE__) . '/Settings.php');