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
/* | |
* Implementation of hook_nodeapi() | |
* Add gids parameter to node/XXX/edit urls - so noderelationships has context | |
*/ | |
function og_country_nodeapi(&$node, $op) { | |
if ($op != 'prepare') return; | |
if (!empty($_REQUEST['gids'])) return; | |
if (arg(2) == 'edit' && $node->og_groups) { |
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.'); | |
/** | |
* Base Controller | |
* Enforces basic access control, ie. for private deployments | |
* | |
* 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 | |
* |
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
@ -319,19 +319,25 @@ class Upgrade_Controller extends Admin_Controller { | |
if ($table_prefix) | |
{ | |
$find = array( | |
'CREATE TABLE IF NOT EXISTS `', | |
'INSERT INTO `', | |
+ 'INSERT IGNORE INTO `', | |
'ALTER TABLE `', | |
- 'UPDATE `' | |
+ 'UPDATE `', |
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/bash | |
# To check tags, run this in the browser | |
# https://api.github.com/repos/ushahidi/Ushahidi_Web/tags | |
if [[ $# -lt 2 ]] | |
then | |
echo "Usage: gen_updates.sh [previous-tag] [current-tag]" | |
exit 1 | |
fi |
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 blocks::open("reports");?> | |
<?php blocks::title(Kohana::lang('ui_main.reports_listed'));?> | |
<table class="table-list"> | |
<thead> | |
<tr> | |
<th scope="col" class="title"><?php echo Kohana::lang('ui_main.title'); ?></th> | |
<th scope="col" class="location"><?php echo Kohana::lang('ui_main.location'); ?></th> | |
<th scope="col" class="date"><?php echo Kohana::lang('ui_main.date'); ?></th> | |
</tr> | |
</thead> |
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
ALTER TABLE `settings` ADD `allow_alerts` tinyint(4) NOT NULL DEFAULT '0'; | |
UPDATE `settings` SET `db_version` = '66' WHERE `id`=1 LIMIT 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
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbuf-2.26.2.tar.xz | |
Already downloaded: /Users/robbie/Library/Caches/Homebrew/gdk-pixbuf-2.26.2.tar.xz | |
xz -dc "/Users/robbie/Library/Caches/Homebrew/gdk-pixbuf-2.26.2.tar.xz" | /usr/bin/tar xf - | |
==> ./configure --disable-dependency-tracking --disable-maintainer-mode --enable-debug=no --prefix=/usr/local/Cellar/gdk-pixbuf/2.26.2 --with-libjasper --enable-introspection=no --disable-Bsymbolic --without-gdiplus | |
./configure --disable-dependency-tracking --disable-maintainer-mode --enable-debug=no --prefix=/usr/local/Cellar/gdk-pixbuf/2.26.2 --with-libjasper --enable-introspection=no --disable-Bsymbolic --without-gdiplus | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes |
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
POST /api?task=report HTTP/1.1 | |
Host: ushahidi.robbiemackay.com | |
Content-Length: 1177 | |
Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm | |
Authorization: Basic cm9iYmllQHVzaGFoaWRpLmNvbTpFdjQ5WEpaTGRzeDBKNTg= | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.82 Safari/537.1 | |
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryBvVUFzEtkUIBzPxE | |
Accept: */* | |
Accept-Encoding: gzip,deflate,sdch | |
Accept-Language: en-US,en;q=0.8 |
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
POST /v1/session/register/ HTTP/1.1 | |
Host: api.crdmp3.com | |
Content-Length: 94 | |
Origin: http://crdmp3.com | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 | |
Content-Type: application/x-www-form-urlencoded; charset=UTF-8 | |
Accept: application/json, text/javascript, */*; q=0.01 | |
Referer: http://crdmp3.com/ | |
Accept-Encoding: gzip,deflate,sdch | |
Accept-Language: en-US,en;q=0.8 |
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/bash | |
# Ushahidi cron script | |
if [ $# -lt 2 ] ; then | |
echo "Usage: ushahidi_cron [docroot] [baseurl]" | |
exit 1 | |
fi | |
DOCROOT=$1 | |
BASEURL=$2 | |
LOCK_ID=`echo $BASEURL | sed -r -e "s#http[s]{0,1}://##g"` |
OlderNewer