0){ ?>
 
  '; } ?>
 
uniqueID; $num_times = $row->num_times + 1; } $last_updated= date('Y-m-d H:i:s'); $query= "update tracking set num_times = '$num_times', last_updated = '$last_updated' where uniqueID='$id2update'"; mysql_query($query, $linkid); } } /** * @return array * @param string $order, date(m) $month, date(Y) $year * @desc This will select all the results from the database and return them in an array. */ function get_tracking_results($order, $month, $year){ global $linkid; $query = "select * from tracking order by $order"; $result = mysql_query($query, $linkid); $return_val = false; if(mysql_num_rows($result) != 0){ $return_val = array(); while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $m = explode('-',$row['last_updated'],3); if($m[1] == $month && $m[0] == $year) $return_val[] = $row; } if(count($return_val)==0) $return_val = false; } return $return_val; } /** * @return array * @desc This will select all the months and years from the tracking table as a unique array. */ function get_tracking_months(){ global $linkid; $query = "select last_updated from tracking order by last_updated"; $result = mysql_query($query, $linkid); $return_val = false; if(mysql_num_rows($result)!=0){ $return_val = array(); while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $m = explode('-',$row['last_updated'],3); if($m[1] != $return_val[count($return_val)-1]['month']){ $return_val[] = array('month' => $m[1], 'year' => $m[0]); } } if(count($return_val)==0) $return_val = false; } return $return_val; } ?>adminlevel; $_SESSION["username"] = $row->email; $_SESSION["userid"] = $row->id; // check where to go if(@$_SESSION["returnValue"]){ header("Location:http://www.carperfect.com/".$_SESSION["returnValue"]); }else{ if($_SESSION["adminlevel"] == "admin"){ header("Location:http://www.carperfect.com/admin.php"); ?>
  Login:
  E-mail:
 
  Password:
 
 
   
  Forgot password?

You are logged in.
click the link below to logout


Go to My Admin >

Search: '; return $info; } ?>
Business Owners
Carperfect.com has developed a risk-free method to convert slow days into busy ones. By harnessing the incredible efficiencies and reach of the Internet, our programs serve to drive dirty cars to participating establishments, creating additional revenues, and repeat visits.

Car Care News
updated last on

Your Questions Answered
Common and not so common auto questions answered by auto industry professionals


