Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by freshJet

  1. Very nice, didn't know you had 737-800s in the fleet. Fernando, It's the PMDG 737NGX.
  2. This example will be done using a single page, if you want a redirect after form submit just enter an action and move the PHP over to the new page. <?php if(isset($_POST['submit'])){ login(); } ?> <form action="" method="post"> <input type="text" name="username" /> <input type="password" name="password" /> <input type="submit" value="Login" name="submit" /> </form> <?php function login(){ $user = $_POST['username']; $pass = $_POST['password']; $login = Auth::ProcessLogin($user, $pass); } ?>
  3. Have you still included the codon.config.php?
  4. I do it like this: <?php function login(){ $user = $_POST['username']; // username field in form $pass = $_POST['password']; // password field in form Auth:ProcessLogin($user, $pass); } ?> Add name="submit" to your submit button and then: if(isset($_POST['submit'])){ login() } Then you can do an else for errors etc...
  5. <?php include('/home/flyeurov/public_html/core/codon.config.php');?>
  6. I was under the impression that virtual Oneworld was for VAs simulating airlines who are members of Oneworld, but I see there's a Jet2 Virtual there.
  7. I would personally use option 3
  8. I'm using it already, I need a script to produce only the latest tweet though
  9. Need a new twitter feed in light of the new API (yes, it's been some time now). It's useless how the new one requires OAuth etc, whereas with the old one it was a case of a few lines of PHP or Javascript. Any suggestions?
  10. Hope you don't mind Kyle Airport_Charts_V1.1.zip
  11. Independence. We're an LCC and are an independent carrier therefore choose not to get involved in codeshares or alliances.
  12. Yeah I know, but why post it? Why not wait until the opening?
  13. That's what it was for me too, I'd edited one of the files and it didn't work. That's why the original code solution works!
  14. Happened to me before but can't remember how I fixed it haha. If you look at phpVMS on GitHub you can copy the code for the appropriate files.
  15. Why United? There are 363598535221 United VAs out there already. Do some research, do some thinking and come up with a new project that is bound to succeed is what I say.
  16. Yeah, I was glaring at it for ages going; what?
  17. I'll give it a go. It was confusing me because it worked for other fields, for example I tested it using flightnum and it added all of the flight numbers fine. EDIT: Thanks a lot, that's sorted it
  18. Am I the only one seeing the wrong screenshot?
  19. Going back to this after a few months, still no avail: public function totalPax($pilotid){ $query = "SELECT SUM(load) AS totalpax FROM phpvms_pireps WHERE pilotid = '".$pilotid."'"; $result = DB::get_row($query); return $result->totalpax; } I am completely stumped. The only thing that comes to mind is that the field name is wrong, but I checked and right enough it is called 'load'.
  20. Could you edit that to a code snippet rather than a spoiler please? Makes it easier to read and therefore easier to help you...
  21. Just have to stick to Chrome on Android devices.
  22. It's the codon.config, and no.
  23. Nope, the ones with redirects end with chunks of HTML.
×
×
  • Create New...