Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php final class PHUITwoColumnView extends AphrontTagView { private $mainColumn; private..

Decoded Output download

<?php
 final class PHUITwoColumnView extends AphrontTagView { private $mainColumn; private $sideColumn = null; private $navigation; private $display; private $fixed; private $header; private $subheader; private $footer; private $tabs; private $propertySection = array(); private $curtain; const DISPLAY_LEFT = "phui-side-column-left"; const DISPLAY_RIGHT = "phui-side-column-right"; public function setMainColumn($main) { $this->mainColumn = $main; return $this; } public function setSideColumn($side) { $this->sideColumn = $side; return $this; } public function setNavigation($nav) { $this->navigation = $nav; $this->display = self::DISPLAY_LEFT; return $this; } public function setHeader(PHUIHeaderView $header) { $this->header = $header; return $this; } public function setSubheader($subheader) { $this->subheader = $subheader; return $this; } public function setTabs(PHUIListView $tabs) { $tabs->setType(PHUIListView::TABBAR_LIST); $this->tabs = $tabs; return $this; } public function setFooter($footer) { $this->footer = $footer; return $this; } public function addPropertySection($title, $section) { $this->propertySection[] = array("header" => $title, "content" => $section); return $this; } public function setCurtain(PHUICurtainView $curtain) { $this->curtain = $curtain; return $this; } public function getCurtain() { return $this->curtain; } public function setFixed($fixed) { $this->fixed = $fixed; return $this; } public function setDisplay($display) { $this->display = $display; return $this; } private function getDisplay() { if ($this->display) { return $this->display; } else { return self::DISPLAY_RIGHT; } } protected function getTagAttributes() { $classes = array(); $classes[] = "phui-two-column-view"; $classes[] = $this->getDisplay(); if ($this->fixed) { $classes[] = "phui-two-column-fixed"; } if ($this->tabs) { $classes[] = "with-tabs"; } if ($this->subheader) { $classes[] = "with-subheader"; } if (!$this->header) { $classes[] = "without-header"; } return array("class" => implode(" ", $classes)); } protected function getTagContent() { require_celerity_resource("phui-two-column-view-css"); $main = $this->buildMainColumn(); $side = $this->buildSideColumn(); $footer = $this->buildFooter(); $order = array($side, $main); $inner = phutil_tag_div("phui-two-column-row grouped", $order); $table = phutil_tag_div("phui-two-column-content", $inner); $header = null; if ($this->header) { $curtain = $this->getCurtain(); if ($curtain) { $action_list = $curtain->getActionList(); $this->header->setActionListID($action_list->getID()); } $header = phutil_tag_div("phui-two-column-header", $this->header); } $tabs = null; if ($this->tabs) { $tabs = phutil_tag_div("phui-two-column-tabs", $this->tabs); } $subheader = null; if ($this->subheader) { $subheader = phutil_tag_div("phui-two-column-subheader", $this->subheader); } return phutil_tag("div", array("class" => "phui-two-column-container"), array($header, $tabs, $subheader, $table, $footer)); } private function buildMainColumn() { $view = array(); $sections = $this->propertySection; if ($sections) { foreach ($sections as $section) { $section_header = $section["header"]; $section_content = $section["content"]; if ($section_content === null) { continue; } if ($section_header instanceof PHUIHeaderView) { $header = $section_header; } else { $header = id(new PHUIHeaderView())->setHeader($section_header); } $view[] = id(new PHUIObjectBoxView())->setHeader($header)->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)->appendChild($section_content); } } return phutil_tag("div", array("class" => "phui-main-column"), array($view, $this->mainColumn)); } private function buildSideColumn() { $classes = array(); $classes[] = "phui-side-column"; $navigation = null; if ($this->navigation) { $classes[] = "side-has-nav"; $navigation = id(new PHUIObjectBoxView())->appendChild($this->navigation); } $curtain = $this->getCurtain(); return phutil_tag("div", array("class" => implode(" ", $classes)), array($navigation, $curtain, $this->sideColumn)); } private function buildFooter() { $footer = $this->footer; return phutil_tag("div", array("class" => "phui-two-column-content phui-two-column-footer"), array($footer)); } } ?>

Did this file decode correctly?

Original Code

