PDA

View Full Version : attachment.php - what is stc=1 param / define('NOSHUTDOWNFUNC', 1) ?


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? :)

rushabh
06-26-2023, 03:57 PM
Would be keen to know this as well...

Anyone?

Dr.CustUmz
08-13-2023, 04:00 AM
hmmm interesting....