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
3a610c0a
Commit
3a610c0a
authored
May 29, 2012
by
David Morley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add debug
parent
24c856c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
14 deletions
+22
-14
css/newstyle.css
css/newstyle.css
+4
-1
db/pull.php
db/pull.php
+2
-1
index.php
index.php
+16
-12
No files found.
css/newstyle.css
View file @
3a610c0a
...
...
@@ -15,4 +15,7 @@
.rating
{
font-size
:
9px
;
}
\ No newline at end of file
}
.content
{
margin-left
:
299px
!important
;
}
db/pull.php
View file @
3a610c0a
...
...
@@ -160,7 +160,7 @@ try {
$ipdata
=
"Country: "
.
$location
->
countryName
.
"
\n
"
;
$whois
=
"Country: "
.
$location
->
countryName
.
"
\n
Lat:"
.
$location
->
latitude
.
" Long:"
.
$location
->
longitude
;
$country
=
$location
->
countryName
;
$city
=
$location
->
city
;
$city
=
iconv
(
"UTF-8"
,
"UTF-8//IGNORE"
,
$location
->
city
)
;
$state
=
""
;
$lat
=
$location
->
latitude
;
$long
=
$location
->
longitude
;
...
...
@@ -241,6 +241,7 @@ $pingdomdate = date('Y-m-d H:i:s');
//sql it
$timenow
=
date
(
'Y-m-d H:i:s'
);
$sql
=
"UPDATE pods SET Hgitdate='
$gitdate
', Hencoding='
$encoding
', secure='
$secure
', hidden='
$hidden
', Hruntime='
$runtime
', Hgitref='
$gitrev
', ip='
$ipnum
', ipv6='
$ipv6
', monthsmonitored='
$months
', uptimelast7='
$uptime
', status='
$live
', dateLaststats='
$pingdomdate
', dateUpdated='
$timenow
', responsetimelast7='
$responsetime
', score='
$score
', adminrating='
$adminrating
', country='
$country
', city='
$city
', state='
$state
', lat='
$lat
', long='
$long
', postalcode='
$postalcode
', connection='
$connection
', whois='
$whois
', userrating='
$userrating
' WHERE domain='
$domain
'"
;
if
(
$_GET
[
"debug"
]
==
"true"
)
{
echo
$sql
;}
$result
=
pg_query
(
$dbh
,
$sql
);
if
(
!
$result
)
{
die
(
"Error in SQL query: "
.
pg_last_error
());
...
...
index.php
View file @
3a610c0a
...
...
@@ -10,8 +10,8 @@
<script
type=
"text/javascript"
src=
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"
></script>
<script
src=
"OpenLayers.js"
></script>
<link
href=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"http://
twitter.github.com/bootstrap/1.3.0
/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"
http://c807316.r16.cf2.rackcdn.com
/newstyle.css"
/>
<link
rel=
"stylesheet"
href=
"http://
c790230.r16.cf2.rackcdn.com
/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"
css
/newstyle.css"
/>
<link
rel=
"stylesheet"
href=
"http://c807316.r16.cf2.rackcdn.com/facebox.css"
/>
<?php
include
(
"vendor/Mobile_Detect.php"
);
$detect
=
new
Mobile_Detect
();
if
(
$detect
->
isMobile
())
{
echo
'<link rel="stylesheet" href="http://c807316.r16.cf2.rackcdn.com/mobile.css" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'
;}
?>
...
...
@@ -61,16 +61,20 @@ s1.parentNode.insertBefore(s, s1);
</header>
<div
class=
"container-fluid"
>
<div
class=
"sidebar"
>
<div
class=
"adsense"
><script
type=
"text/javascript"
>
<!--
google_ad_client
=
"
ca-pub-3662181805557062
"
;
/* podup2 */
google_ad_slot
=
"
3334221511
"
;
google_ad_width
=
200
;
google_ad_height
=
200
;
//-->
</script>
<script
type=
"text/javascript"
src=
"http://pagead2.googlesyndication.com/pagead/show_ads.js"
></script></div>
<div
class=
"adsense2"
>
<!-- Begin: adBrite, Generated: 2012-04-29 16:22:25 -->
<script
type=
"text/javascript"
>
var
AdBrite_Title_Color
=
'
46A546
'
;
var
AdBrite_Text_Color
=
'
000000
'
;
var
AdBrite_Background_Color
=
'
FFFFFF
'
;
var
AdBrite_Border_Color
=
'
dddddd
'
;
var
AdBrite_URL_Color
=
'
46A546
'
;
try
{
var
AdBrite_Iframe
=
window
.
top
!=
window
.
self
?
2
:
1
;
var
AdBrite_Referrer
=
document
.
referrer
==
''
?
document
.
location
:
document
.
referrer
;
AdBrite_Referrer
=
encodeURIComponent
(
AdBrite_Referrer
);}
catch
(
e
){
var
AdBrite_Iframe
=
''
;
var
AdBrite_Referrer
=
''
;}
</script>
<script
type=
"text/javascript"
>
document
.
write
(
String
.
fromCharCode
(
60
,
83
,
67
,
82
,
73
,
80
,
84
));
document
.
write
(
'
src="http://ads.adbrite.com/mb/text_group.php?sid=2143050&zs=3330305f323530&ifr=
'
+
AdBrite_Iframe
+
'
&ref=
'
+
AdBrite_Referrer
+
'
" type="text/javascript">
'
);
document
.
write
(
String
.
fromCharCode
(
60
,
47
,
83
,
67
,
82
,
73
,
80
,
84
,
62
));
</script>
<!-- End: adBrite -->
</div>
<a
href=
"https://market.android.com/details?id=appinventor.ai_david_morley.DiasporaPoduptime"
><img
src=
"http://c807316.r16.cf2.rackcdn.com/android-dude128.png"
></a>
</div>
<div
class=
"content"
>
...
...
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