Jump to content

Auto Analizing Pirep


Valerio Cowboy

Recommended Posts

PT-BR

Prezados, Olá,

Bom, procurei e nao achei nada. Queria saber se existe um codigo em que, o proprio sistema faz uma analise do pirep e autorize o aceite dele ou nao.

Ex. Peso de saida, Flaps, Gear Up, Gear Down, Touch Down.

Procurei e revirei e nao achei nada do tipo.

EN

Dear, Hello,

Well, I tried and not found anything. Wondered whether there is a code that, his own analysis of the system makes a PIREP and authorize him to accept it or not.

Eg weight of output, Flaps, Gear Up, Gear Down, Touch Down.

I rolled and looked and not found anything like that.

Thanks

Link to comment
Share on other sites

Olá Valério.

Seguinte aqui no phpvms ainda não existe este tipo de analize automatica, até aonde sei, existe um codigo que aceita automaticamente qualquer tipo de logo que seja enviado ao site, o que não é bom, mas se estiver interessado, viste este link: http://forum.phpvms.net/topic/3041-auto-accept-pireps/

Abração meu amigo

Link to comment
Share on other sites

PT-BR

Achei um metodo de se fazer.

Vo tentar aqui, mais vo compartilhar se alguem sabe escrever php melhor do q eu.

primeiro crie um aquivo so com esse comando e ponha ele como includ no head.php assim toda hora que acessar algo do vms chama ele e verifica.

no script criar

SELECT * FROM phpvms_pireps where accepted = '0'

em acho que é 0 mesmo pra nao aceito

levando em conta que em negativo qnto maior o numero. menor ele é.

ai faz a condição

if landingrate => '-500'

then

update phpvms_pireps set accepted = '2'

ou seja nao autoriza em baixo

else

update phpvms_pireps set accepted = '1'

creio que se pode por varias condições, mais me esbarro em varios lugares.

como por qual pirep ele autorizar?

mais acho que ai ja deu pra ajudar a alguem a escrever ne.

EN

I found a method to do.

Vo try here, see you share more if anyone knows how to write php q better than me.

first create a File only with this command and put him as includ head.php on all the time so that access vms something he calls and checks.

create the script

SELECT * FROM phpvms_pireps WHERE accepted = '0 '

to think it is not acceptable even for 0

taking into account that in negative qnto higher the number. smaller it is.

ai is the condition

if landingrate => '-500'

then

accepted September update phpvms_pireps = '2 '

that is not authorized below

else

accepted September phpvms_pireps update = '1 '

One can think of several conditions, most bumping me in several places.

As for what he authorize PIREP?

i think i already gave you help someone to write ne.

excuse the english google translate

Link to comment
Share on other sites

  • Moderators

good, just do not know why the Brazilians have to translate into English to understand and Americans can not the same.

More continuing. The little digs that programming should not be hard to do.

because we aren't all from the us we are from all over the world so iff we all would write in our own language it would be a big mess :lol:

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...