$row->uniqueID, 'name' => $row->service_name); } // create temp array and filter in the services they chose $temp = array(); for($i=0;$i $services[$i]['id'], 'name' => $services[$i]['name']); } } // set services to the new services that they are offering. $services = $temp; // @$name = strip_tags($_POST['name']); @$name = trim(@$name); // @$address = strip_tags($_POST['address']); @$address = trim(@$address); // @$city = strip_tags($_POST['city']); @$city = trim(@$city); @$city = strtolower(@$city); @$city = ucfirst(@$city); // @$zip = trim($_POST['zip']); // @$phone = strip_tags($_POST['first'].$_POST['second'].$_POST['third']); @$phone = trim(@$phone); // @$fax = strip_tags($_POST['first_fax'].$_POST['second_fax'].$_POST['third_fax']); @$fax = trim(@$fax); // @$email = strip_tags($_POST['email']); @$email = trim(@$email); // @$description = strip_tags($_POST['description']); @$description = htmlspecialchars(@$description); // @$county = $_POST['county']; @$id = $_POST['id']; // check for email $query = "select * from users where email = '$email'"; $result = @mysql_query($query, $linkid); if(@mysql_num_rows($result)>0) error('*Error: That user already exists. Choose another E-mail address or login'); // promotion code goes here $promo_code = $_POST['promo_code']; if($promo_code && count($error)==0){ $promo_code = base64_encode($promo_code); $query="SELECT * FROM promos WHERE code='$promo_code' and type = 'free_membership' and active = 'YES'"; $result = mysql_query($query, $linkid); if(mysql_num_rows($result) == 1){ // promo_code matches $promo = true; $membership = 'year'; }else{ error('*Error: That Promotion code is not valid.'); } } // // check for the zipcode in cp_zipcodes and make sure the state county anc city all match $query = "SELECT * FROM cp_zipcodes WHERE zipcode = '$zip'"; $result = mysql_query($query, $linkid); if(mysql_num_rows($result) == 0){ error("*Error: That zipcode does not match our records"); }else{ while($row = mysql_fetch_object($result)){ if($row->state != $state){ error("*Error: State do not match zipcode. The state that does is: $row->state"."."); }else if($row->city != $city){ error("*Error: The city you entered does not match the zipcode you entered. The city that does is: $row->city"."."); } if(@count($error)==0){ $county = $row->county; } } } // if(count($error)==0){ // $idate = date("Y-m-d H:i:s"); if($promo){ $next_year = date('Y')+1; $expiration = $next_year.''.date("-m-d H:i:s"); } // $uni_add = uniqid(''); $usern = explode(" ", str_replace("'","",stripslashes($name))); $usern = strtolower(implode("",$usern)."_".rand(1,99)); $password = base64_encode($password); $query = "INSERT INTO users (email, pword, adminlevel, uni_add)VALUES('$email', '$password', 'user', '$uni_add')"; $result = mysql_query($query, $linkid); if(!@$result){ error("*Error: Not able to add to database."); }else{ $query = "SELECT * FROM users WHERE uni_add = '$uni_add'"; $result = mysql_query($query, $linkid) or die(mysql_error()); while(@$row= mysql_fetch_object($result)){ $fid = $row->id; $_SESSION["loggedin"] = true; $_SESSION["adminlevel"] = $row->adminlevel; $_SESSION["username"] = $row->email; $_SESSION["userid"] = $row->id; $message = 'Dear user, We are very thankful for your business, here is your information to help you with your login process. e-mail(used to login): '.$row->email.' password: '.base64_decode($row->pword).' You may login at anytime during your visit to carperfect.com by simply logging in at the "login panel" to the right of the screen. Or simply follow this link: http://www.carperfect.com/login.php Thanks again! Jeff B. carperfect.com'; mail($row->email, 'Thanks for signing up!', $message, 'FROM: '.ADMINISTRATOR_EMAIL); } // $query = "INSERT INTO cp_washes (fid, active, membership, name, address, city, zipcode, state, county, expiration, idate, phone, fax, website, hours, description, pic1, pic2, pic3, pic4, uni_add)VALUES('$fid', 'active', '$membership', '$name', '$address', '$city', '$zip', '$state', '$county', '$expiration', '$idate', '$phone', '$fax', '$website', '$hours', '$description', '$pic1', '$pic2', '$pic3', '$pic4', '$uni_add')"; $result = mysql_query($query, $linkid) or die(mysql_error()); if(!@$result){ error("*Error: Not able to add to database."); }else{ $query = "SELECT * FROM cp_washes WHERE uni_add = '$uni_add'"; $result = mysql_query($query, $linkid); while($row = mysql_fetch_object($result)){ $id = $row->uniqueID; } $sku = abs(rand(1111111111111,9999999999999)); $sku = $id.''.substr($sku, strlen(($id))); $query = "INSERT INTO products (wash_id, title, description, price, sku, barcode_type)VALUES('$id', 'A Free Wash', 'This offer is for a free wash', 1, '$sku', 'ean13')"; mysql_query($query, $linkid); // services if(count($services) != 0){ for($i=0;$i MAX_IMAGE_SIZE){ error('*Error: file to large to upload. please upload an image that is less than or equal to: '.(MAX_IMAGE_SIZE/1000).'k'); } // move the file to the correct directory if (move_uploaded_file($_FILES['userfile']['tmp_name'][$i], $uploadfile)) { $rename_to = UPLOAD_DIRECTORY.''.$id.'_'.IMAGE_NAME.'_'.$i.IMAGE_SUFFIX; rename($uploadfile, $rename_to); $new_name = $id.'_'.IMAGE_NAME.'_'.$i.IMAGE_SUFFIX; }else{ error('*Error: cannot move file to new location'); } // process image functions switch($_FILES['userfile']['type'][$i]){ case "image/gif": $image = imagecreatefromgif(UPLOAD_DIRECTORY.''.$new_name); break; case "image/png": $image = imagecreatefrompng(UPLOAD_DIRECTORY.''.$new_name); break; default: $image = imagecreatefromjpeg(UPLOAD_DIRECTORY.''.$new_name); break; } $initialx = imagesx($image); $initialy = imagesy($image); if($initialx > $initialy){ $percent = 75/$initialx; $thumb = imagecreatetruecolor(75,($percent*$initialy)); imagecopyresized($thumb,$image,0,0,0,0,75,($percent*$initialy),$initialx, $initialy); imagejpeg($thumb, UPLOAD_DIRECTORY.''.'thumbs/'.$new_name); }else{ $percent = 75/$initialy; $thumb = imagecreatetruecolor(($percent*$initialx),75); imagecopyresized($thumb,$image,0,0,0,0,($percent*$initialx),75,$initialx, $initialy); imagejpeg($thumb, UPLOAD_DIRECTORY.''.'thumbs/'.$new_name); } } $pic = 'pic'.(($i)+1); $query = "UPDATE cp_washes SET $pic='$new_name' WHERE uniqueID = '$id'"; mysql_query($query, $linkid) or die(mysql_error()); } if(@$_SESSION["loggedin"] && $_SESSION["adminlevel"] != 'user'){ header('Location:admin.php'); }else{ header('Location:individualwash.php?id='.$id); } } } } } ?> Carperfect.com Your home for car care information
 
  Sign Up For a Wash
  Take advantage of what CarPerfect.com has to offer!

Upon receipt of your completed form, your business will be added to our databases and made instantly available to the public. You will be found from anywhere and with a small upgrade fee of $50, you can offer coupons, photos, detailed maps, a customized web page of your very own, and much much more!

*required

 
 
Membership options:

Please Select one of the options available to you:

$50 / year membership package
(premium listing)

Free listing (no perks)


Business Name: 


  
Address: 
  
State: 
  
City: 
  
Zip:
  
 
Login information
E-mail:
  
Password:
  
Confirm Pass:
  
Promotion Code:
  

  Upgrade Your Membership!
By taking advantage of the $50 / year membership the following form is available to you. If you are only using the free listing, you may skip the section below. This information will be available to all guests of the site and will help drive customers to your business.

Phone:

   () -
Fax:
  () -  
website:
  
  Monday-Thursday
Hours of Operation:
  Friday-Saturday
  Sunday:
Description of your business:
  

Types of Services:

service_name; } for($i=0;$i
     
Pictures:
   
  Picture 1:
  Picture 2:
  Picture 3:
  Picture 4:
   
Coupons honored:

*coupons only valid Monday - Thursdays and must be honored at all service centers.

*you may add coupons at any time, in your admin section. The first one is added for you.

* a free basic wash for $1

 
 
 

Copyright © CarPerfect.com.
All rights reserved.
Main About Us Questions & Answers News Contact Site map Links