Scandal
06-20-2023, 02:53 PM
Hello all!
I have detect this code on attachment.php:
if ($_REQUEST['stc'] == 1) // we were called as <img src=> from showthread.php
{
define('NOSHUTDOWNFUNC', 1);
}
... and ...
if (defined('NOSHUTDOWNFUNC'))
{
if ($_GET['stc'] == 1)
{
$db->close();
}
else
{
exec_shut_down();
}
}
What is 'stc' = 1 param for and what the NOSHUTDOWNFUNC constant does?
Can someone give a small explanation? :)
I have detect this code on attachment.php:
if ($_REQUEST['stc'] == 1) // we were called as <img src=> from showthread.php
{
define('NOSHUTDOWNFUNC', 1);
}
... and ...
if (defined('NOSHUTDOWNFUNC'))
{
if ($_GET['stc'] == 1)
{
$db->close();
}
else
{
exec_shut_down();
}
}
What is 'stc' = 1 param for and what the NOSHUTDOWNFUNC constant does?
Can someone give a small explanation? :)