Code Duplication    Length = 5-5 lines in 2 locations

Sources/Session.php 1 location

@@ 84-88 (lines=5) @@
81
	}
82
83
	// Set the randomly generated code.
84
	if (!isset($_SESSION['session_var']))
85
	{
86
		$_SESSION['session_value'] = md5(session_id() . mt_rand());
87
		$_SESSION['session_var'] = substr(preg_replace('~^\d+~', '', sha1(mt_rand() . session_id() . mt_rand())), 0, mt_rand(7, 12));
88
	}
89
	$sc = $_SESSION['session_value'];
90
}
91

SSI.php 1 location

@@ 118-122 (lines=5) @@
115
		error_reporting($temp);
116
	}
117
118
	if (!isset($_SESSION['session_value']))
119
	{
120
		$_SESSION['session_var'] = substr(md5(mt_rand() . session_id() . mt_rand()), 0, rand(7, 12));
121
		$_SESSION['session_value'] = md5(session_id() . mt_rand());
122
	}
123
	$sc = $_SESSION['session_value'];
124
}
125