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
switch ($_SERVER['HTTP_HOST']) { | |
//development | |
case 'dev.example.com': | |
$assign_to_config['global_vars']['site_mode'] = 'dev'; | |
break; | |
//default | |
default: | |
$assign_to_config['global_vars']['site_mode'] = 'live'; | |
break; | |
} |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 4.3.2 or newer | |
* | |
* @package CodeIgniter | |
* @author Rick Ellis | |
* @copyright Copyright (c) 2006, EllisLab, Inc. | |
* @license http://www.codeignitor.com/user_guide/license.html |
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 | |
$plugin_info = array( | |
'pi_name' => 'Change Site URL', | |
'pi_version' =>'1.0', | |
'pi_author' =>'Nine Four Ltd', | |
'pi_author_url' => 'http://www.ninefour.co.uk/labs/', | |
'pi_description' => 'Changes the current site URL.', | |
'pi_usage' => Change_site::usage() | |
); |
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
.inset12 { | |
margin-left: -940px; | |
} | |
.inset11 { | |
margin-left: -860px; | |
} | |
.inset10 { | |
margin-left: -780px; | |
} |
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 | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Child Category Count', | |
'pi_version' =>'1.0', | |
'pi_author' =>'Nathan Pitman', | |
'pi_author_url' => 'http://ninefour.co.uk/labs', | |
'pi_description' => 'Returns number of child categories given a parent category ID', |
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
How to set Shuttle.app up as a convenient tool for connecting to a remote server with a single click from the menu bar. | |
Install Homebrew (http://brew.sh/) by opening a new terminal window and pasting in: | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
Follow the prompts. After installation is complete install the 'sshpass' formula: | |
brew install https://raw.github.com/eugeneoden/homebrew/eca9de1/Library/Formula/sshpass.rb |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.com |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* ExpressionEngine - by EllisLab | |
* | |
* @package ExpressionEngine | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
* @license http://expressionengine.com/user_guide/license.html | |
* @link http://expressionengine.com |
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
Time: 0.1710 | |
SELECT DISTINCT(exp_categories.cat_id), parent_id FROM exp_categories | |
LEFT JOIN exp_category_posts ON exp_categories.cat_id = exp_category_posts.cat_id | |
LEFT JOIN exp_channel_titles ON exp_category_posts.entry_id = exp_channel_titles.entry_id | |
WHERE group_id IN ('13','13','13') AND exp_category_posts.cat_id IS NOT NULL AND exp_channel_titles.channel_id IN ('1','8','5','6','10','11','13','18','14','15','16','19','20','22','41','42','30','31','33','34','35','36','37','39','40','43','44') AND exp_channel_titles.status != 'closed' AND exp_channel_titles.entry_date < 1410873364 AND (exp_channel_titles.expiration_date = 0 OR exp_channel_titles.expiration_date > 1410873364) AND parent_id = 0 ORDER BY group_id, parent_id, cat_order | |
#APP/libraries/Template.php L:1559 Channel::categories() |
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
(function($){ | |
$(function(){ | |
var $form = $('#search'), // Search form | |
$target = $('#results'), // Results container | |
$rp = 'search/ajax-results'; // Template for results only | |
// Function to execute on success | |
var success = function(data, status, xhr) { | |
$target.html(data); | |
}; |
OlderNewer