Skip to content

Instantly share code, notes, and snippets.

View arschmitz's full-sized avatar

Alexander Schmitz arschmitz

View GitHub Profile
<?php
include ("simple_html_dom.php");
function import_special($brand, $result= "0"){
echo "<div class=\"special\">";
$page = "f_VehicleSearchResults?pageContext=VehicleSearch&search=new&campaign=0";
if($brand == "usedwestbrook") {
$brand = "westbrook";
$page = "f_VehicleSearchResults?pageContext=VehicleSearch&search=used&campaign=0";
}
if($brand == "usedbrunswick") {
function toggleLayer( whichLayer )
{
var elem, vis;
if( document.getElementById ) // this is the way the standards work
elem = document.getElementById( whichLayer );
else if( document.all ) // this is the way old msie versions work
elem = document.all[whichLayer];
else if( document.layers ) // this is the way nn4 works
elem = document.layers[whichLayer];
vis = elem.style;
<?php
require( '/home/content/b/i/l/billdodgeweb/html/nav.php' );
?>
<div class="body_wrapper">
<br/>
<!-- InstanceBeginEditable name="content" -->
<div class="content_wrapper">
<?php
require('send_mail.php');
$require_string = "required";
<?php
require( '/home/content/b/i/l/billdodgeweb/html/nav.php' );
?>
<div class="body_wrapper">
<br/>
<!-- InstanceBeginEditable name="content" -->
<div class="content_wrapper">
<?php
require('send_mail.php');
$require_string = "required";
<?php
session_start();
$db = mysql_connect("localhost", "bdag", "bdag") or die("Could not connect.");
if(!$db)
die("no db");
if(!mysql_select_db("bdaginventory",$db))
<?php
$databasehost = "localhost";
$databasename = "bdaginventory";
$databasetable = "inventorytest";
$databaseusername ="bdag";
$databasepassword = "bdag";
$fieldseparator = ",";
$lineseparator = "\n";
$csvfile = "vehicles.csv";
@arschmitz
arschmitz / gist:815235
Created February 7, 2011 21:19
email with headers
From arschmitz@gmail.com Mon Feb 7 16:12:41 2011
Received: from ip-184-168-81-55.ip.secureserver.net (unknown [127.0.0.1])
by ip-184-168-81-55.ip.secureserver.net (Postfix) with ESMTP id 04F41983CCA
for <text@kiamaine.com>; Mon, 7 Feb 2011 21:12:41 +0000 (UTC)
Received: from mail-iw0-f175.google.com (unknown [209.85.214.175])
by ip-184-168-81-55.ip.secureserver.net (Postfix) with ESMTP
for <text@kiamaine.com>; Mon, 7 Feb 2011 21:12:40 +0000 (UTC)
Received: by iwn8 with SMTP id 8so5022193iwn.6
for <text@kiamaine.com>; Mon, 07 Feb 2011 13:12:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
<?php
require($_SERVER['DOCUMENT_ROOT']."/includes/dbconnect.php");
foreach($_POST as $name => $value){
$$name = $value;
echo $name."=".$value;
}
$sql = "INSERT INTO text_service (cust, phone, first, carrier, last) VALUES ('$cust','$phone','$first','$carrier','$last')";
$db->query($sql);
echo $sql;
?>
// JavaScript Document
//my jquery query string reader
$j.extend({
getUrlVars: function(){
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]);
var startTime;
$( document ).bind( "click", function() {
startTime = new Date();
} ).bind( "pageshow", function() {
if ( startTime ) {
console.log( ( new Date() ).getTime() - startTime.getTime() );
}
startTime = undefined;
} );