Jump to content

ReCatcha


perryfincher

Recommended Posts

  • Administrators

phpVMS 5.0 Classic is version 2.1.x updated for php versions up to php 7.0 I believe. Not sure if this version is ReCaptcha v2 compliant or not. I think it's best suited for those who already have phpVMS 2.1.x installed and are actively using it on their established VA. 

You may be better served by installing the Simpilot version - phpVMS 5.5.2? Here's a link: https://github.com/DavidJClark/phpvms_5.5.x . This version is already ReCaptcha v2 compliant - among other updates. If you decide to use 5.5.2, just delete the present files and if the database is new (without any pilots, airports, aircraft, schedules, etc.) delete it also and start fresh. If the database already has some data in it, just make a new database for 5.5.2.

As for adding modules, many (most?) freeware modules have been updated to work with phpVMS 5.5.2. Those that are not are pretty easily converted.

 

Link to comment
Share on other sites

  • Administrators

The coding is in place for ReCaptcha version 2 - you will need to acquire and enter your own Recaptcha keys. Those keys get entered into local.config.php - if there are no entries to pit them there, copy/paste that particular section from app.config.php into local.config.php and enter your keys as indicated.

Link to comment
Share on other sites

Hey ProAvia;

I copied all the text from the app.config.php into the local.config.php and then inserted my reCatcha keys.

I checked the registrations page and no fields show up next to the reCaptcha.

Below is my local.config.php file with keys inserted at bottom.

<?php

/**
 * This is the phpVMS Main Configuration File
 *
 * This file won't be modified/touched by future versions
 * of phpVMS, you can change your settings here
 *
 * There may also be additional settings in app.config.php
 * To change it, copy the line into this file here, for the
 * settings to take effect
 *
 */
Config::Set('DEBUG_MODE', false);
Config::Set('DEBUG_LEVEL', 1); // 1 logs query errors, 2 logs all queries
Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);

 

define('TABLE_PREFIX', 'phpvms_');

define('SITE_URL', 'http://www.panamericanva.com/phpvms');

# Page encoding options
Config::Set('PAGE_ENCODING', 'ISO-8859-1');

# Clean URLs - set this to true, and then uncomment
# the lines indicated in the .htaccess file
Config::Set('URL_REWRITE', false);

# Maintenance mode - this disables the site to non-admins
Config::Set('MAINTENANCE_MODE', false);
Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');

/* Whether you have the /admin/maintenance.php script added into cron.
 If you do, set this to true. This saves many DB calls since phpVMS will
 have to 'fake' a cron-job
 */
Config::Set('USE_CRON', false);

Config::Set('CHECK_RELEASE_VERSION', true);
Config::Set('CHECK_BETA_VERSION', false);

# See more details about these in the docs
Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP
Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from
Config::Set('PILOTID_LENGTH', 4); # Length of the Pilot ID
Config::Set('UNITS', 'nm');   # Your units: nm, mi or km
Config::Set('LOAD_FACTOR', '82'); # %age load factor
Config::Set('CARGO_UNITS', 'lbs');

# After how long to mark a pilot inactive, in days
Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 90);

# Automatically confirm pilots?
Config::Set('PILOT_AUTO_CONFIRM', false);

# Automatically calculate ranks?
Config::Set('RANKS_AUTOCALCULATE', true);

# For how many hours a pilot can edit their submitted PIREP (custom fields only)
Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', false);

# If you want to count transfer hours in rank calculations
Config::Set('TRANSFER_HOURS_IN_RANKS', false);

# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 20);

# Google Map Options
Config::Set('MAP_WIDTH', '800px');
Config::Set('MAP_HEIGHT', '600px');
# Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');
Config::Set('MAP_LINE_COLOR', '#ff0000');
Config::Set('MAP_CENTER_LAT', '45.484400');
Config::Set('MAP_CENTER_LNG', '-62.334821');
Config::Set('MAP_ZOOM_LEVEL', 12);

# ACARS options
#  Minutes, flights to show on the ACARS
#  Default is 720 minutes (12 hours)
Config::Set('ACARS_LIVE_TIME', 720);
Config::Set('ACARS_DEBUG', false);

# This is your airline's twitter account, if it exists
Config::Set('TWITTER_AIRLINE_ACCOUNT', '');
Config::Set('TWITTER_ENABLE_PUSH', false);
Config::Set('TWITTER_CONSUMER_KEY', '');
Config::Set('TWITTER_CONSUMER_SECRET', '');
Config::Set('TWITTER_OAUTH_TOKEN', '');
Config::Set('TWITTER_OAUTH_SECRET', '');

/*
  This is the unit of money. For non-dollars, use :
 Dollars ($), enter "$"
    Euro (

/* Keys for recaptcha, you can change these if you want to your own but it's
 a global key so it should just work */
Config::Set('RECAPTCHA_PUBLIC_KEY', );
Config::Set('RECAPTCHA_PRIVATE_KEY', );

 

Thanks

Edited by perryfincher
Link to comment
Share on other sites

  • Administrators

Your registration page and contact page are working correctly and the ReCaptcha is functioning as it should. I just registered as Test Test successfully - you can delete that registration. Also, I sent a message thru the contact form.

I would suggest you remove you database info and ReCaptcha keys from your post above.

Link to comment
Share on other sites

  • Administrators

I did both those tests just prior to my last posting. The ReCaptcha box is there and functions as it should. Do you not see the ReCaptcha box?

Registrations and contact form messages should go to theemail you have set in admin, Site & Settings, General Settings.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...