Commit fd667659 authored by David Morley's avatar David Morley

fix delicious - add email notice for new pods

parent d73864f7
......@@ -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\nReply-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);
......
......@@ -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]);
......
......@@ -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="span2">
<div class="span3">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fpodupti.me&amp;layout=button_count&amp;show_faces=false&amp;width=150&amp;action=recommend&amp;font
&amp;colorscheme=light&amp;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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment