Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
var ci_styles = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
pointRadius: "10", // sized according to type attribute
fillColor: "${fcolor}",
strokeColor: "${scolor}",
strokeWidth: 2,
graphicZIndex: 1
},
{
context:
<?php defined('SYSPATH') or die('No direct script access.');
/**
* EMAIL Scheduler Controller (IMAP/POP3)
*
* 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
diff --git a/application/controllers/scheduler/s_email.php b/application/controllers/scheduler/s_email.php
index 1be52ca..0d7bfb0 100644
--- a/application/controllers/scheduler/s_email.php
+++ b/application/controllers/scheduler/s_email.php
@@ -151,6 +151,54 @@ class S_Email_Controller extends Controller {
}
}
+
+ // Auto-Create A Report if Reporter is Trusted
CREATE TABLE IF NOT EXISTS `checkin`
(
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`user_Id` INT UNSIGNED NOT NULL,
`location_id` BIGINT UNSIGNED NOT NULL,
`checkin_description` VARCHAR(255),
`checkin_date` DATETIME NOT NULL,
`checkin_auto` ENUM('0','1') DEFAULT '0',
PRIMARY KEY (`id`)
);
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;
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;
<?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 {
<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 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
<?php
/**
* Converts text anchors into links.
*
* @param string text to auto link
* @return string
*/
public static function auto_link_urls($text)
{