die; } if ($xpath_id = $supplier->xpath_exists($links, $urls, $list, $pname, $img, $price) != 0) { $supplier->updatepathes($id, $xpath_id); header('location:../supplier.php?tab=tab2&message1=supplier xpath has been ' . $state1 . "&single={$sup_name}&id={$id}"); die; } else { $supplier->addpathes($id, $links, $urls, $list, $pname, $img, $price); header('location:../supplier.php?tab=tab2&message1=supplier xpath has been ' . $state1 . "&single={$sup_name}&id={$id}"); die; } header('location:../supplier.php?tab=tab2&message1=failed to ' . $state . ' supplier xpath please try again' . "&single={$sup_name}&id={$id}"); die; } if (isset($deletexpath)) { if ($supplier->remove_xpath($xpath_id, $sup_id)) { header("location:../supplier.php?tab=tab2&message1=XPath has been removed!&single={$sup_name}&id={$sup_id}"); } else { header("location:../supplier.php?tab=tab2&message1=Failed to remove xpath!&single={$sup_name}&id={$sup_id}"); die; } } if (isset($goback)) { header('location:../supplier.php'); } /*if(isset($delete)){ header('location:../supplier.php?tab=tab2&confirm=delete&id='.$id); } if(isset($no)){ header('location:../supplier.php?tab=tab2&message=deletion has been cancled!');