Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<?php
final class AphrontWebpageResponse extends AphrontHTMLResponse {
private $content; private $unexpectedOutput;
public function setContent($content) { $this->content = $content; return $this; }
public function setUnexpectedOutput($unexpected_output) { $this->unexpectedOutput = $unexpected_output; return $this; }
public function getUnexpectedOutput() { return $this->unexpectedOutput; }
public function buildResponseString() { $unexpected_output = $this->getUnexpectedOutput(); if (strlen($unexpected_output)) { $style = array( 'background: linear-gradient(180deg, #eeddff, #ddbbff);', 'white-space: pre-wrap;', 'z-index: 200000;', 'position: relative;', 'padding: 16px;', 'font-family: monospace;', 'text-shadow: 1px 1px 1px white;', );
$unexpected_header = phutil_tag( 'div', array( 'style' => implode(' ', $style), ), $unexpected_output); } else { $unexpected_header = ''; }
return hsprintf('%s%s', $unexpected_header, $this->content); }
}