Jump to content

Nabeel

Administrators
  • Posts

    8147
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. Yeah that's out of my reach, you'd have to goto the FSFK dudes for this one
  2. I'll check it out when I look at the registration form tonight.
  3. Do you have any custom templates/makes ure the core_htmlhead.tpl is stock
  4. Seems like an install problem... acars device? Is it install into the plane? I'm not sure... I never used it with installing any gauges into the plane. I'd check the FSFK site/forums for some info on that. Your settings look ok.
  5. Can you PM me your FTP info so I can check out the registration thing? Along with the email address you used I'm not seeing those errors in IE8... http://dev.phpvms.net/index.php/acars Are you templates upto date?
  6. Thanks Sean. And that's strange Mark, I'll have to see what that means
  7. Template::Set('message', 'Error message here'); Template::Show('core_error.tpl');
  8. You can include the acarsmap.tpl file, I know someone had it shrunk, I think they created a copy of the acarsmap.tpl and adjusted the size in that, and then included it in.
  9. Right, I remember now! Great job You are moving up the ranks, but I'm still adjusting things in the ranking algorithm.
  10. Can you guys make a quick PHP script with this in it, and paste the output here. <?php echo(date_default_timezone_get()); I wonder how many hosts have properly set it up. It seems like I'm running into issues where the time is not being in the right timezone with some data I'm getting back to vaCentral. So I'll have to manually fix this... but I'm wondering if any hosts have this set properly in the first place. I'll manually do it...and I guess GMT is the aviation standard?
  11. You can just grab the latest. It's like a regular update - you upload everything, and then run the /install/update.php file
  12. I mean the entire module... I mean, this is going into a registration hook module, right? You wouldn't have to include the codon.inc.php since it's within it. I think the way I said would be the best route...
  13. Yeah, I couple things changed with that - can you PM it to me? I can take a look tonight if you send it
  14. Would one of you be able to give me access to your server tomorrow (ftp, urls) so I can poke around and test? I can't duplicate it on my server
  15. What's the code you're using right now? Can you pastebin that?
  16. I can add an event, but it might be tricky since that's on the admin side, and the event system isn't setup to cross that way, I haven't tested it and might have to hack the core a bit.. which I'm a bit weary of (they're completely sectioned off, save for the data classes)... but I guess in worse case having to delete a user from the forum shouldn't be (too big) of a deal. And what do you mean work through a database? It's best to go through the API whenever possible... on my side or the phpBB side. Pending users can change on my side (I'm planning on changing the tables, but I don't know for when). The example I gave you hands off data from the phpVMS API (through the user registration event), and then passes it to a script where you can use the phpBB api to complete it. It might be a bit of a pain initially, but it does beat having to manually update however many tables they write to... they wrote that code so let them handle it
  17. Actually one solution to security might be, in local.config.php, also have them enter a secret password: PHPBB_REGISTRATION_SECRET_WORD Config::Set('PHPBB_REGISTRATION_SECRET_WORD', 'somethingsomethingdarkside'); Then also pass that: [code] $cws = new CodonWebService(); $userinfo['secret_key'] = Config::Get('PHPBB_REGISTRATION_SECRET_WORD'); $result = $cws->post('http://your-site.com/your/secret/path/userregister.php', $userinfo); Then in the userregister: if($_POST['secret_key'] !== 'somethingsomethingdarkside') { die(); } // Otherwise continue the student add So there's then three things the user needs to do to get it to work but it'll be a little more secure
  18. For VMS you just want to pull a user from the DB table? I guess you can pull that from the pilots table, that's essentially all findPilots() does anyway. You have to do this though, to load in the config (sans API) for phpvms (haven't tested it, but it should be close) - place it in the root of the phpvms install (where index.php is) To load configs for phpVMS define('SITE_ROOT', dirname(__FILE__)); include SITE_ROOT.'/core/classes/Config.class.php'; include SITE_ROOT.'/core/local.config.php'; But an alternate solution might be this... this file called userregister.php, in the phpvms root (can be wherever, really, even in the phpBB root, but somewhere the public won't look, for security... /public_html/some/secret/path/userregister.php) // Include phpBB stuff $email = $_POST['email']; $password = $_POST['password1']; //etc What you could do is this, from within your module/event listener, its registering the user, send the request to the above page $cws = new CodonWebService(); $result = $cws->post('http://your-site.com/your/secret/path/userregister.php', $userinfo); // For debug you can output $result, returns whatever the above page outputs Which is sending $_POST (basically a form submit) to the userregister.php file. Not the most secure thing, unless you setup an htaccess to allow only your local webserver access to the userregister file. I'm sure there are better ways to sandbox the userregister, but the above comes out to be the simplest. If PHP had namespaces support earlier... oh well. Two potential problems with this is configuration, but you'd have to do two things: In userregister.php - make sure paths to phpBB are correct In phpVMS - have the user add a setting called PHPBB_REGISTER_SCRIPT_URL which is the URL to the above script And an htaccess to prevent outside access (which is tricky because you'd have to know the proper IP it will access from). I'll think about this some more and see if there's a better way.
  19. Hey, In the admin panel, under site & settings, general options, there's a spot to put in that Google API key, add it in there
  20. There's probably a hook in there, I'd check the addons forum for that topic there, it might have been updated... I'm not sure
  21. Are you on the beta? That's from the landingstats addon which isn't needed anymore as of the last release
  22. The score isn't calculated on PIREPS alone, but on the main page: http://dev.vacentral.net/airlines You're showing +500 something for today. I'm still tweaking the ranking algorithm. Do you really have that many flights? There are anti-cheat measures in place, just letting you know Also, dev is in flux.
  23. After that line, put a DB::debug() statement, like: $news = Custom::GetNewsItemByCategory('notam', 1); DB::debug(); There might be an error in the SQL, but it will tell you exactly what was returned from the database
  24. Hi Ken, I do all testing on 5.1 (5.1.37 to be exact) - it should work on 5.0 and up. If you can let me know exactly which portions aren't working? Do be aware that InnoDB tables are required, some hosts disable that (not sure why), which could potentially cause problems. Nabeel
×
×
  • Create New...