Skip to content

Instantly share code, notes, and snippets.

View kamaulynder's full-sized avatar
💭
Need great Female Tech Talent, talk to me!!

Linda Kamau kamaulynder

💭
Need great Female Tech Talent, talk to me!!
View GitHub Profile
<?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
/**
* Append phone numbers that comes from monitors to their location.
* TODO rework this wack solution
*/
public function _append_location_find() {
$location_find = Event::$data;
if (isset($_SESSION['from_location']))
{
$location_find = $_SESSION['from_location'];
<?php
/**
* Single entity view js file.
*
* Handles javascript stuff related to edit report function.
*
* 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
/**
* Manipulate view
*/
public function _manipulate_incident()
{
$incidents = Event::$data;
$filter = $this->_filter();
$auth = new Auth();
$admin_section = $this->_get_admin_section($_SESSION['auth_user']->id);
public function _manipulate_incident()
{
$incidents = Event::$data;
//die(print_r(Kohana::debug($incidents)));
$filter = $this->_filter();
$auth = new Auth();
$admin_section = $this->_get_admin_section($_SESSION['auth_user']->id);
$sections = $this->_get_admin_sections();
$pagination = $this->_pagination();
/**
* Creates the DB tables for the service delivery plugin
*/
--
-- Table boundary_type
--
CREATE TABLE IF NOT EXISTS `boundary_type` (
`id` INT NOT NULL AUTO_INCREMENT,
`boundary_type_name` VARCHAR(45) NOT NULL ,
/**
* Creates the DB tables for the service delivery plugin
*/
--
-- Table boundary_type
--
CREATE TABLE IF NOT EXISTS `boundary_type` (
`id` INT NOT NULL AUTO_INCREMENT,
`boundary_type_name` VARCHAR(45) NOT NULL ,
/**
* Creates the DB tables for the service delivery plugin
*/
--
-- Table boundary_type
--
CREATE TABLE IF NOT EXISTS `boundary_type` (
`id` INT NOT NULL AUTO_INCREMENT,
`boundary_type_name` VARCHAR(45) NOT NULL ,
@kamaulynder
kamaulynder / gist:953709
Created May 3, 2011 16:53
ui.huduma.php
<?php
/**
* Language strings for the Service delivery plugin
*/
$lang = array(
// Boundaries
'boundary' => 'Administrative Boundary',
'boundaries' => 'Administrative Boundaries',
'boundary_name' => 'Boundary Name',
'boundary_type' => 'Boundary Type',
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost