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 | |
$bg_img='bg.jpg'; //path to background (JPG ext) | |
$logo_img='logo.png'; // path to logo (PNG ext.) | |
list($width_of_bg, $height_of_bg) = getimagesize($bg_img); // to calculate background image width and height | |
list($width_of_logo, $height_of_logo) = getimagesize($logo_img); //to calculate logo image width and height | |
//for bottom right | |
$logo_loc_width=$width_of_bg-$width_of_logo; | |
$logo_loc_height=$height_of_bg-$height_of_logo; |
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 | |
// parameters | |
$hubVerifyToken = 'TOKEN123456abcd'; | |
$accessToken = "xxx"; | |
// check token at setup | |
if ($_REQUEST['hub_verify_token'] === $hubVerifyToken) { | |
echo $_REQUEST['hub_challenge']; | |
exit; | |
} |
NewerOlder