Code Duplication    Length = 3-3 lines in 2 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

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