HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/lib/SGL/Task/CustomHeaders.php
<?php
/**
 * Setup custom headers.
 *
 * @package Task
 * @author  Demian Turner <demian@phpkitchen.com>
 */
class SGL_Task_CustomHeaders extends SGL_DecorateProcess
{
    public function process(&$input, &$output)
    {
        SGL::logMessage(null, PEAR_LOG_DEBUG);

        $this->processRequest->process($input, $output);

            //  build P3P headers
        if (SGL_Config::get('p3p.policies')) {
            $p3pHeader = '';
            if (SGL_Config::get('p3p.policyLocation')) {
                $p3pHeader .= " policyref=\"" . SGL_Config::get('p3p.policyLocation')."\"";
            }
            if (SGL_Config::get('p3p.compactPolicy')) {
                $p3pHeader .= " CP=\"" . SGL_Config::get('p3p.compactPolicy')."\"";
            }
            if ($p3pHeader != '') {
                header("P3P: $p3pHeader");
            }
        }
        header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
        header("Content-Type: $output->contentType");
        header('X-Powered-By: Seagull http://seagullproject.org');
    }
}
?>