0) { header('Content-Disposition: attachment; filename="'.str_replace('"','\'', $request['download_name']).'"'); } else { header('Content-Disposition: attachment'); } } $S['notemplates']=true; } function body_passthrough() { global $request; if (strtolower($request['ext']) == 'php') { $_SERVER['PHP_SELF']=substr($_SERVER['PHP_SELF'],0,strlen($_SERVER['PHP_SELF'])-strlen('main.php')).$request['dir'].'/'.$request['file']; unset($GLOBALS['S'], $GLOBALS['request'], $GLOBALS['conf']); chdir($request['dir']); error_reporting(E_DEFAULT); return $request['file']; } elseif (file_exists($request['dir'].'/'.$request['file'])) { readfile($request['dir'].'/'.$request['file']); } else { return $request['dir'].'/'.$request['file'].'.php'; } } ?>