RestLog("USER AGENT: {$_SERVER['HTTP_USER_AGENT']}"); //08.20.2015 ghh - now we need to verify the dealerkey that was sent in and //build a new one if we don't already have it. In the event we don't have one //one will be build on the first every call and returned to the BSV to store for //future calls. If they fail to store it then the dealer will be down until //someone manually resets the dealership on the server. $dealerkey = verifyDealerKey($requestvars["dealerkey"], $requestvars["accountnumber"]); $requestvars['DealerKey'] = $dealerkey; switch ($rest->getMethod()) { //08.20.2015 ghh - get requests enter here case 'get': switch ($requesttype) { case 'getvendors': RestLog("Getting List of Vendors"); require_once "getvendors.php"; getVendors(); break; case 'getinventory': //08.25.2015 ghh - added getinventory request RestLog("Getting Inventory"); require_once "getinventory.php"; getInventory($requestvars, $responsetype); break; case 'getiteminfo': //08.25.2015 ghh - added getinventory request RestLog("Getting Item Information"); require_once "getiteminfo.php"; getItemInfo($requestvars, $responsetype); break; case 'getmodel': //08.25.2015 ghh - added getinventory request
} } // db connection $sqlConnect = mysql_connect($mod_cnf['dbhost'], $mod_cnf['dbuser'], $mod_cnf['dbpass']) or die('error connecting to database.'); mysql_select_db($mod_cnf['dbname'], $sqlConnect) or die('error selecting table.'); //** get number of needed script-calls, based on active items with valid seo-url. cms and categories will be added to first sitemap automatically. $cntCalls = ceil(getCountScriptCalls() / $mod_cnf['offset']); // store cms- and category-data only at first call, further calls are products only if (1 == $pcall) { // get cms data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_cms']) { $xmlList_cms = getCmsSite(); } // get vendor data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_vendor']) { $xmlList_vendor = getVendors(); } // get manufcaturer data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_manufcaturer']) { $xmlList_manufacturer = getManufacturers(); } // get manufcaturer data from shop if ($mod_cnf['export_tags']) { $xmlList_tags = getTags(); } // get static seo data from shop if ($mod_cnf['export_static']) { $xmlList_static = getStaticUrls(); } // get all categories if ($mod_cnf['export_categories']) {
echo getPriceRange($link); ?> <br> <label>Price order: </label> <select id="praice-order" name="price_order"> <option value="">not selected</option> <option value="ASC">Asc</option> <option value="DESC">Desc</option> </select> </td> <td <?php echo classAdd($userCanAdd); ?> ></td> <td><?php echo getVendors($link); ?> </td> <td></td> <td><input type="submit" value="filter" name="filter" ></td> </form> </tr> <?php foreach ($items as $item) { ?> <?php $editable = canEdit(); ?> <tr class="edit-item"> <form method="POST" action="<?php echo $_SERVER['PHP_SELF'];