function quit($msg) { global $debug; if ($debug == 'true') { echo $msg; exit; } else { http404(); } }
// User does not exist anymore http404(); } // Sign in user $user = Sentinel::signInWithAccessToken($accesstoken); // Check the security hash if (!Sentinel::isSignValid($_GET['h'], array('f' => $file_id), $username)) { http403(); } } } else { if (!isset($_GET['t']) && isset($_GET['h'])) { http404(); } else { if (isset($_GET['t']) && !isset($_GET['h'])) { http404(); } } } /* |-------------------------------------------------------------------------- | Load config |-------------------------------------------------------------------------- | */ list($badges, $files) = config_load(); if (!isset($files[$file_id])) { http403(); } if (isset($files[$file_id]['export']) && $files[$file_id]['export'] === false) { http403();