public function __construct($Title = '', $SubTitle = '')
 {
     parent::__construct();
     $this->pts_title = $Title;
     $this->pts_sub_title = $SubTitle;
     $this->SetTitle($Title);
     $this->SetAuthor('Phoronix Test Suite');
     $this->SetCreator(pts_codename(true));
     $this->SetCompression(false);
 }
 public static function stream_context_create($parameters = null, $proxy_address = false, $proxy_port = false, $http_timeout = -1)
 {
     if (!is_array($parameters)) {
         $parameters = array();
     }
     if ($proxy_address == false && $proxy_port == false && self::$network_proxy) {
         $proxy_address = self::$network_proxy['address'];
         $proxy_port = self::$network_proxy['port'];
     }
     if ($proxy_address != false && $proxy_port != false && is_numeric($proxy_port)) {
         $parameters['http']['proxy'] = 'tcp://' . $proxy_address . ':' . $proxy_port;
         $parameters['http']['request_fulluri'] = true;
     }
     if (is_numeric($http_timeout) && $http_timeout > 1) {
         $parameters['http']['timeout'] = $http_timeout;
     } else {
         $parameters['http']['timeout'] = self::$network_timeout;
     }
     $parameters['http']['user_agent'] = pts_codename(true);
     $parameters['http']['header'] = "Content-Type: application/x-www-form-urlencoded\r\n";
     $stream_context = stream_context_create($parameters);
     return $stream_context;
 }
function pts_title($show_codename = false)
{
    return 'Phoronix Test Suite v' . PTS_VERSION . ($show_codename ? ' (' . pts_codename() . ')' : null);
}