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
# 5G BLACKLIST/FIREWALL (2013) | |
# @ http://perishablepress.com/5g-blacklist-2013/ | |
# 5G:[QUERY STRINGS] | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{QUERY_STRING} (\"|%22).*(<|>|%3) [NC,OR] | |
RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR] | |
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR] | |
RewriteCond %{QUERY_STRING} (\\|\.\./|`|=\'$|=%27$) [NC,OR] |
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
Using the script* provided below you will be able to make automatic backup of your hosting account (domains and MySQL databases). This backup script includes SSL support. This is not necessary if you run the script on the server for which you are generating the backup; but the SSL support could be important if you are running the script somewhere else to connect to your cPanel hosting account. | |
<?php | |
// PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. | |
// This script contains passwords. It is important to keep access to this file secure (we would ask you to place it in your home directory, not public_html) | |
// You need create 'backups' folder in your home directory ( or any other folder that you would like to store your backups in ). |
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('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 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 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 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 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 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 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 |
OlderNewer