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
<?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 | |
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
{"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 | |
$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
<?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
#! /bin/sh | |
cd /dir_to/Ushahidi-Localizations/ | |
/usr/bin/git pull origin master | |
cd /dir_to/Ushahidi-Localizations.wiki/ | |
/usr/bin/git pull origin master | |
/usr/bin/php /dir_to/Ushahidi-Localizations.updater/update.php |
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 defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* Open311 Hook - Load All Events | |
* | |
* PHP version 5 | |
* LICENSE: This source file is subject to LGPL license | |
* that is available through the world-wide-web at the following URI: | |
* http://www.gnu.org/copyleft/lesser.html | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi - http://source.ushahididev.com |
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
$(document).ready(function(){ | |
var ci_styles = new OpenLayers.StyleMap({ | |
"default": new OpenLayers.Style({ | |
pointRadius: "10", // sized according to type attribute | |
fillColor: "${fillcolor}", | |
strokeColor: "${strokecolor}", | |
strokeWidth: 2, | |
graphicZIndex: 1 | |
}, |
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
# Turn on URL rewriting only when mod rewrite is turn on | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Installation directory | |
RewriteBase /ushahidi | |
# Protect application and system files from being viewed | |
RewriteRule ^(application|modules|system) - [F,L] |