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.'); | |
class System_Config | |
{ | |
// First host should be the production server. | |
public static $configs = array( | |
'example.com' => array( | |
'database.default.connection' => array( | |
'type' => 'mysql', | |
'user' => 'username', |
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
/* New/Updated List */ | |
font-family: Arial,Helmet,Freesans,sans-serif; | |
font-family: 'Arial Narrow','Nimbus Sans L',sans-serif; | |
font-family: 'Bookman Old Style',Bookman,'URW Bookman L',serif; | |
font-family: 'Century Gothic',Futura,'URW Gothic L',sans-serif; | |
font-family: 'Comic Sans MS',cursive; | |
font-family: 'Courier New',Courier,Freemono,'Nimbus Mono L',monospace; | |
font-family: Constantina,Georgia,'Nimbus Roman No9 L',serif; | |
font-family: Consolas,'Lucida Console','Bitstream VeraSans Mono','DejaVu Sans Mono',monospace; | |
font-family: 'Lucida Sans Unicode','Lucida Grande','Lucida Sans','DejaVu Sans Condensed',sans-serif; |
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
SELECT * FROM table | |
WHERE id REGEXP '(,|^){$this->list}(,|$)' |
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
RewriteEngine on | |
RewriteBase / | |
# Add www rule | |
# RewriteCond %{HTTP_HOST} ^example.com$ [NC] | |
# RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] | |
# Remove www rule | |
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] | |
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] |
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
### PERISHABLE PRESS 4G BLACKLIST ### | |
# ESSENTIALS | |
RewriteEngine on | |
ServerSignature Off | |
Options All -Indexes | |
Options +FollowSymLinks | |
# FILTER REQUEST METHODS | |
<IfModule mod_rewrite.c> |
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
<script type="text/javascript"> | |
var agent=navigator.userAgent.toLowerCase(); | |
var is_iphone = (agent.indexOf('iphone')!='-1'); | |
var is_ipad = (agent.indexOf('ipad')!='-1'); | |
if (is_iphone) { | |
document.write("<video src='http://www.vimeo.com/play_redirect?clip_id=00000000&quality=mobile' controls='controls' width='000' height='000'></video>"); | |
} | |
else if (is_ipad) { | |
document.write("<video src='http://www.vimeo.com/play_redirect?clip_id=00000000' controls='controls' width='000' height='000'></video>"); | |
} |
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
div.box { | |
-webkit-gradient(linear, left top, left bottom, from(red), to(white)); | |
-moz-linear-gradient(red, white) | |
width: 480px; | |
height: 320px; | |
} |
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.'); | |
class html extends html_Core | |
{ | |
/** | |
* Minify URI Builder | |
* | |
* @param string $href | |
* @param string $type | |
* @return string |
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
# Turn on URL rewriting | |
RewriteEngine On | |
# Installation directory | |
RewriteBase / | |
# Protect application and system files from being viewed | |
RewriteRule ^(application|modules|system) - [F,L] | |
# Allow any files or directories that exist to be displayed directly |
OlderNewer