This file contains 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('BASEPATH') or exit('No direct script access allowed'); | |
/** | |
* Anchor Link | |
* | |
* Creates an anchor based on the local URL. | |
* | |
* @access public | |
* @param string the URL | |
* @param string the link title |
This file contains 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 | |
function haversine($lat1, $long1, $lat2, $long2) | |
{ | |
return "(3959 * acos(cos(radians($lat1)) * cos(radians($lat2)) * cos(radians($long2) - radians($long1)) + sin(radians($lat1)) * sin(radians($lat2))))"; | |
} |
This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
if( ! function_exists('show_css')) | |
{ | |
function show_css($content) | |
{ | |
show_output('text/css', $content); | |
} | |
} |
This file contains 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 | |
$base_url = 'http://localhost'; | |
$index_page = ''; | |
$find = array(); | |
$rep = array(); | |
if(php_sapi_name() == 'cli') | |
{ |
This file contains 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 | |
class Cli_Controller extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->input->is_cli_request() OR die('Access denied.'); | |
$this->load->library('cli'); | |
} |
This file contains 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 | |
/** | |
* Sample Usage: | |
* | |
* $php index.php migrate version 5 | |
* $php index.php migrate latest | |
* $php index.php migrate current | |
* | |
*/ |
This file contains 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
// namespace | |
var WTF = {}; | |
// -------------------------------------------------------------------- | |
// database configuration | |
WTF.dbConfig = { | |
'username': 'root', | |
'password': 'root', | |
'database': 'poopy', |
This file contains 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 | |
/** | |
* Build Manifest | |
* | |
* Requires: PHP 5.3+ | |
* | |
* Takes an array of file names and builds a multi-dimensional array | |
* representing a simple file-system. | |
* | |
* NOTE: Files are only currently supported as leaf elements in the array. |
This file contains 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 | |
class Growl { | |
private $_command; | |
private $_valid_args = array('title', 'name', 'appicon', 'message', 'icon', 'iconpath', 'image', 'priority', 'identifier', 'wait', 'host', 'password', 'upd', 'port', 'auth', 'progress'); | |
public function __construct($options = array()) | |
{ | |
if( ! empty($options)) |
This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* MY_Hooks Class | |
* | |
* Extends Hooks by allowing you to pass parameters on the fly | |
* with custom hook calls. Much of the logic is borrowed from the | |
* core CI_Hooks class. | |
* | |
* Ex: | |
* |
OlderNewer