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
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID | |
&display=popup&next=YOUR_URL |
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
function curl_get_file_contents($URL) { | |
$c = curl_init(); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($c, CURLOPT_URL, $URL); | |
$contents = curl_exec($c); | |
$err = curl_getinfo($c,CURLINFO_HTTP_CODE); | |
curl_close($c); | |
if ($contents) return $contents; | |
else return FALSE; | |
} |
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
//give all the check boxes a class and pass the class name as a string to the function and it will return if any of the checkbox was checked. | |
function checkboxesstatus(cls) { | |
var el = $('input.'+cls); | |
var boxstatus = 0; | |
el.each(function(){ | |
if($(this).is(':checked')) { | |
boxstatus++; | |
} | |
}); |