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
| session_start(); | |
| require_once './LinkedIn-PHP-SDK-master/linkedInAPI.php'; | |
| //company: Fingo | |
| //app name: Fingo UK | |
| //api key: 779qvypvk0ix5p | |
| //Secret Key: SGlmaPyVmaB0HVJE | |
| //OAuth User Token: 9d62e79a-b89e-414e-ad59-0ec891b86931 | |
| //OAuth User Secret: 9d670629-48ec-4da5-be48-298e411b5d71 |
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 s = "Fri Apr 09 12:53:54 +0000 2010"; | |
| var date = new Date(s.replace(/^\w+ (\w+) (\d+) ([\d:]+) \+0000 (\d+)$/, "$1 $2 $4 $3 UTC")); | |
| // Cross-browser, time-zone-aware parsing via JavaScript: | |
| // Tested on IE, Firefox, Safari, Chrome and Opera. |
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
| $("#obj").attr('src','images/test.png'); |
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 getAddressLatLong($address) | |
| { | |
| if (!is_string($address))die("ERROR! - Invalid Address!"); | |
| $_url = sprintf('http://maps.google.com/maps?output=js&q=%s',rawurlencode($address)); | |
| $_result = false; | |
| if($_result = file_get_contents($_url)) { | |
| if(strpos($_result,'errortips') > 1 || strpos($_result,'Did you mean:') !== false) return false; | |
| preg_match('!center:\s*{lat:\s*(-?\d+\.\d+),lng:\s*(-?\d+\.\d+)}!U', $_result, $_match); | |
| $_coords['lat'] = $_match[1]; | |
| $_coords['long'] = $_match[2]; |