Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added option and set default to false for defunct browscap

  • Loading branch information...
commit f8d8222b8a28b8b9c2dbd128d1994ebde36e7178 1 parent 2b3056b
@ddn ddn authored
View
2  genetify/CONFIG.php
@@ -5,6 +5,8 @@
$DB['password'] = '';
$DB['database'] = 'genetify';
+$CONFIG['browsecap'] = false; // browscap is defunct, turn off by default if & until a replacement is installed
+
// change as desired for debugging
error_reporting(E_ALL);
View
1  genetify/genetify.js
@@ -30,7 +30,6 @@ var genetify = {
NO_VARYING: false,
LOAD_CONTROLS: false,
SHOW_RESULTS: false,
- USE_BROWSECAP: false, // browscap is defunct, turn off by default if & until a replacement is installed
NAMESPACE: window.location.pathname
//TODO: NO_SCANNING
//TODO: DEBUG
View
3  genetify/recorder.php
@@ -377,11 +377,12 @@ function insert_new_visitor($ip_address)
{
global $mysqli;
+
$visitor = array('ip_address' => $ip_address);
// TODO: best delimiter?
$visitor['hash'] = md5(implode('', $visitor));
- if (genetify.config.USE_BROWSCAP){
+ if ($CONFIG['browsecap']) {
//TODO: make optional
require_once('Browscap/Browscap.php');
Please sign in to comment.
Something went wrong with that request. Please try again.