Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
<?php
$hex1 = 'FF0000';
$hex2 = '0000FF';
$hex3 = '';
$r1 = base_convert($hex1{0}.$hex1{1},16,10);
$g1 = base_convert($hex1{2}.$hex1{3},16,10);
$b1 = base_convert($hex1{4}.$hex1{5},16,10);
$r2 = base_convert($hex2{0}.$hex2{1},16,10);
<?php
/**
* Converts text anchors into links.
*
* @param string text to auto link
* @return string
*/
public static function auto_link_urls($text)
{
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Election Tool 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
<select>
<option value="Pacific/Midway">(GMT-11:00) Midway Island, Samoa</option>
<option value="America/Adak">(GMT-10:00) Hawaii-Aleutian</option>
<option value="Etc/GMT+10">(GMT-10:00) Hawaii</option>
<option value="Pacific/Marquesas">(GMT-09:30) Marquesas Islands</option>
<option value="Pacific/Gambier">(GMT-09:00) Gambier Islands</option>
<option value="America/Anchorage">(GMT-09:00) Alaska</option>
<option value="America/Ensenada">(GMT-08:00) Tijuana, Baja California</option>
<option value="Etc/GMT+8">(GMT-08:00) Pitcairn Islands</option>
<option value="America/Los_Angeles">(GMT-08:00) Pacific Time (US & Canada)</option>
<?php
/**
* Performs install/uninstall methods for the Analysis Plugin
*
* @package Ushahidi
* @author Ushahidi Team
* @copyright (c) 2008 Ushahidi Team
* @license http://www.ushahidi.com/license.html
*/
class Analysis_Install {
diff --git a/application/views/main_js.php b/application/views/main_js.php
index 3cce2f9..452c07b 100644
--- a/application/views/main_js.php
+++ b/application/views/main_js.php
@@ -40,6 +40,7 @@
var defaultZoom = <?php echo $default_zoom; ?>;
var markerRadius = <?php echo $marker_radius; ?>;
var markerOpacity = "<?php echo $marker_opacity; ?>";
+ var selectedFeature;
diff --git a/application/views/main_js.php b/application/views/main_js.php
index 3cce2f9..f0ad38f 100644
--- a/application/views/main_js.php
+++ b/application/views/main_js.php
@@ -40,6 +40,7 @@
var defaultZoom = <?php echo $default_zoom; ?>;
var markerRadius = <?php echo $marker_radius; ?>;
var markerOpacity = "<?php echo $marker_opacity; ?>";
+ var selectedFeature;