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
fd667659
Commit
fd667659
authored
Oct 20, 2011
by
David Morley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix delicious - add email notice for new pods
parent
d73864f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
db/add.php
db/add.php
+6
-1
db/pull.php
db/pull.php
+4
-1
index.php
index.php
+4
-5
No files found.
db/add.php
View file @
fd667659
...
...
@@ -42,7 +42,12 @@ echo "pingdom report already exists";die;
if
(
!
$result
)
{
die
(
"Error in SQL query: "
.
pg_last_error
());
}
$to
=
$adminemail
;
$subject
=
"New pod added to poduptime "
;
$message
=
"http://podupti.me
\n\n
Pingdom Url:"
.
$_POST
[
"url"
]
.
"
\n\n
Pod:"
.
$_POST
[
"domain"
]
.
"
\n\n
"
;
$headers
=
"From: "
.
$_POST
[
"email"
]
.
"
\r\n
Reply-To: "
.
$_POST
[
"email"
]
.
"
\r\n
"
;
@
mail
(
$to
,
$subject
,
$message
,
$headers
);
echo
"Data successfully inserted! Your pod will be reviewed and live on the list soon!"
;
pg_free_result
(
$result
);
...
...
db/pull.php
View file @
fd667659
...
...
@@ -194,7 +194,10 @@ $pingdom_timestamp = $matchdate[1][0];
$Date_parts
=
preg_split
(
"/[\s-]+/"
,
$pingdom_timestamp
);
if
(
strlen
(
$Date_parts
[
0
])
==
"2"
)
{
//echo $pingdom_timestamp;
$pingdomdate
=
$pingdom_timestamp
;
//this is broken also on something like 13-10-2011 09:24:11
//$pingdomdate = $pingdom_timestamp;
//hack
$pingdomdate
=
date
(
'Y-m-d H:i:s'
);
}
else
{
//$splitdate = explode(" ",$matchdate[1][0]);
...
...
index.php
View file @
fd667659
...
...
@@ -49,7 +49,7 @@ s1.parentNode.insertBefore(s, s1);
<a
href=
"http://twitter.com/share"
class=
"twitter-share-button"
data-url=
"http://podupti.me"
data-text=
"Pod Uptime - Find a Diaspora Pod!"
data-count=
"horizontal"
>
Tweet
</a
><script
type=
"text/javascript"
src=
"http://platform.twitter.com/widgets.js"
></script>
</div>
<div
class=
"span
2
"
>
<div
class=
"span
3
"
>
<iframe
src=
"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fpodupti.me&layout=button_count&show_faces=false&width=150&action=recommend&font
&colorscheme=light&height=21"
scrolling=
"no"
frameborder=
"0"
style=
"border:none; overflow:hidden; width:130px; height:21px;"
allowTransparency=
"true"
></iframe>
</div>
...
...
@@ -57,9 +57,8 @@ s1.parentNode.insertBefore(s, s1);
<a
class=
"DiggThisButton DiggCompact"
></a>
</div>
<div
class=
"span2"
>
<img
src=
"http://l.yimg.com/hr/img/delicious.small.gif"
height=
"10"
width=
"10"
alt=
"Delicious"
/>
<a
href=
"http://www.delicious.com/save"
onclick=
"window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURI
Component(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"
>
Delicious
</a>
<img
src=
"http://www.delicious.com/static/img/delicious.small.gif"
height=
"10"
width=
"10"
alt=
"Delicious"
/>
<a
href=
"http://www.delicious.com/save"
onclick=
"window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"
>
Delicious
</a>
</div>
<div
class=
"span2"
>
<g:plusone></g:plusone>
...
...
@@ -74,7 +73,7 @@ Component(document.title), 'delicious','toolbar=no,width=550,height=550'); retur
<div
class=
"span2"
>
<script
src=
"http://www.stumbleupon.com/hostedbadge.php?s=1"
></script>
</div>
<div
class=
"span4"
>
<div
class=
"span4"
style=
"font-size:9px"
>
This site is a service of
<a
href=
"https://diasp.org"
>
Diasp.org Pod
</a><br>
</div>
</div>
...
...
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