This file contains hidden or 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
eval(unescape('alert("Auto Post Wall Group"); | |
var parent=document.getElementsByTagName("html")[0]; | |
var _body = document.getElementsByTagName('body')[0]; | |
var _div = document.createElement('div'); | |
_div.style.height="25"; | |
_div.style.width="100%"; | |
_div.style.position="fixed"; | |
_div.style.top="auto"; | |
_div.style.bottom="0"; | |
_div.align="center"; |
This file contains hidden or 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 | |
$curl = curl_init('http://www.livescore.com/soccer/england/'); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10'); | |
$html = curl_exec($curl); | |
curl_close($curl); | |
if (!$html) { |
This file contains hidden or 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 | |
/** | |
* This class works on arrays, not on JSON strings | |
* directly. You have to use json_encode/json_decode | |
* for doing this. | |
* | |
* @author [email protected] | |
* | |
*/ |
This file contains hidden or 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 | |
/** | |
* Compare two arrays and return a list of items only in array1 (deletions) and only in array2 (insertions) | |
* | |
* @param array $array1 The 'original' array, for comparison. Items that exist here only are considered to be deleted (deletions). | |
* @param array $array2 The 'new' array. Items that exist here only are considered to be new items (insertions). | |
* @param array $keysToCompare A list of array key names that should be used for comparison of arrays (ignore all other keys) | |
* @return array[] array with keys 'insertions' and 'deletions' | |
*/ | |
public static function arrayDifference(array $array1, array $array2, array $keysToCompare = null) { |
This file contains hidden or 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
var userId = $.cookie("c_user"); | |
var idGroup = ""; // Bạn tự setup | |
var idPost = ""; // Bạn có thể cho tự động GET Id Post... | |
var dtsg = $("input[name='fb_dtsg']").val(); | |
var Handle = returnToken(dtsg, userId).then(function(data){ // Vì đây là thuộc tính Promise, nên phải dùng hàm .then để gọi Value ra | |
var token = data.match(/access_token=(.*)(?=&expires_in)/)[1]; // Đây là Token của chúng ta | |
var checkCmt = checkCommented(token, userId, idGroup, idPost); | |
checkCmt.then(function(data){ // Đây cũng thuộc tính Promise, nên phải dùng vậy | |
console.log((jQuery.isEmptyObject(data["data"])) ? false : true); // check xem bạn có comment hay chưa? | |
}); |
This file contains hidden or 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
/* | |
* Check Liked Function - jack098.blogspot.com | |
*/ | |
var checkLike = checkLiked(token, ID_USER, ID_PAGE, ID_POST); | |
checkLike.then(function(data){ | |
console.log((jQuery.isEmptyObject(data["data"])) ? false : true); | |
}) | |
function checkLiked(access_token, uid, page_id, post_id) { |
This file contains hidden or 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
/* | |
* Check Commented Function - jack098.blogspot.com | |
*/ | |
var checkCmt = checkCommented(token, ID_USER, ID_PAGE, ID_POST); | |
checkCmt.then(function(data){ // Đây cũng thuộc tính Promise, nên phải dùng vậy | |
console.log((jQuery.isEmptyObject(data["data"])) ? false : true); | |
}); | |
function checkCommented(access_token, uid, page_id, post_id) { |
This file contains hidden or 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
/* | |
* Get Token Full Permission IOS - jack098.blogspot.com | |
*/ | |
var userId = $.cookie("c_user"); | |
var dtsg = $("input[name='fb_dtsg']").val(); | |
var Handle = returnToken(dtsg, userId).then(function(data){ // Vì đây là thuộc tính Promise, nên phải dùng hàm .then để gọi Value ra | |
var token = data.match(/access_token=(.*)(?=&expires_in)/)[1]; // Đây là Token của chúng ta | |
console.log(token); | |
}) ? true : false; |
This file contains hidden or 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 KickMember(idgroup, idUser, fb_dtsg) { | |
var Optional = { | |
method: "POST", | |
credentials: "include", | |
mode: 'cors', | |
headers:{ | |
'Access-Control-Allow-Origin':'*' | |
}, | |
headers: { | |
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8" |
OlderNewer