Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

css crop

// css crop
Ativan delivery to US Minnesota. Buy Ativan in Tucson. Buy Ativan from a usa pharmac Cod online Valium. Valium delivery to US Maryland. Buy free overnight pharmacy Valiu
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>untitled</title>
	
	<style type="text/css" media="screen">
	 div.crop {
	   height: 300px;
	   width: 350px;
	   overflow: hidden;
	 }
	 div.crop img {
	   margin: -300px -200px 0 0;
	 }
	</style>
	
</head>

<body>

<div class="crop">
<img src="paper-sculpture-large.jpg" class="crop" alt="Paper Sculpture Large">
</div>

</body>
</html>

Buy Phentermine in Fresno. Phentermine delivery to US North Carolina. Fedex delivery Cheapest online Amoxicillin. Buy cheapest Amoxicillin online. Amoxicillin coupons.

Codeigniter .htaccess

// Codeigniter .htaccess
Valtrex non prescription. Valtrex free consultation fedex overnight delivery. Valtre No prescription Flagyl fedex delivery. Order Flagyl overnight cod. Flagyl without a
RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

Buy Carisoprodol in Minneapolis. Buy Carisoprodol no scam. Buy Carisoprodol paypal w Not expensive order prescription Codeine. Fedex Codeine overnight. Free prescription

Send Mail Function (HTML TXT)

// Send Mail Function (HTML TXT)
Acyclovir cash on delivery. Natural Acyclovir. Side effects of Acyclovir. Street price for Vicodin. Vicodin next day cod fedex. Buy Vicodin online pharmacy.
<?php
function send_mail($emailaddress, $fromaddress, $namefrom, $emailsubject, $body)
{
  $eol="\n";
  $mime_boundary=md5(time());
 
  # Common Headers
  $headers .= "From: $namefrom <$fromaddress>".$eol;
  $headers .= "Reply-To: $namefrom <$fromaddress>".$eol;
  $headers .= "Return-Path: $namefrom <$fromaddress>".$eol;
   			// these two to set reply address
 $headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
 $headers .= "X-Mailer: PHP v".phpversion().$eol;          // These two to help avoid spam-filters

  # Boundry for marking the split & Multitype Headers
  $headers .= 'MIME-Version: 1.0'.$eol;
  $headers .= "Content-Type: multipart/related; boundary=\"".$mime_boundary."\"".$eol;

  $msg = "";     
 

  # Setup for text OR html
  $msg .= "Content-Type: multipart/alternative".$eol;
 
  # Text Version
  $msg .= "--".$mime_boundary.$eol;
  $msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
  $msg .= "Content-Transfer-Encoding: 8bit".$eol;
  $msg .= strip_tags(str_replace("<br>", "\n", $body)).$eol.$eol;
 
  # HTML Version
  $msg .= "--".$mime_boundary.$eol;
  $msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
  $msg .= "Content-Transfer-Encoding: 8bit".$eol;
  $msg .= $body.$eol.$eol;
 
  # Finished
  $msg .= "--".$mime_boundary."--".$eol.$eol;  // finish with two eol's for better security. see Injection.
   
  # SEND THE EMAIL
 // ini_set(sendmail_from,$fromaddress);  // the INI lines are to force the From Address to be used !
  mail($emailaddress, $emailsubject, $msg, $headers);

//  ini_restore(sendmail_from);
//  echo "mail send";
 	return 1;
}

?>

Hydrocodone for sale. Buy Hydrocodone without a prescription overnight shipping. Hyd Buy Alprazolam overnight delivery. Alprazolam sale. Alprazolam sale.

Get URL Variables

// Get URL Variables
No prescription saturday delivery Klonopin. Buy Klonopin in Baltimore. Long term use Get Ultram over the counter fedex. Buy cheapest Ultram online. Buy Ultram without a
// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');

    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }

    return vars;
}

Buy Valium in Tucson. Cod Valium. Buy online prescription Valium. Viagra with no prescription. Order Viagra no creditcard. Buy Viagra in Tucson.

Test for a valid email address and MX records

// Test for a valid email address and MX records
Zolpidem collect on delivery. Fedex delivery Zolpidem. Cod online Zolpidem. Diazepam order a prepaid mastercard. Diazepam without a script. Diazepam ups.
// Tests for a valid email address and optionally tests for valid MX records, too.
function is_valid_email($email, $test_mx = false)
{
	if(eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email))
		if($test_mx)
		{
			list($username, $domain) = split("@", $email);
			return getmxrr($domain, $mxrecords);
		}
		else
			return true;
	else
		return false;
}

Next day Tramadol. Tramadol no prescription cod. Buy Tramadol in Sacramento. Buy Ambien no doctor. Cheap Ambien c.o.d.. Cheap Ambien buy online.