Code Duplication    Length = 5-5 lines in 2 locations

Sources/Session.php 1 location

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

SSI.php 1 location

@@ 161-165 (lines=5) @@
158
		error_reporting($temp);
159
	}
160
161
	if (!isset($_SESSION['session_value']))
162
	{
163
		$_SESSION['session_var'] = substr(md5(mt_rand() . session_id() . mt_rand()), 0, rand(7, 12));
164
		$_SESSION['session_value'] = md5(session_id() . mt_rand());
165
	}
166
	$sc = $_SESSION['session_value'];
167
}
168