-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog.php
executable file
·58 lines (52 loc) · 1.71 KB
/
catalog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<?php
// Include soap request class
include('guayaquillib/data/requestOem.php');
include('extender.php');
// Create request object
$request = new GuayaquilRequestOEM($_GET['c'], $_GET['ssd'], Config::$catalog_data);
if (Config::$useLoginAuthorizationMethod) {
$request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey);
}
// Append commands to request
$request->appendGetCatalogInfo();
if (@$_GET['spi2'] == 't')
$request->appendGetWizard2();
// Execute request
$data = $request->query();
// Check errors
if ($request->error != '') {
echo $request->error;
} else {
$cataloginfo = $data[0]->row;
foreach ($cataloginfo->features->feature as $feature) {
switch ((string)$feature['name']) {
case 'vinsearch':
include('forms/vinsearch.php');
break;
case 'framesearch':
$formframe = $formframeno = '';
include('forms/framesearch.php');
break;
case 'wizardsearch2':
$wizard = $data[1];
include('forms/wizardsearch2.php');
break;
}
}
if ($cataloginfo->extensions->operations) {
foreach ($cataloginfo->extensions->operations->operation as $operation) {
if ($operation['kind'] == 'search_vehicle') {
include('forms/operation.php');
}
}
}
}
?>
</body>
</html>