Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from rapportive-oss/master

Minor changes needed to host on Heroku
  • Loading branch information...
commit eabf8ff82ddba32b9d456174eaee5e08bbe62a76 2 parents 1cc89a2 + 250baf5
@jordanlyall authored
View
BIN  images/klout-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/kloutlet-sq.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/preview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 raplet.php → index.php
@@ -1,5 +1,7 @@
<?php
+$DOMAIN = "klout-raplet.herokuapp.com";
+
//Parameters in the request from Rapportive to our Raplet
$callback = $_GET['callback'];
$parameters = array();
@@ -13,8 +15,8 @@
$parameters['name'] = "Kloutlet";
$parameters['description'] = "Klout + Rapportive = Kloutlet. View the sender's Klout score within Gmail.";
$parameters['welcome_text'] = "<p>View sender's Klout score. Visit Kloutlet.com for more info.</p>";
- $parameters['icon_url'] = "http://kloutlet.com/images/klout-icon.png";
- $parameters['preview_url'] = "http://kloutlet.com/images/preview.png";
+ $parameters['icon_url'] = "http://$DOMAIN/images/klout-icon.png";
+ $parameters['preview_url'] = "http://$DOMAIN/images/preview.png";
$parameters['provider_name'] = "Jordan Lyall";
$parameters['provider_url'] = "http://about.me/jordan/";
$parameters['data_provider_name'] = "Klout";
@@ -50,7 +52,7 @@
$kscore = round($val);
//Our response
- $parameters['html'] = "<p><a href=\"http://klout.com/".htmlentities($twitter)."\"> <img style=\"padding-right:5px;\" src=\"https://kloutlet.com/images/kloutlet-sq.png\"> ".htmlentities($kscore)." | <span id=\"name\">@".htmlentities($twitter)." </span></a></p> ";
+ $parameters['html'] = "<p><a href=\"http://klout.com/".htmlentities($twitter)."\"> <img style=\"padding-right:5px;\" src=\"https://$DOMAIN/images/kloutlet-sq.png\"> ".htmlentities($kscore)." | <span id=\"name\">@".htmlentities($twitter)." </span></a></p> ";
}
else
@@ -73,4 +75,4 @@
echo $object;
-?>
Please sign in to comment.
Something went wrong with that request. Please try again.