This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="fb-root"></div> | |
<script src="http://connect.facebook.net/es_ES/all.js"></script> | |
<script> | |
$(document).ready(function(){ | |
FB.init({ | |
appId : 'APP_ID', | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Return how much compression was applied to the comment. | |
*/ | |
function repetitive($comment){ | |
if(strlen($comment) / strlen(gzcompress($comment)) > 10) { | |
return true; | |
} | |
return false; | |
} |