define('HORDE_BASE', '/var/www/html/horde');
define('AUTH_HANDLER', true);
require_once HORDE_BASE . '/lib/base.php';
+$GLOBALS['conf']['sql']['adapter'] = $GLOBALS['conf']['sql']['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $GLOBALS['conf']['sql']['phptype'];
+$db = Horde_Db_Adapter::factory($GLOBALS['conf']['sql']);
// Putting these here so they don't interfere with timing/memory data when
// profiling.
global $driver, $logger;
$logger->debug("$driver, $effect, $time, $memory");
+
+// global $driver, $logger, $db;
+// $sql = "INSERT INTO image_tests (test, driver, peak_memory, execution_time) VALUES (?, ?, ?, ?);";
+// $db->insert($sql, array('test' => $effect,
+// 'driver' => $driver,
+// 'peak_memory' => $memory,
+// 'execution_time' => $time));
}