Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. Please see attached image. This is what I get when the skin loads. To me, the skins doesn't load at all and seems it's being skipped somehow.
  2. Okay! I'm not sure I'm following you on this, All the .php files are in the skin folder, layout.php looks okay and proper but don't know what's wrong. error log says header.tpl and footer.tpl are missing in class floder TemplateGet on line 231 which is the very end line of the file.
  3. Tpl filed were replaced the error is the header and footer is missing.
  4. Hello everyone, I'm sure the answer to my Q is somewhere in this long post but somehow I was't able to find it, so please if someone can tell me what's wrong with this skin not coming up correctly assuming I have followed all the installation steps. it gives me the header and footer error and seems the skin is not loading at all! Thanks
  5. Hello guys, This is a little security snippet you can use for your website. The user needs to answer the multiplication question before proceeding: PHP: $rand1 = rand(1, 9); $rand2 = rand(1, 9); HTML: <div> <label><?php echo $rand1;?> x <?php echo $rand2;?> = </label> <input type="text" class="form-control" name="sum" id="ques" placeholder="<-- Your Answer" required> <input id="sendbtn" type="submit" name="submit" value='Send' disabled> </div> Jquery to check user's answer. If the answer is correct, as soon as the user move the mouse out of the field, the "Send" button is enabled otherwise it's disabled: $("#ques").on('mouseout', function() { var sumques = $("#ques").val(); var val1 = <?php echo $rand1;?>; var val2 = <?php echo $rand2;?>; var sumOfValues = val1 * val2; if (sumOfValues == sumques) { $("#sendbtn").prop('disabled', false); } else { $("#sendbtn").prop('disabled', true); } }); Let me know what you think. Cheers
  6. Okay here it is: Open "WTHR.PHP"(core/modules/WTHR/WTHR.php) The following function must be added: public function simplexml_load_file_curl($urlmet) { $ch = curl_init($urlmet); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $xml = simplexml_load_string(curl_exec($ch)); return $xml; } The following line must be changed from: $xmlmet = simplexml_load_file($urlmet); To this: $xmlmet = $this->simplexml_load_file_curl($urlmet); Everywhere you see the code line. To remove the charts: //Charts Section $url = 'http://api.aircharts.org/Airport/'.$icao.'.xml'; $xml = $this->simplexml_load_file_curl($url); $charts = $xml->airport; $count = $xml->airport->chart; $this->set('charts', $charts); $this->set('count', $count); $this->set('icao', $icao); $title="Aviation Weather"; $this->set("title", $title); $this->render('weather/results.php'); To this: $this->set('icao', $icao); $title="Aviation Weather"; $this->set("title", $title); $this->render('weather/results.php'); Basically, the first block of above codes need to be removed or commented out. Let me know if issue is resolved. Cheers
  7. Dear All, Some issues have been developed in the module in the past years as follows: 1. Apparently, Airport Charts website is no longer available and there is no alternative for it, so it has to be removed from the module. 2. With SSL certificates being updated every now and then, "simplexml_load_file" function is rejected by the SSL causing the results not being fetched entirely. Fortunately the second issue is resolved and is being worked on, so keep following the post for further updates. Cheers
  8. The error you get means the column is a key and its structure cannot be changed. You will need to remove the key on the column and change its structure and add the key back to it once altered.
  9. Well! At this point, I don't have any sources to replace aircharts.org. They may be offline due to maintenance. Try them out again and see what will happen.
  10. Your host PHP version is higher than the phpVMS version you are trying to install. Lower your host php version to 5.6 if you are installing phpVMS 5.5x version. If you don't have that option in your host's panel, then you won't be able to install 5.5x
  11. The error refers to the loop of your code. in fact you haven't set $comments variable to get the required data. You need to first get the data from your DB field and then use the loop to show every records. In order to do so, you need a function that reads records from your table in your DB.
  12. what version of phpVMS are you running?
  13. Not sure if I'm following you by percent flight.🤔
  14. If you click the below url, you will see the information they are providing in an XML format. Whatever info they provide can be shown in my module. If you have php knowledge to do so, you're welcome to go ahead and modify the module to your need. If you want me to customize the module for you, then it's gonna cost you a donation to my website at "www.parkho.ir" and clicking on the "Donate" button. 🙂 https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=KSFO&hoursBeforeNow=1
  15. Your php.ini file needs to be configured to "allow_url_fopen". Open php.ini file on your server and change the mentioned option to "ON".
  16. If you have a big table with a lot of data, loading them all into a drop-down + notes will take a while and slow down your server. Instead, I suggest you pull FN and notes for pilot's last pirep letting them to fill in the submission form from there. What do you think?
  17. There is another section in registration module function that suppose to check for the verification of recaptcha and in your case, somehow it had a bug not to check the submitted registration form.
  18. You'll need to alter some core files in order to remove the recaptcha.
  19. Do you want your pilots to be able to choose the FN and the rest of their PIREP's info show up in the fields automatically?
  20. After installation, I get the following page: Any ideas?!?!?
  21. I can't remember why I put "break" in that line but as of php 7 or higher, "break" statement is not permitted any more.
  22. Please paste your code for the dropdown and I'll add the required codes to it.
  23. Actually I'm aware of that I just haven't had time to fix it. I remember I fixed it for an airline using PHP strtotime function. I will have to rewrite that function and once done both your issues will be resolved.
×
×
  • Create New...