Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93562366
DarkConsoleController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 18:32
Size
695 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 18:32 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22663907
Attached To
rPH Phabricator
DarkConsoleController.php
View Options
<?php
/**
* @group console
*/
final
class
DarkConsoleController
extends
PhabricatorController
{
protected
$op
;
protected
$data
;
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$visible
=
$request
->
getStr
(
'visible'
);
if
(
strlen
(
$visible
))
{
$user
->
setConsoleVisible
((
int
)
$visible
);
$user
->
save
();
return
id
(
new
AphrontAjaxResponse
())->
setDisableConsole
(
true
);
}
$tab
=
$request
->
getStr
(
'tab'
);
if
(
strlen
(
$tab
))
{
$user
->
setConsoleTab
(
$tab
);
$user
->
save
();
return
id
(
new
AphrontAjaxResponse
())->
setDisableConsole
(
true
);
}
return
new
Aphront404Response
();
}
}
Event Timeline
Log In to Comment