Permalink
Browse files

added option and set default to false for defunct browscap

  • Loading branch information...
1 parent 2b3056b commit f8d8222b8a28b8b9c2dbd128d1994ebde36e7178 @ddn ddn committed Dec 28, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 genetify/CONFIG.php
  2. +0 −1 genetify/genetify.js
  3. +2 −1 genetify/recorder.php
View
@@ -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
@@ -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
@@ -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');

0 comments on commit f8d8222

Please sign in to comment.