Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. <?php
  2. session_start();
  3. set_time_limit(0);
  4. error_reporting(0);
  5.  
  6. /////////////////////////////////////////////////////////////////////////////////////////
  7. /////////////////////////////////////////////////////////////////////////////////////////
  8.  
  9. $AdresaBazaDate = "localhost:/tmp/mysql5.sock";//db address
  10. $UtilizatorBazaDate = "dbo375604597";//db user
  11. $ParolaBazaDate = "haracajna";//db pass
  12. $NumeBazaDate = "db375604597";//db name
  13.  
  14. $conexiune = mysql_connect($localhost:/tmp/mysql5.sock,$dbo375604597,$haracajna) or die("Cannot connect to MySQL Server!");
  15. mysql_select_db($db375604597, $conexiune) or die("Searching for database <b>$db375604597</b>.... NOT FOUND!");
  16.  
  17. ////////////////////////////////DO NOT CHANGE BELLOW/////////////////////////////////////
  18. /////////////////////////////////////////////////////////////////////////////////////////
  19.  
  20. require_once('functions.php');
  21.  
  22. /////////////////////////////////////////////////////////////////////////////////////////
  23. /////////////////////////////////////////////////////////////////////////////////////////
  24.  
  25. $sitesets = sitesets();
  26.  
  27.  
  28. /////////////////////////////////////////////////////////////////////////////////////////
  29. /////////////////////////////////////////////////////////////////////////////////////////
  30.  
  31. $features = array("index.php" => "Homepage",
  32. "search-auto.php" => "Search Auto",
  33. "submit-auto.php" => "Submit Auto",
  34. "rssfeed.php" => "RSS Feed",
  35. "contact-us.php" => "Contact Us");
  36.  
  37. if(checkLogged() == true) {
  38. $features["logout.php"] = "Log out";
  39. }else{
  40. $features["login.php"] = "Log in";
  41. }
  42.  
  43. /////////////////////////////////////////////////////////////////////////////////////////
  44. /////////////////////////////////////////////////////////////////////////////////////////
  45.  
  46. $bodyStyles = array('Hatchback','Convertible','Truck','Van','Wagon','SUV','Coupe','Sedan','Crossover');
  47. $transmissions = array('manual','semi-automatic','automatic');
  48. $fuels = array('gasoline','gas','diesel');
  49. $doorsCount = array('2','3','4','5');
  50.  
  51. ////////////////////////////////////////////////////////////////////////////////////////
  52. ////////////////////////////////////////////////////////////////////////////////////////
  53.  
  54. $carDetails = array(
  55. "Body Style" => "bodyStyle",
  56. "Mileage" => "mileAge",
  57. "Exterior Color " => extColor,
  58. "Interior color" => "intColor",
  59. "engine",
  60. "transmission",
  61. "Doors Count" => "doorsCount",
  62. "Fuel Type" => "fuelType",
  63. "Location" => "countryCity",
  64. "Contact Name" => "contactName",
  65. "Contact No." => "contactNo",
  66. "price"
  67. );
  68.  
  69.  
  70. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement