Customizing SMF > SMF Coding Discussion

What is this?

(1/1)

ROGUE-Master:
// Check on any hacking attempts.
if (isset($_GET['ssi_theme']) && (int) $_GET['ssi_theme'] == (int) $ssi_theme)
   die('Hacking attempt...');
elseif (isset($_COOKIE['ssi_theme']) && (int) $_COOKIE['ssi_theme'] == (int) $ssi_theme)
   die('Hacking attempt...');
if (isset($_REQUEST['ssi_layers']))
{
   if ((get_magic_quotes_gpc() ? addslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == htmlspecialchars($ssi_layers))
      die('Hacking attempt...');
}


What exactly does this do??? Kills a hacking attempt...??? How?

[Unknown]:
It protects against using register_globals to set SSI settings.

-[Unknown]

Navigation

[0] Message Index

Go to full version