Jump to content

mark1million

Moderators
  • Posts

    2283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Thing is malware is hidden in scripts and will usually look for folders it has permissions to write to, so once you upload a js file or unknown content then potentially every file / folder it can write to it will do to try in this case redirect to a booby trapped site for what ever reason. Its a right pain to get rid of and fully make sure you are free, its a time consuming task that must be done. In your example above anyone reaching your site from the popular search engines will be redirected to that site defined in the decode.
  2. That is a known malware site!!!!! What ever code was in your scripts it would appear that it has written a redirect to that url, Not a good outcome as you dont know where else it has written that meta redirect. Roger that defiantly does NOT belong in the action.php
  3. Someting like this? <td align="center"> <?php if($report->accepted == PIREP_ACCEPTED) echo '<div id="success">Accepted</div>'; elseif($report->accepted == PIREP_REJECTED) echo '<div id="error">Rejected</div>'; elseif($report->accepted == PIREP_PENDING) echo '<div id="pending">Pending</div>'; elseif($report->accepted == PIREP_INPROGRESS) echo '<div id="error">Flight in Progress</div>'; ?> </td> This is what i use.
  4. Bump Is it possible to take over this code and add the amount of times an airport has been flown to?
  5. Hey guys i remember once there was a fuel calculator knocking about here based on aircraft type and route miles that displayed on the briefing page,I had this in a previous VA i started but cant seem to find it, if someone can point me in the right direction. Cheers.
  6. I see where your going now, i got the same with new pilots so all i did was tell that page not to output a php error <?php error_reporting(0); ?> at the top of that tpl
  7. Tempted by teh +1 Rep <?php if(!$pireps) { echo '<p>Sorry No recent flights have been found</p></div>'; return; } $flights = PIREPData::getLastReports($userinfo->pilotid, '20'); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> You may need to get rid of that extra closing div as that is needed for me on my site.
  8. Cheers, that seems to bring all the flown routes back but it doesn't matter as im using great circle now
  9. cheers, im nearly done Its crazy what you can do when you put your mind to it.
  10. Hey no problem Ray were all there at times After all i have learnt so much here on this site and coding other options in phpVMS. Great support here all round.
  11. Hey guys i am trying to display the route map, route_map.tpl in another template the profile_main.tpl, how can i call this please? I dont want to include, iframe or embed. Thanks.
  12. mark1million

    Icons

    Hi, im in the process of redoing the pilot center and i am looking for a good source of icons, there are lots on the web coming up on searches just wondered if anyone has any recommendations?
  13. If that didnt work have a look with Firefox, there must be an overriding setting in your css.
  14. Try this, <div id="topNav" align="center"> <ul class="nav"> <?php Template::Show('core_navigation.tpl'); ?> </ul> </div> If not take a look in the nav.tpl
  15. Yep that maybe so but check the actual line before that the whole nav sits in a center div bit just the url link
  16. OK to get the header colour make the top cells <th> for table header, then define that colour in your css file. With the alternate colours you can use, /* custom tables */ table.mytable { font-family: Times New Roman; background-color: #FF6600; margin:5px 0pt 5px; font-size: 11pt; width: 100%; text-align: left; } table.mytable tbody tr.odd td { background-color:#f0f0f0; table.mytable thead tr th { background-color: #FF6600; border: 1px solid #FFF; font-size: 12pt; padding: 2px; } So in your table you create <table class="mytable"> then it will read from your css your defined values there. Just change the #color to what you want. Hope that makes sense
  17. Never heard of that before, google her i come
  18. I have not looked at that skin for a while just try to all the align="center" to that div the nav sits in.
  19. Good job, i know what its like banging your head and i also know what its like when you get things working
  20. Guys all the base package is OK, fine, its when you start adding skins and other scripts without verifying what they can do or create on your server, then there becomes a problem. If other links are placed anywhere on a domain to a site that has been associated as hosting malware then you will most probably get a warning message about it which makes sense. Thing to remember is look at every script before you put on your site or use, if you dont understand what it can do then dont put it on.
  21. Dont worry i got it Your light shon the way. Thanks, <?php MainController::Run('TouchdownStats', 'top_landing_this_month'); ?>
  22. Dave, Its not showing and im not getting any errors in the logs either
  23. Maybe you can mash this up to get what you want, this will run outside vms, should also work inside with a bit of alteration. <?php error_reporting(E_ALL); include '/YOURPATH TO CORE//core/codon.config.php'; $allpilots = PilotData::getAllPilots(); foreach($allpilots as $pilot) { } ?> <h3>Aerosoft Pilot Hours Validation</h3> <p>To Quick search name or pilot id hit Ctrl + F and and type in data.</p> <?php if(!$allpilots) { echo 'There are no pilots!</div>'; return; } ?> <table width="380" cellspacing="1" cellpadding="5" border="1"> <thead> <tr> <th width="60px">Pilot ID</th> <th width="200px">Name</th> <th width="55px">Hours</th> <th width="65px">Active/Inactive</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td width="1%" nowrap><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <div align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </div></td> <td><div align="center"><?php echo $pilot->totalhours?></div></td> <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php } ?> </div> </tbody> </table>
×
×
  • Create New...