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'); | |
if ($_SERVER['SERVER_ADDR'] == '') { | |
$active_group = 'staging'; | |
} elseif ($_SERVER['SERVER_ADDR'] == '208.73.210.85') { /* using qa-zone.com */ | |
$active_group = 'production'; | |
} else { | |
$active_group = 'development'; | |
} | |
$active_record = TRUE; |
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 Config Items | |
|-------------------------------------------------------------------------- | |
| | |
| The following items are for use with ExpressionEngine. The rest of | |
| the config items are for use with CodeIgniter, some of which are not | |
| observed by ExpressionEngine, e.g. 'permitted_uri_chars' |
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
FileETag None | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Force www | |
RewriteCond %{HTTP_HOST} ^example.com$ [NC] | |
RewriteRule ^(.*)$ http://www.example.com$1 [R=301,L] | |
# Uncomment to Remove www, but comment the above 2 lines out. :) | |
# Otherwise the world will end |
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
<!--http://stackoverflow.com/questions/1334613/how-to-recursively-zip-a-directory-in-php--> | |
<?php | |
function Zip($source, $destination) | |
{ | |
if (!extension_loaded('zip') || !file_exists($source)) { | |
return false; | |
} | |
$zip = new ZipArchive(); |
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
{!-- | |
1. THE CHANNEL AND FIELD NAMES NEED TO BE CHECKED FOR ACCURACY | |
2. THE DYNAMIC LINK PATHS NEED TO BE CHECKED FOR ACCURACY | |
--} | |
{exp:rss:feed channel="news"} | |
<?xml version="1.0" encoding="{encoding}"?> | |
<rss version="2.0" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" |
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
<h4><strong><a title="{forum_name}" href="{path:viewforum}">{forum_name}</a></strong></h4> | |
{if logged_in} <a class="fancybox-forum" href="/resources/forum-subscriptions/<?php $tokens = explode('/', '{path:viewforum}'); echo $tokens[sizeof($tokens)-2]; ?>"><small>Manage Subscription</small></a> {/if} {if forum_description} | |
<p class="fm-description">{forum_description}</p> | |
{/if} |
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
<script type="text/javascript">// <![CDATA[ | |
if (/forum-subscriptions/.test(self.location.href)){window.location = "/forums"} | |
// ]]></script> | |
{exp:forum_subscribe:forum_single forum_id="{segment_3}"} | |
<h2>{forum_name}</h2> | |
{if subscribed} | |
<strong>SUBSCRIBED</strong> - <a href="{forum_subscribe_url}">Click to Unsubscribe</a> | |
{if:else} | |
<strong>NOT SUBSCRIBED</strong> - <a href="{forum_subscribe_url}">Click to Subscribe</a> | |
{/if} |
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
RewriteEngine On | |
# secure site files | |
RewriteRule ^(_app) - [F,L] | |
RewriteRule ^(_config) - [F,L] | |
RewriteRule ^(_content) - [F,L] | |
RewriteRule ^(.*).yml$ - [F,L] | |
RewriteRule ^(.*).yaml$ - [F,L] | |
RewriteRule ^(.*).html$ - [F,L] | |
RewriteRule ^(.*/)?\.git+ - [F,L] |
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
defaults write com.apple.screencapture type image_format | |
killall SystemUIServer |
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
defaults write com.apple.screencapture location ~/Screenshots | |
killall SystemUIServer |
OlderNewer