Jump to content

mark1million

Moderators
  • Posts

    2288
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mark1million

  1. My base system is fairly much unrecognisable from its release. There have been years of customisations, from graphs and charts to animated schedule maps, exam systems, training systems, animated flight paths etc, etc. It's not likely that I will move to v7 as there are thousands of pireps in the system and converting is not really an option.

    Since I run this on a dedicated server, I have full control over the environment, so in theory, I can keep this going for as long as I need.

    If any devs are willing to work on a new Acars system, please let me know. As previously said above, I am looking for a lightweight solution using Simconnect and backward compatibility with fsuipc. We would need to work together to ensure all my current reported data is available in the new system, I can create a function to control the parameters depending on the acars client when the data is received in the system as we have some custom scoring criteria in place based upon the flight log received.

    If any developers are willing to progress this, please let me know.

     

    Thanks,

    Mark.

     

    • Like 1
  2. Yes it's for v5. It needs a refresh, I have tried reverse engineering the code but it's encrypted. 

     

    It's easier for me to stat a fresh. Don't get me wrong it's fully working with everything you could want to log but it's not customisable. 

     

    Im Just looking at future proofing also.

  3. Hi,
    I am looking for an Acars developer. If this is something you can do, please get in contact.

    I have a heavily modified vms system running on php7.4, happy to create new framework to support integration.

    Acars must be backwards compatible ie, fsuipc offsets and able to process data using simconnect.

    If this is something you can achieve let me know and we can discuss payment.

    Thanks,

    Mark.

     

     

  4. If i remember right what i did was put the flightboard code on a separate php page so in the root of your install, then all i did was include that page where i wanted the flight board to show up.

     

    I put the include in a div and used javascript to auto refresh it.

     

    So in my case it was this at the top of the page frontpage_main.php

     

    <script type="text/javascript">
    setInterval(function() {
        $("#fboard").load(location.href+" #fboard>*","");
    }, 60000);
    </script>
     

    And where i wanted the flight board to show up,

     

    <div id="fboard"><?php include 'flightboard.php';?></div>

    There are probably better ways to get this accomplished but this works in every browser without problems, you can also look at using jquery 

     

    Hope that helps.

     

  5. Hi, you need to comment out the event listener

     

    <?php
    class TopPilot extends CodonModule {
        public static $tour_center = 1; // 0:if no tour system -or- 1:for SimpilotGroup Tour Center -or- 2:for CrazyCreatives Tour Module
        public $title = 'Top Pilots';
    
       // public function __construct() {
          //  CodonEvent::addListener('TopPilot', array('pirep_filed'));
        //}
        public function EventListener($eventinfo) {
            if($eventinfo[0] == 'pirep_filed') {
                self::refresh_month_stats();
            }
        }

    Every time a pirep is filed it recalculates the data which caused a massive delay.

     

    You will then need to run a cron every hour or 5 hours to update the stats manually.

     

    Give that a try if it works i can tell you how to manually run the update of stats.

  6. You need to edit your my.cnf configuration file for your mysql server, find the fine tuning section, MAKE A BACKUP FIRST,

     

    These are my settings for guidance they may not work for you so change one thing at a time and test out.

     

    #
    # * Fine Tuning
    #
    key_buffer		= 348M
    
    max_allowed_packet	= 16M
    thread_stack		= 192K
    thread_cache_size       = 8
    
    key_buffer = 512M
    table_cache = 1064
    sort_buffer_size = 4M
    read_buffer_size = 1M
    read_rnd_buffer_size = 8M
    myisam_sort_buffer_size = 64M
    thread_cache_size = 8
    query_cache_size = 128M
    query_cache_type=1
    query_cache_limit=4194304
    long_query_time = 3
    innodb_buffer_pool_size = 3G
    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency = 16
    table_open_cache =200
    [isamchk]
    key_buffer = 128M
    sort_buffer_size = 128M
    read_buffer = 2M
    write_buffer = 2M

     

  7. SMTP should be the following,

    # Add multiple SMTP servers by separating them with ;
    Config::Set('EMAIL_SMTP_SERVERS', 'smtp.gmail.com');
    Config::Set('EMAIL_SMTP_PORT', '465');
    Config::Set('EMAIL_SMTP_USE_AUTH', true);
    Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps
    Config::Set('EMAIL_SMTP_USER', youremailaddress');
    Config::Set('EMAIL_SMTP_PASS', 'yourpassword');

     

    Google API key for what?

     

  8. Anyone else get a email from Google saying they are going to charge for the api access to their maps?

     

    I can verify this is true and genuine, they will allow a certain limit of access up to a value of $200, after this they will start to charge you, this new process requires you have a valid credit card or the like linked to your maps api account.

     

    Just letting you know what i found out. 

     

     

  9. On 3/19/2018 at 9:52 PM, TAV1702 said:

    TO bad API2 was not in place first. You all are going to have 500 new Russian hot chicks registering overnight and informing you that if you send them $9875 they will send you your UK lottery winnings and by clicking this lucky link you can view all their nasty pics that you want. VIRUS FREE!

    Please tell me you all have a captcha of some type installed now and not just a help yourself registration?

    Ha ha :)

     

    If you have the entrance exam you generally find that's all the spam protection you will ever need. I have never had any spam registrations.

    • Like 1
  10. Sorry chaps been crazy busy here.

     

    To remove Captcha from the native registration do the following,

     

    registrationmaindform.tpl or php

     

    Back up your files before editing i take no responsibility if your site breaks!

     

    Find the following and delete it or just comment it out.

       <dt>ReCaptcha</dt>
       <dd>
    <script type="text/javascript">
             var RecaptchaOptions = {
                theme : 'white'
             };
             </script>
          <?php
             echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
          ?>
       </dd>
    
       <dt></dt>

    Go to the Core>Modules>Registration>registration.php and remove of comment out this as i have,

    	/*	$error = false;
    		
    		$resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'),
    			$_SERVER["REMOTE_ADDR"],
    			$_POST["recaptcha_challenge_field"],
    			$_POST["recaptcha_response_field"]);
    
    		if(!$resp->is_valid) {
    			$error = true;
    			$this->set('captcha_error', $resp->error);
    		} else {
    		  $this->set('captcha_error', '');
    		}
    		*/

     

    If you have Davids Entrance Exam you need to edit some more files but because it used the native phpVms registration process then you will need to edit that also in the core modules registration registration.php as well.

     

    To remove from the entrance exam you need to edit the following in the entrance folder of your skin or template where ever you installed it. registration_form.php and entrance_form.php, remove this from both.

       <dt>reCaptcha</dt>
       <dd>
          <?php
             echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
          ?>
    <p class="error">* Please note these are required fields and must be completed to register.</p>
       </dd>
    
       <dt></dt>

     

    remove this same thing from both those files

     

    Finally in teh Core>modules>Entrance> Entrance.php remove the following or comment it out as i have.

    /*
          $error = false;
    
          $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'),
             $_SERVER["REMOTE_ADDR"],
             $_POST["recaptcha_challenge_field"],
             $_POST["recaptcha_response_field"]);
    
          if(!$resp->is_valid) {
             $error = true;
             $this->set('captcha_error', $resp->error);
          } else {
            $this->set('captcha_error', '');
     }
         */

    This will remove Captcha from your registration process.

     

    Back up your files before editing i take no responsibility if your site breaks!

  11. On 28/06/2012 at 1:32 PM, servetas said:

    Tours system will only process the PIREP if it is submitted with an scars client. I send you the solution via pm.

    For your information you must not request support for payware modules here. You can open a ticket here.

    George can you help he please with this solution?

×
×
  • Create New...