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
/* (From HTML 5 Boilerplate) | |
* Clearfix: contain floats | |
* | |
* For modern browsers | |
* 1. The space content is one way to avoid an Opera bug when the | |
* `contenteditable` attribute is included anywhere else in the document. | |
* Otherwise it causes space to appear at the top and bottom of elements | |
* that receive the `clearfix` class. | |
* 2. The use of `table` rather than `block` is only necessary if using | |
* `:before` to contain the top-margins of child elements. |
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
#footer { | |
position:fixed; | |
left:0px; | |
bottom:0px; | |
height:30px; | |
width:100%; | |
background:#999; | |
} |
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
/*Listing of common CSS font Families*/ | |
.fontFamilyList { | |
font-family: Arial, Helvetica, sans-serif; | |
font-family: 'Arial Black', Gadget, sans-serif; | |
font-family: 'Bookman Old Style', serif; | |
font-family: 'Comic Sans MS', cursive; | |
font-family: Courier, monospace; | |
font-family: 'Courier New', Courier, monospace; | |
font-family: Garamond, serif; |
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
@charset "UTF-8"; | |
/* CSS Document */ | |
/* Reset CSS Start */ | |
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; | |
font-size: 100%; |
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
@charset "UTF-8"; | |
/* CSS Document */ | |
/* default tags - start */ | |
/* default tags - end */ | |
/* section 1 - start */ |
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
/*Add the folowing code to the top of the CSS file (with a .php extension) to tell the browser it's actually a PHP file.*/ | |
<?php header("Content-type: text/css; charset: UTF-8"); ?> |
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 | |
// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net) | |
function fue($hash,$times) { | |
// Execute the encryption(s) as many times as the user wants | |
for($i=$times;$i>0;$i--) { | |
// Encode with base64... | |
$hash=base64_encode($hash); | |
// and md5... | |
$hash=md5($hash); |
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 | |
// returns "City, State" if found otherwise defaults to "Unkown Location" | |
function detect_city($ip) { | |
$default = 'Unkown Location'; | |
if (!is_string($ip) || strlen($ip) < 1 || $ip == '127.0.0.1' || $ip == 'localhost') | |
$ip = '8.8.8.8'; | |
$curlopt_useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)'; |
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 | |
// Used to determine the IP address of the client. | |
function GetIpAddr() | |
{ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])) | |
{ | |
$ip=$_SERVER['HTTP_CLIENT_IP']; | |
} | |
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
{ |
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 | |
/* | |
Use To validate an email address according to RFCs 5321, 5322 and others. | |
-------------------------------------------------------------------------------- | |
How to use is_email() | |
-------------------------------------------------------------------------------- | |
1. Add the downloaded file is_email.php to your project | |
2. In your scripts use it like this: |
OlderNewer