<?php
 final class PHUITwoColumnView extends AphrontTagView { private $mainColumn; private $sideColumn = null; private $navigation; private $display; private $fixed; private $header; private $subheader; private $footer; private $tabs; private $propertySection = array(); private $curtain; const DISPLAY_LEFT = "\160\x68\x75\151\x2d\x73\151\144\x65\x2d\143\157\x6c\x75\x6d\156\55\154\x65\x66\164"; const DISPLAY_RIGHT = "\160\x68\165\151\55\163\151\x64\145\55\x63\157\154\165\x6d\x6e\55\x72\151\x67\150\164"; public function setMainColumn($main) { $this->mainColumn = $main; return $this; } public function setSideColumn($side) { $this->sideColumn = $side; return $this; } public function setNavigation($nav) { $this->navigation = $nav; $this->display = self::DISPLAY_LEFT; return $this; } public function setHeader(PHUIHeaderView $header) { $this->header = $header; return $this; } public function setSubheader($subheader) { $this->subheader = $subheader; return $this; } public function setTabs(PHUIListView $tabs) { $tabs->setType(PHUIListView::TABBAR_LIST); $this->tabs = $tabs; return $this; } public function setFooter($footer) { $this->footer = $footer; return $this; } public function addPropertySection($title, $section) { $this->propertySection[] = array("\x68\145\141\144\145\162" => $title, "\143\157\x6e\x74\145\156\x74" => $section); return $this; } public function setCurtain(PHUICurtainView $curtain) { $this->curtain = $curtain; return $this; } public function getCurtain() { return $this->curtain; } public function setFixed($fixed) { $this->fixed = $fixed; return $this; } public function setDisplay($display) { $this->display = $display; return $this; } private function getDisplay() { if ($this->display) { return $this->display; } else { return self::DISPLAY_RIGHT; } } protected function getTagAttributes() { $classes = array(); $classes[] = "\x70\x68\x75\151\x2d\164\x77\157\x2d\143\x6f\154\x75\155\x6e\55\166\151\x65\167"; $classes[] = $this->getDisplay(); if ($this->fixed) { $classes[] = "\x70\x68\x75\x69\x2d\164\x77\x6f\55\x63\x6f\154\x75\x6d\156\55\146\x69\170\x65\x64"; } if ($this->tabs) { $classes[] = "\x77\x69\x74\x68\55\x74\141\142\163"; } if ($this->subheader) { $classes[] = "\x77\151\x74\x68\x2d\163\165\142\150\x65\x61\144\145\162"; } if (!$this->header) { $classes[] = "\x77\x69\164\x68\157\x75\x74\x2d\150\x65\x61\144\145\x72"; } return array("\143\154\141\163\163" => implode("\40", $classes)); } protected function getTagContent() { require_celerity_resource("\160\150\x75\151\x2d\x74\167\157\x2d\x63\157\x6c\x75\x6d\x6e\55\x76\151\145\x77\x2d\143\x73\163"); $main = $this->buildMainColumn(); $side = $this->buildSideColumn(); $footer = $this->buildFooter(); $order = array($side, $main); $inner = phutil_tag_div("\x70\150\165\151\x2d\x74\x77\x6f\55\x63\157\x6c\165\x6d\156\x2d\162\157\x77\x20\x67\162\157\x75\160\x65\x64", $order); $table = phutil_tag_div("\160\x68\x75\151\55\x74\167\x6f\x2d\143\x6f\154\x75\x6d\x6e\x2d\x63\157\x6e\164\x65\x6e\x74", $inner); $header = null; if ($this->header) { $curtain = $this->getCurtain(); if ($curtain) { $action_list = $curtain->getActionList(); $this->header->setActionListID($action_list->getID()); } $header = phutil_tag_div("\x70\x68\165\x69\x2d\164\x77\x6f\55\143\x6f\154\x75\x6d\x6e\55\150\145\x61\144\x65\x72", $this->header); } $tabs = null; if ($this->tabs) { $tabs = phutil_tag_div("\160\x68\x75\151\x2d\x74\x77\157\55\143\x6f\154\x75\x6d\x6e\x2d\164\141\x62\163", $this->tabs); } $subheader = null; if ($this->subheader) { $subheader = phutil_tag_div("\x70\150\165\151\x2d\164\167\157\55\x63\x6f\x6c\165\x6d\156\x2d\x73\165\142\150\145\141\144\145\162", $this->subheader); } return phutil_tag("\144\x69\166", array("\143\154\141\x73\163" => "\160\150\165\151\x2d\x74\x77\157\x2d\x63\x6f\154\165\x6d\156\x2d\143\x6f\156\x74\141\x69\x6e\145\162"), array($header, $tabs, $subheader, $table, $footer)); } private function buildMainColumn() { $view = array(); $sections = $this->propertySection; if ($sections) { foreach ($sections as $section) { $section_header = $section["\150\x65\141\x64\145\x72"]; $section_content = $section["\x63\x6f\x6e\164\x65\x6e\164"]; if ($section_content === null) { continue; } if ($section_header instanceof PHUIHeaderView) { $header = $section_header; } else { $header = id(new PHUIHeaderView())->setHeader($section_header); } $view[] = id(new PHUIObjectBoxView())->setHeader($header)->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)->appendChild($section_content); } } return phutil_tag("\x64\x69\x76", array("\x63\x6c\x61\163\x73" => "\160\150\165\x69\x2d\155\141\151\156\55\143\157\x6c\165\155\156"), array($view, $this->mainColumn)); } private function buildSideColumn() { $classes = array(); $classes[] = "\x70\150\165\151\x2d\x73\x69\x64\x65\x2d\x63\x6f\154\x75\x6d\x6e"; $navigation = null; if ($this->navigation) { $classes[] = "\x73\x69\x64\x65\x2d\150\141\x73\55\x6e\x61\x76"; $navigation = id(new PHUIObjectBoxView())->appendChild($this->navigation); } $curtain = $this->getCurtain(); return phutil_tag("\x64\151\x76", array("\x63\x6c\141\x73\163" => implode("\40", $classes)), array($navigation, $curtain, $this->sideColumn)); } private function buildFooter() { $footer = $this->footer; return phutil_tag("\x64\x69\x76", array("\x63\154\141\x73\163" => "\x70\x68\x75\x69\55\164\167\157\55\x63\x6f\x6c\x75\155\x6e\55\143\157\156\x74\x65\x6e\164\x20\x70\x68\x75\151\55\x74\x77\x6f\55\x63\157\154\165\x6d\x6e\x2d\x66\157\x6f\x74\145\x72"), array($footer)); } }

Function Calls

None

Variables

None

Stats

MD5 869f41573f015ab9d6f3c0cee5ee8201
Eval Count 0
Decode Time 106 ms