} if ($buy_now == 'no') { $buy_now_price = 0; } // run the word filter if ($system->SETTINGS['wordsfilter'] == 'y') { $title = $system->filter($title); $subtitle = $system->filter($subtitle); $sdescription = $system->filter($sdescription); } // check for errors if ($ERR == 'ERR_') { if (count($_SESSION['UPLOADED_PICTURES']) > $system->SETTINGS['maxpictures']) { $ERR = sprintf($MSG['674'], $system->SETTINGS['maxpictures']); } $ERR = 'ERR_' . CheckSellData(); if ($ERR != 'ERR_') { $_SESSION['action'] = 2; $noerror = false; } } if ($noerror) { // payment methods $payment_methods = ''; $query = "SELECT * FROM " . $DBPrefix . "gateways"; $db->direct_query($query); $gateways_data = $db->result(); $gateway_list = explode(',', $gateways_data['gateways']); foreach ($gateway_list as $v) { $v = strtolower($v); if ($gateways_data[$v . '_active'] == 1 && _in_array($v, $payment)) {
case 2: $noerror = true; if ($with_reserve == 'no') { $reserve_price = 0; } if ($buy_now == 'no') { $buy_now_price = 0; } // run the word filter if ($system->SETTINGS['wordsfilter'] == 'y') { $TPL_title_value = $title = $system->filter($title); $TPL_description_shown_value = $description = $system->filter($description); } // check for errors if ($ERR == "ERR_") { $ERR = "ERR_" . CheckSellData(); if ($ERR != "ERR_") { $_SESSION['action'] = 1; $noerror = false; } } if ($noerror) { $auction_id = generate_id(); if ($imgtype == 1 && !empty($_FILES['userfile']['name']) && $_FILES['userfile']['name'] != "none") { $inf = getimagesize($_FILES['userfile']['tmp_name']); $er = false; if ($inf) { $inf[2] = intval($inf[2]); if ($inf[2] < 1 || $inf[2] > 3) { $er = true; $ERR = "ERR_602";