Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F85541
diagnostic.php
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Nov 27 2013, 6:42 PM
2013-11-27 18:42:44 (UTC+0)
Size
740 B
Referenced Files
None
Subscribers
None
diagnostic.php
View Options
<?php
require_once
'scripts/__init_script__.php'
;
$table
=
new
PhabricatorRepository
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$repository
)
{
$callsign
=
$repository
->
getCallsign
();
$uri
=
$repository
->
getRemoteURI
();
$uri
=
new
PhutilURI
(
$uri
);
$proto
=
strtolower
(
$uri
->
getProtocol
());
$user
=
$uri
->
getUser
();
$login
=
$repository
->
getDetail
(
'ssh-login'
);
$keyfile
=
$repository
->
getDetail
(
'ssh-keyfile'
);
$key
=
$repository
->
getDetail
(
'ssh-key'
);
echo
"Repository {$callsign}:
\n
"
;
echo
" Protocol: "
.
$proto
.
"
\n
"
;
echo
" Has User: "
.
yn
(
$user
);
echo
" Has Login: "
.
yn
(
$login
);
echo
" Has Keyfile: "
.
yn
(
$keyfile
);
echo
" Has Key: "
.
yn
(
$key
);
}
function
yn
(
$v
)
{
return
(
$v
?
'Y'
:
'N'
).
"
\n
"
;
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/kt/xf/hhypxor5hnf55snp
Default Alt Text
diagnostic.php (740 B)
Attached To
Mode
P1005 diagnostic.php
Attached
Detach File
Event Timeline
Log In to Comment