Jump to content

Kyle

Moderators
  • Posts

    2282
  • Joined

  • Last visited

Everything posted by Kyle

  1. Kyle

    Mal ware

    Hey Eddie, The Vuris came from the JS which was going to be released but it's off, because the JS that Roger has that was a virus. Which he didn't know...... My server was so messed up and messed up over a lot of files. Took me two days to get the server online again.
  2. Kyle

    HubStats Class

    Your ASP Tag is not on, try that...... <?php echo HubStats::CountPilots('EGKK'); ?>
  3. Kyle

    HubStats Class

    Easy as Pie!!!! Here's an example...... <?php echo HubStats::CountPilots(CYYC); ?> <?php echo HubStats::CountFlights(CYYC); ?> Hope you get it.
  4. Kyle

    HubStats Class

    Yarrhar!!! You are the awesome!!! I'll give it a run when I get home. Thank you for doing it.
  5. Kyle

    Mal ware

    Very interesting mark. I didn't really know any of the js triggers to work up on the file permission..... So we are seeing that the virus was from the js file in Rogers skin. Thats the thing we need to smeck the flies first, but now I started skinnig my own so I dont use released skins. I think we should keep on eye on that so we don't have malware or anything in the servers.
  6. Kyle

    Mal ware

    That's the main question! Roger, lock all up your files with .htaccess that mark showed how to.
  7. Kyle

    Hub Stats

    Deal! Thanks!
  8. Hey, I think this may came up but, I don't see anything in the forums for Hub Stats, so I'm requesting an module for hub stats. If anyone can create it, and We would be all be thankful!!!
  9. Kyle

    Hub Stats

    Yeah me too, but I can basically create a module, to display tpl files, So I'm still looking for it though.
  10. Kyle

    Hub Stats

    Yeah, Daniel. I have that hub Module in my localhost and I did so much work last night, and I'm trying to get the hub stats, but that reqirues for me to write a module file and create a getAllHubFlights But I'm not sure where to start at though, so I'm still looking for that hub stats.
  11. Kyle

    Hub Stats

    I'm looking for that as well too.
  12. Kyle

    PIREP Status

    Yeah I tried that too. I'll repost my code here again so you can see what the heck it's like. Here's a piece of it....... <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == 0) { $status = "PENDING"; } else if($pirep->accepted == 1) { $status = "APPROVED"; } else { $status = "REJECTED"; } echo "<tr>"; echo "<td>'.$pirep->code.$pirep->flighnum.'</td>"; echo "<td>'.$pirep->depicao.'</td>"; echo "<td>'.$pirep->arricao.'</td>"; echo "<td>'.$pirep->aircraft.'</td>"; echo "<td>'.$pirep->flighttime.'</td>"; echo "<td>'.$pilotid.' '.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</td>"; echo "<td>'.$pirep->flighttype.'</th>"; echo "<td>'.$status.'</td>"; echo "</tr>"; } } else { Thanks for your help again.
  13. Kyle

    PIREP Status

    Opening it up again, I got one problem......... I want to add the DIV style tag to the code I pasted below, it'll keep giving me parse error....... if($pirep->accepted == 0) { $status = "<div class="Pending CSS">Pending</div>"; } else if($pirep->accepted == 1) { $status = "Accepted"; } else { $status = "Denied"; } Any help please thanks!
  14. Here. http://forum.phpvms.net/topic/2800-airport-tables/
  15. Kyle

    PIREP Status

    Ok, now I'll have shame on my self I better start using the serach feature casue I found one.
  16. I heard that simpilot will release something like that while ago, all though. I'm not sure.
  17. Kyle

    PIREP Status

    Ok, I'm bring this topic back up, it never worked. So, here's my code...... foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo "<tr>"; echo "<td align=center> $pirep->code $pirep->flightnum </td>"; echo "<td align=center> $pilotid $pilotinfo->firstname $pilotinfo->lastname </td>"; echo "<td align=center> $pirep->depicao </td>"; echo "<td align=center> $pirep->arricao </td>"; echo "<td align=center> $pirep->aircraft </td>"; echo "<td align=center> if($pirep->status == 0){echo 'Pending';} elseif($pirep->status == 1){echo 'Approved';} else {echo 'Rejected';} echo '</td>"; } } Now I'm not sure, why it's showing like that in the status colum. if( == 0){echo 'Pending';} elseif( == 1){echo 'Approved';} else {echo 'Rejected';} echo '
  18. I believe so too. He was the one that done it.
  19. Ok, Now I'm not sure how to code this, I want the pilot data to get the number of how many pilots are in a per hub. So here my code, for pilot data to hub....... <?php $pilots = PilotData::getAllPilotsByHub('CYYC'); ?> Now I want it to get the numbers of how many pilots are in that hub? How would I go doing that? Thanks, I'm still always giving you reps for helping me out here. Cheers!
  20. LOL!!! Thanks for the link. I must missed that long time ago. Cheers!
  21. Very Nice Site!! I'm intrested, how did you get pilots in per hub pages?
  22. Thanks Tom, I think I have a idea how to write out the CYYZHub Module. Thanks!
  23. Top Shot there Tom, I guess I wasn't filling the php into the GC Map. Thanks alot!!!
  24. Ok, nice work guys But It didn't work, so I'll give you the full code for the GC of if there was no reports filed. <?php $flights = PIREPData::getLastReports($userinfo->pilotid, '10'); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> <img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br /> Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a> Thanks for the help.
  25. Hey guys, I have this hub module in my localhost and I haven't done a thing to it yet, so I wanted to get it done. How can I call for the pilots like for example. I want the Hub CYYZ to get all of the CYYZ pilots into the Hub Page Roster. Any help would be great and I'll give you reps... (Always!) Thanks.
×
×
  • Create New...