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
4f6b71de
Unverified
Commit
4f6b71de
authored
Mar 26, 2018
by
dmorley
Committed by
GitHub
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stats_api key should still be in the db (#135)
parent
5d63bcda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
cleanup.php
cleanup.php
+1
-2
db/add.php
db/add.php
+1
-1
db/tables.sql
db/tables.sql
+1
-0
showfull.php
showfull.php
+1
-1
No files found.
cleanup.php
View file @
4f6b71de
...
...
@@ -86,8 +86,7 @@ try {
echo
'<td>'
.
$pod
[
'active_users_monthly'
]
.
'</td>'
;
echo
'<td>'
.
$pod
[
'local_posts'
]
.
'</td>'
;
echo
'<td>'
.
$pod
[
'comment_counts'
]
.
'</td>'
;
$moreurl
=
'https://api.uptimerobot.com/getMonitors?format=json&noJsonCallback=1&customUptimeRatio=7-30-60-90&apiKey='
.
$pod
[
'stats_apikey'
];
echo
'<td><div title="Last Check '
.
$pod
[
'date_updated'
]
.
'" class="tipsy"><a target="_self" href="'
.
$moreurl
.
'">'
.
$pod
[
'monthsmonitored'
]
.
'</a></div></td>'
;
echo
'<td><div title="Last Check '
.
$pod
[
'date_updated'
]
.
'" class="tipsy">'
.
$pod
[
'monthsmonitored'
]
.
'</div></td>'
;
echo
'<td>'
.
$pod
[
'score'
]
.
'</td>'
;
echo
'<td><div class="tipsy" title="'
.
$pod
[
'sslvalid'
]
.
'">con info</td>'
;
?>
...
...
db/add.php
View file @
4f6b71de
...
...
@@ -33,7 +33,7 @@ R::usePartialBeans(true);
try
{
$pods
=
R
::
getAll
(
'
SELECT id, domain,
stats_apikey,
publickey, email
SELECT id, domain, publickey, email
FROM pods
'
);
}
catch
(
\RedBeanPHP\RedException
$e
)
{
...
...
db/tables.sql
View file @
4f6b71de
...
...
@@ -5,6 +5,7 @@ CREATE TABLE pods (
softwarename
text
,
masterversion
text
,
shortversion
text
,
stats_apikey
text
,
score
int
DEFAULT
50
,
weightedscore
numeric
(
5
,
2
)
DEFAULT
0
,
adminrating
decimal
DEFAULT
0
,
...
...
showfull.php
View file @
4f6b71de
...
...
@@ -6,7 +6,7 @@ defined('PODUPTIME') || die();
try
{
$pods
=
R
::
getAll
(
'
SELECT domain, dnssec, podmin_statement, sslexpire, masterversion, shortversion, softwarename, monthsmonitored, score, signup, name, country, city, state, lat, long, uptime_alltime, active_users_halfyear, active_users_monthly, service_facebook, service_twitter, service_tumblr, service_wordpress, service_xmpp, latency, date_updated, ipv6, total_users, local_posts, comment_counts,
stats_apikey,
userrating, status
SELECT domain, dnssec, podmin_statement, sslexpire, masterversion, shortversion, softwarename, monthsmonitored, score, signup, name, country, city, state, lat, long, uptime_alltime, active_users_halfyear, active_users_monthly, service_facebook, service_twitter, service_tumblr, service_wordpress, service_xmpp, latency, date_updated, ipv6, total_users, local_posts, comment_counts, userrating, status
FROM pods
WHERE uptime_alltime > 50
ORDER BY weightedscore DESC
...
...
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