1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?php include $basePath . "schemas/schemas.inc.php"; require ($basePath . 'couchdb/settee/src/settee.php'); if (php_uname('n') == "vanille") { $serverAddr = 'http://192.168.178.21:5984/'; } else if (php_uname('n') == "KYUUBEY") { $serverAddr = 'http://192.168.1.148:5984/'; $serverAddr = 'http://127.0.0.1:5984/'; } else if (php_uname('n') == "ikurt-20") { //$serverAddr = 'http://192.168.1.113:5984/'; $serverAddr = 'http://127.0.0.1:5984/'; } else { $serverAddr = 'http://127.0.0.1:5984/'; } $server = new SetteeServer($serverAddr); function setteErrorHandler($e) { if (class_exists('Amon')) { Amon::log($e->getMessage() . " " . print_r($_SERVER, true), array('error')); } echo $e->getMessage() . "<br>" . PHP_EOL; } |