Changeset 707


Ignore:
Timestamp:
Nov 15, 2019 5:50:28 PM (4 years ago)
Author:
anonymous
Message:

Add polyfill mysql support for PHP 7

Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/config/boot.inc.php

    r608 r707  
    5353 *****************************************************************************/
    5454
    55 if ($CFG->enable_mysql) { // use mysql database _______________________________
     55if ($CFG->enable_mysql) {
    5656
    5757    // MySQL connection parameters.
     
    7777        logMsg('Database credentials missing.', LOG_WARNING, __FILE__, __LINE__);
    7878    }
     79
     80    // Polyfill to support PHP 7.
     81    require_once dirname(__FILE__) . '/../polyfill/mysql.inc.php';
    7982
    8083    // Connect to MySQL
  • trunk/lib/Utilities.inc.php

    r706 r707  
    15441544* @param    float   $threshold  Return true if the IP score is above this threshold (0-1).
    15451545* @param    string  $email      Requester email address.
    1546 * @return
     1546* @return   boolean             True if the IP address appears to be a robot, proxy, or VPN.
     1547*                               False if the IP address is a residential or business IP address, or the API failed to return a valid response.
    15471548* @author   Quinn Comendant <quinn@strangecode.com>
    15481549* @since    26 Oct 2019 15:39:17
Note: See TracChangeset for help on using the changeset viewer.