Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Poduptime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diasporg
Poduptime
Commits
1b5eace5
Unverified
Commit
1b5eace5
authored
Jan 12, 2017
by
dmorley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
few more back to ===
parent
c3e964fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
api.php
api.php
+1
-1
showfull.php
showfull.php
+2
-2
showmap.php
showmap.php
+2
-2
No files found.
api.php
View file @
1b5eace5
...
@@ -37,7 +37,7 @@ EOF;
...
@@ -37,7 +37,7 @@ EOF;
$row
[
'dateupdated'
],
$row
[
'dateupdated'
],
$row
[
'score'
]
$row
[
'score'
]
);
);
$scheme
=
$row
[
'secure'
]
?
'https://'
:
'http://'
;
$scheme
=
$row
[
'secure'
]
===
't'
?
'https://'
:
'http://'
;
echo
<<<EOF
echo
<<<EOF
<entry>
<entry>
<title>{$scheme}{$row['domain']}</title>
<title>{$scheme}{$row['domain']}</title>
...
...
showfull.php
View file @
1b5eace5
...
@@ -42,7 +42,7 @@ $numrows = pg_num_rows($result);
...
@@ -42,7 +42,7 @@ $numrows = pg_num_rows($result);
<tbody>
<tbody>
<?php
<?php
while
(
$row
=
pg_fetch_array
(
$result
))
{
while
(
$row
=
pg_fetch_array
(
$result
))
{
if
(
$row
[
'secure'
])
{
if
(
$row
[
'secure'
]
===
't'
)
{
$scheme
=
'https://'
;
$scheme
=
'https://'
;
$class
=
'green'
;
$class
=
'green'
;
$tip
=
'This pod uses SSL encryption for traffic.'
;
$tip
=
'This pod uses SSL encryption for traffic.'
;
...
@@ -76,7 +76,7 @@ $numrows = pg_num_rows($result);
...
@@ -76,7 +76,7 @@ $numrows = pg_num_rows($result);
}
}
echo
'<td class="'
.
$classver
.
'"><div title="'
.
$pre
.
' version: '
.
$row
[
'shortversion'
]
.
' master version is: '
.
$row
[
'masterversion'
]
.
'" data-toggle="tooltip" data-placement="bottom">'
.
$version
.
'</div></td>'
;
echo
'<td class="'
.
$classver
.
'"><div title="'
.
$pre
.
' version: '
.
$row
[
'shortversion'
]
.
' master version is: '
.
$row
[
'masterversion'
]
.
'" data-toggle="tooltip" data-placement="bottom">'
.
$version
.
'</div></td>'
;
echo
'<td>'
.
$row
[
'uptime_alltime'
]
.
'%</td>'
;
echo
'<td>'
.
$row
[
'uptime_alltime'
]
.
'%</td>'
;
echo
'<td>'
.
(
$row
[
'ipv6'
]
?
'Yes'
:
'No'
)
.
'</td>'
;
echo
'<td>'
.
(
$row
[
'ipv6'
]
===
't'
?
'Yes'
:
'No'
)
.
'</td>'
;
echo
'<td>'
.
$row
[
'responsetimems'
]
.
'</td>'
;
echo
'<td>'
.
$row
[
'responsetimems'
]
.
'</td>'
;
echo
'<td>'
.
(
$row
[
'signup'
]
===
't'
?
'Open'
:
'Closed'
)
.
'</td>'
;
echo
'<td>'
.
(
$row
[
'signup'
]
===
't'
?
'Open'
:
'Closed'
)
.
'</td>'
;
echo
'<td>'
.
$row
[
'total_users'
]
.
'</td>'
;
echo
'<td>'
.
$row
[
'total_users'
]
.
'</td>'
;
...
...
showmap.php
View file @
1b5eace5
...
@@ -47,8 +47,8 @@ foreach ($csv as $cords) {
...
@@ -47,8 +47,8 @@ foreach ($csv as $cords) {
$row
[
'service_xmpp'
]
===
't'
&&
$feat
.=
'<div class="smlogo smlogo-xmpp"><img src="/images/icon-xmpp.png" width="16" height="16" title="XMPP chat server" alt="XMPP chat server"></div>'
;
$row
[
'service_xmpp'
]
===
't'
&&
$feat
.=
'<div class="smlogo smlogo-xmpp"><img src="/images/icon-xmpp.png" width="16" height="16" title="XMPP chat server" alt="XMPP chat server"></div>'
;
$pod_name
=
htmlentities
(
$row
[
'name'
],
ENT_QUOTES
);
$pod_name
=
htmlentities
(
$row
[
'name'
],
ENT_QUOTES
);
$scheme
=
$row
[
'secure'
]
?
'https://'
:
'http://'
;
$scheme
=
$row
[
'secure'
]
===
't'
?
'https://'
:
'http://'
;
$signup
=
$row
[
'signup'
]
?
'yes'
:
'no'
;
$signup
=
$row
[
'signup'
]
===
't'
?
'yes'
:
'no'
;
echo
<<<EOF
echo
<<<EOF
{
{
'type': 'Feature',
'type': 'Feature',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment