Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
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/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
<?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
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:
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:
{
"payload": {
"task": "send",
"messages": [
{
"to": "14046474562",
"message": "Thank you for sending a message to Ushahidi. What is the closest town or city for your last message?"
}
]
}
<?php
// Pagination
$pagination = new Pagination(array(
'query_string' => 'page',
'items_per_page' => (int) Kohana::config('settings.items_per_page'),
'total_items' => ORM::factory("incident")
->where("incident_active", 1)
->where($location_id_in)
->where($incident_id_in)
CREATE TABLE IF NOT EXISTS `frontlinesms`
(
id int(11) unsigned NOT NULL AUTO_INCREMENT,
frontlinesms_key varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
);
<?php defined('SYSPATH') or die('No direct script access.');
class hello_world {
public function __construct()
{
$block = array(
"classname" => "hello_world",
"name" => "Hello World",
"description" => "Ushahidi extensible content blocks"
@dkobia
dkobia / gist:1095685
Created July 20, 2011 19:14
Swift Data
{
"id": "a8a9b40f61f61eda91a1ca558f0e13e5",
"state": "new_content",
"text": [
{
"languageCode": "en",
"title": "2nd UK Tabloid Probed by Police - TIME",
"text": [
null
]