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 is the PHP Cloud Files API. | |
* | |
* <code> | |
* # Authenticate to Cloud Files. The default is to automatically try | |
* # to re-authenticate if an authentication token expires. | |
* # | |
* # NOTE: Some versions of cURL include an outdated certificate authority (CA) | |
* # file. This API ships with a newer version obtained directly from |
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 | |
$viddler = new ViddlerV2($this->api_key); | |
$user = $viddler->viddler_users_auth(array('user'=>$this->username, 'password'=>$this->password)); | |
$filename = upload::save('incident_video_file'); | |
$params = array( | |
'sessionid'=>$user['auth']['sessionid'], | |
'title'=>'thisisatest'.rand(0,9999), | |
'tags'=>'tag1,tag2,tag3', | |
'description'=>'desc here dude', |
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
{"payload":{"domain":"http:\/\/localhost:8888\/ushahidi_brian\/","version":[{"version":"2.1"}],"checkins":1,"email":"","sms":null,"plugins":["crowdmapmsg","viddler"]},"error":{"code":"0","message":"No Error"}} |
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 | |
class Example { | |
public $count; | |
function __construct() | |
{ | |
$this->count = 0; | |
} |
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 | |
$iso_array = array( | |
'ABW'=>'Aruba', | |
'AFG'=>'Afghanistan', | |
'AGO'=>'Angola', | |
'AIA'=>'Anguilla', | |
'ALA'=>'Åland Islands', | |
'ALB'=>'Albania', | |
'AND'=>'Andorra', | |
'ARE'=>'United Arab Emirates', |
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 | |
$iso_array = array( | |
'AD'=>'AND', | |
'AE'=>'ARE', | |
'AF'=>'AFG', | |
'AG'=>'ATG', | |
'AI'=>'AIA', | |
'AL'=>'ALB', | |
'AM'=>'ARM', | |
'AO'=>'AGO', |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title>Local Ushahidi Deployment</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/jquery-ui-themeroller.css" /> | |
<link rel="stylesheet" type="text/css" href="http://ushahidi.osx/themes/default/css/style.css" /> | |
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/iehacks.css" /> | |
<![endif]--><!--[if IE 7]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/ie7hacks.css" /> | |
<![endif]--><!--[if IE 6]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/ie6hacks.css" /> |
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
ALTER IGNORE TABLE `feed_item` ADD UNIQUE INDEX `name` (`item_link`); |
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
Floating Point Number | |
Source: http://www.regular-expressions.info/floatingpoint.html | |
[-+]?([0-9]*\.)?[0-9]+ | |
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
map.setCenter( | |
new OpenLayers.LonLat(-71.147, 42.472).transform( | |
new OpenLayers.Projection("EPSG:4326"), | |
map.getProjectionObject() | |
), 12 | |
); |