Code Duplication    Length = 9-9 lines in 8 locations

attachments/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

avatars/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

cache/index.php 1 location

@@ 6-14 (lines=9) @@
3
// This file is here solely to protect your cache directory.
4
5
// Look for Settings.php....
6
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
7
{
8
	// Found it!
9
	require(dirname(dirname(__FILE__)) . '/Settings.php');
10
	header('Location: ' . $boardurl);
11
}
12
// Can't find it... just forget it.
13
else
14
	exit;
15
16
?>

custom_avatar/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

Packages/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

Smileys/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

Sources/index.php 1 location

@@ 8-16 (lines=9) @@
5
 */
6
7
// Look for Settings.php....
8
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
9
{
10
	// Found it!
11
	require(dirname(dirname(__FILE__)) . '/Settings.php');
12
	header('Location: ' . $boardurl);
13
}
14
// Can't find it... just forget it.
15
else
16
	exit;
17
18
?>

Themes/index.php 1 location

@@ 6-14 (lines=9) @@
3
// This file is here solely to protect your Themes directory.
4
5
// Look for Settings.php....
6
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
7
{
8
	// Found it!
9
	require(dirname(dirname(__FILE__)) . '/Settings.php');
10
	header('Location: ' . $boardurl);
11
}
12
// Can't find it... just forget it.
13
else
14
	exit;
15
16
?>