$error = $wsdl->get_error($wsdl_res[status]); } break; case 'finish_overhead': $rs_id = $_REQUEST['rs_id']; $wsdl->set_waybill_id($rs_id); $wsdl_res = $wsdl->close_waybill(); if ($wsdl_res != 1) { $error = $wsdl_res; } break; case 'confirm_overhead': $overhead_id = $_REQUEST['id']; $rs_id = $_REQUEST['rs_id']; $wsdl->set_waybill_id($rs_id); $wsdl_res = $wsdl->confirm_waybill(); if ($wsdl_res) { ConfirmOverhead($overhead_id); } else { $error = 'ვერ მოხერხდა ზედნადების დადასტურება!'; } break; case 'reject_overhead': $overhead_id = $_REQUEST['id']; RejectOverhead($overhead_id); break; case 'create_service_user': $user_name = $_REQUEST['user_name']; $user_password = $_REQUEST['user_password']; $ip = $wsdl->what_is_my_ip(); $su_name = $_REQUEST['su_name'];