Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. Use their Javascript widget?
  2. Tom

    PVACARS II

    Why wait when you can have kACARS yesterday? It's funny how these smartcars people always appear when the topic of ACARS comes up. One would assume they're desperate for customers or something?
  3. This is so inefficient, use this instead: public function TotalFlightsByPilot() { $pilotid = Auth::$userinfo->pilotid; $sql = "SELECT COUNT(pirepid) as count FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid'"; $ret = DB::get_results($sql); return $ret->count; } <p>Total flight by pilot: <?php echo PilotData::TotalFlightsByPilot(); ?></p>
  4. Doing things by the book certainly, but they shouldn't have to prove it to anyone here before they open their VA. Perhaps certain people should stop harassing those who announce real-world based VAs?
  5. You need to upload or correctly link the images, they're missing: http://jacobslisting...mage/img_38.jpg
  6. His original use of quotes was better. Here's a working query, which will also return 0 instead of NULL if there are no rows: $query = "SELECT COALESCE(SUM(`load`),0) AS totalpax FROM ".TABLE_PREFIX."pireps WHERE pilotid = '".$pilotid."'";
  7. No, in the files it includes before your code runs - local.config.php for example.
  8. In the real world you'd get 1-3 pages for 350, not a full design & code, let alone all the rest. But then you get what you pay for here, and it really shows.
  9. You have whitespace or ?> at the end of your files? Should remove that.
  10. That doesn't stop you doing a php redirect?
  11. Grammar* Also, you're clearly new here... The users location is just below the profile picture, you should check that
  12. Your include can't have http://... It needs to be relative or from the server root, so for example: include('home/accountusername/public_html/test/core/codon.config.php'); Or relative to the file you're working in: include('../../test/core/codon.config.php');
  13. The free file per month license from Themeforest is always a single-user regular license. There is no way you'd get it for free with the extended license required to distribute legally. Also, this particular theme doesn't have the option of an extended license, so is definitely not being used legally.
  14. For the sake of the sanity of your visitors, I strongly recommend against embedding audio. However... http://bit.ly/183hQrI
  15. Not tested but you can give it a go. Let me know if anything needs changing (not going to subscribe to test...) https://github.com/t...rts.Aero-phpVMS Also you really should remove your authorisation code from your post.
  16. Tom

    Skin Update

    It's a phpVMS skin, not a HTML site.
  17. Oh my bad I didn't read that earlier post
  18. To answer your question go to action.php/APV rather than index.php/APV and you'll only have what your module returns no skin
  19. You should put code on GitHub, that way others can fork and contribute to it easily
  20. One of the nicest airline sites I've seen recently; it's so clean and has a nice amount of spacing, great bootstrap integration too. Point to note: the register and pilots pages look like they're missing padding or overflow the container (Chrome). Also personal preference but I felt it'd make more sense for the stats/flights to swap places with teamspeak/facebook
  21. The colours aren't very easy on the eye... especially that blue. Try something more exciting... plain white tail with a logo on just looks like everything else.
  22. Use '==' for comparison, using '=' will always return true as it's setting the value.
  23. Well my suggestion would be proper authentication: - Create a site module to handle client connections - Log in using standard username/password and check the user has permission - Re-check permissions regularly to ensure anyone who has permissions revoked can't still use it Then if you give someone this tool and they go crazy you don't have to go change all your database details everywhere, you can just delete their account.
×
×
  • Create New...