"; } if ( $temp2[(sizeof ( $temp2) - 1)] == 'view.php') { $query = "SELECT company_name,company_email,phone,fax, `googleverification`, `googleanalytics` FROM ".$site."_admin where `username` = '$website_url' "; $result = mysql_query($query); list ( $companyname, $companyemail, $companyphone, $companyfax, $googleverification, $googleanalytics) = mysql_fetch_row( $result); $query = "SELECT `id`,`title`,`des`,`no_of_doors`,`color`,`vin_no`,`engine_capacity`,`reg_plate1`,`cat`,`make`,`miles`,`fuel`,`model`,`year`,`price`,active,click, `edition` FROM `".$site."_motor` WHERE id = '$id' and `domain` = '$website_url' "; $result = mysql_query($query); $row_array = mysql_fetch_row($result); $sql = "select title from ".$site."_car_make where id = '$row_array[9]'"; $result1 = mysql_query($sql); list ($row_array[9]) = mysql_fetch_row($result1); $sql = "select title from ".$site."_car_model where id = '$row_array[12]'"; $result1 = mysql_query($sql); list ($row_array[12]) = mysql_fetch_row($result1); $sql = "select title from ".$site."_car_category where id = '$row_array[8]'"; $result1 = mysql_query($sql); list ($row_array[8]) = mysql_fetch_row($result1); $sql = "select title from ".$site."_car_fuel_type where id = '$row_array[11]'"; $result1 = mysql_query($sql); list ($row_array[11]) = mysql_fetch_row($result1); $metatitle = "$row_array[9] $row_array[12] $row_array[17] for sale from $companyname $county"; $metades = "$row_array[9] $row_array[12] $row_array[17] for sale from $companyname, call us on $companyphone."; $metakeywords = "$row_array[9] $row_array[12] $row_array[17], $row_array[4], new cars, used cars, for sale, $companyname."; } if ( empty ( $metatitle)) { $metatitle = "Car Dealer v5.0"; } if ( empty ( $metakeywords)) { $metakeywords = "used cars, approved, for sale, cheap, car dealer"; } if ( empty ( $metades)) { $metades = "Welcome to Car Dealer v5.0 online car sales showroom."; } $query = "SELECT company_name,company_email,phone,fax, google_metatag FROM ".$site."_admin where `username` = '$website_url' "; $result = mysql_query($query); list ( $companyname, $companymail, $companyphone, $companyfax, $google_metatag) = mysql_fetch_row( $result); $BANNER = ""; for ( $i = 1; $i < 7; $i++) { $file = "_".$i."_banner.jpg"; if ( file_exists ( "admin/uploaded_photos/$file")) { $BANNER .= "\n".'{ "title" : "", "image" : "/'.$file.'", "url" : "/'.$file.'", "firstline" : "", "secondline" : "" },'; } } ?> <? echo $metatitle; ?>
$webmaster_email"; ?>
01252 318417
'; } ?>