| 1 | <?php |
| 2 | // error reporting (for testing) |
| 3 | ini_set('display_errors', 1); error_reporting(E_ALL); |
| 4 | |
| 5 | // Read DB settings |
| 6 | $dbdata = json_decode(file_get_contents('/etc/kairo/auth_db.json'), true); |
| 7 | if (!is_array($dbdata)) { trigger_error('DB configuration not found', E_USER_ERROR); } |
| 8 | |
| 9 | // Extended DOM document class |
| 10 | require_once('../kairo/include/cbsm/util/document.php-class'); |
| 11 | |
| 12 | bindtextdomain('kairo_auth', 'en'); // XXX: Should negotiate locale. |
| 13 | bind_textdomain_codeset('kairo_auth', 'utf-8'); |
| 14 | |
| 15 | // include our OAuth2 Server object |
| 16 | require_once(__DIR__.'/server.inc.php'); |
| 17 | ?> |