--- TODO: Move the code from NSMAN to a new class TODO: HOOKS->GetURL for Linux TODO: Do not run the check every time the game is launched, use: PREFSMAN->m_iUpdateCheckIntervalSeconds - Seconds to wait before running the next check PREFSMAN->m_iUpdateCheckLastCheckedSecond - Timestamp of the last check
13 lines
228 B
PHP
13 lines
228 B
PHP
<?php
|
|
$sm_build = 18;
|
|
|
|
if( !isset($_SERVER['HTTP_X_SM_BUILD']) )
|
|
{
|
|
header( "HTTP/1.1 400 Bad Request" );
|
|
echo "HTTP/1.1 400 Bad Request";
|
|
}
|
|
else
|
|
header( "X-SM-Build: " . number_format($sm_build, 0, '', '') );
|
|
|
|
?>
|