Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (43 sloc) 1.47 KB
$username = $_POST["username"];
if (empty($username)) {
echo "ERROR";
$compact = $_POST["compact"];
if(empty($compact)) {
$compact = "false";
} else {
$compact = 'true';
$everywhere = $_POST["everywhere"];
if(empty($everywhere)) {
$everywhere = "false";
} else {
$everywhere = 'true';
$script =<<<EOT
<script type='text/javascript' src='$username'> </script>
<div style="text-align:center;"><a id="main_flattr" class="FlattrButton" style="display:none;" href=""></a></div>
<script type='text/javascript' src='$compact&everywhere=$everywhere'></script>
<form name="send" action="">
<input type="hidden" name="widget.title" value="Flattr this blog"/>
<input type="hidden" name="widget.content" value="
<?php echo htmlspecialchars( str_replace('"', "'", $script)); ?>
<input type="hidden" name="widget.template" value="&lt;data:content/&gt;" />
<!-- <input type="hidden" name="infoUrl" value="" />
<input type="hidden" name="logoUrl" value="" />
if user is logged out the data is lost if it is sent as POST data.
When sent as GET the URL is to long to process when user need to log in-->
<script type="text/javascript" language="JavaScript">