Select the types of activity you want to include in your feed.
@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
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+class AphrontException extends Exception {
2020+2121+}
+10
src/aphront/exception/base/__init__.php
···11+<?php
22+/**
33+ * This file is automatically generated. Lint this module to rebuild it.
44+ * @generated
55+ */
66+77+88+99+1010+phutil_require_source('AphrontException.php');
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+class AphrontRedirectException extends AphrontException {
2020+2121+ private $uri;
2222+2323+ public function __construct($uri) {
2424+ $this->uri = $uri;
2525+ }
2626+2727+ public function getURI() {
2828+ return $this->uri;
2929+ }
3030+3131+}
+12
src/aphront/exception/redirect/__init__.php
···11+<?php
22+/**
33+ * This file is automatically generated. Lint this module to rebuild it.
44+ * @generated
55+ */
66+77+88+99+phutil_require_module('phabricator', 'aphront/exception/base');
1010+1111+1212+phutil_require_source('AphrontRedirectException.php');
+34
src/aphront/request/AphrontRequest.php
···2828 private $host;
2929 private $path;
3030 private $requestData;
3131+ private $user;
31323233 final public function __construct($host, $path) {
3334 $this->host = $host;
···8788 final public function isFormPost() {
8889 return $this->getExists(self::TYPE_FORM) && $this->isHTTPPost();
8990 }
9191+9292+ final public function getCookie($name, $default = null) {
9393+ return idx($_COOKIE, $name, $default);
9494+ }
9595+9696+ final public function clearCookie($name) {
9797+ $this->setCookie($name, '', time() - (60 * 60 * 24 * 30));
9898+ }
9999+100100+ final public function setCookie($name, $value, $expire = null) {
101101+ if ($expire === null) {
102102+ $expire = time() + (60 * 60 * 24 * 365 * 5);
103103+ }
104104+ setcookie(
105105+ $name,
106106+ $value,
107107+ $expire,
108108+ $path = '/',
109109+ $domain = '',
110110+ $secure = false,
111111+ $http_only = true);
112112+ }
113113+114114+ final public function setUser($user) {
115115+ $this->user = $user;
116116+ return $this;
117117+ }
118118+119119+ final public function getUser() {
120120+ return $this->user;
121121+ }
122122+123123+9012491125}
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+abstract class PhabricatorAuthController extends PhabricatorController {
2020+2121+ public function buildStandardPageResponse($view, array $data) {
2222+ $page = $this->buildStandardPageView();
2323+2424+ $page->setApplicationName('Login');
2525+ $page->setBaseURI('/login/');
2626+ $page->setTitle(idx($data, 'title'));
2727+ $page->appendChild($view);
2828+2929+ $response = new AphrontWebpageResponse();
3030+ return $response->setContent($page->render());
3131+ }
3232+3333+}