blob: a64e8325a299431c25b8af2e9b451745f9812e03 [file] [log] [blame]
Nico Huberee52fbc2023-06-24 11:52:57 +00001<?php
2/*
3 * SimpleID
4 *
5 * Copyright (C) Kelvin Mo 2007-8
6 *
7 * Includes code Drupal OpenID module (http://drupal.org/project/openid)
8 * Rowan Kerr <rowan@standardinteractive.com>
9 * James Walker <james@bryght.com>
10 *
11 * Copyright (C) Rowan Kerr and James Walker
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public
24 * License along with this program; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 *
27 * $Id$
28 */
29/**
30 * Default configuration settings
31 *
32 * @package simpleid
33 * @filesource
34 */
35
36/**
37 * Define a constant if it has not been defined already.
38 *
39 * @param $name string the name of the constant
40 * @param $value mixed the value of the constant - only scalar and null values
41 * are allowed
42 */
43function define_default($name, $value) {
44 if (!defined($name)) {
45 define($name, $value);
46 }
47}
48
49define_default('SIMPLEID_CLEAN_URL', false);
50define_default('SIMPLEID_ALLOW_PLAINTEXT', false);
51define_default('SIMPLEID_ALLOW_AUTOCOMPLETE', false);
52define_default('SIMPLEID_EXTENSIONS', 'sreg');
53define_default('SIMPLEID_VERIFY_RETURN_URL_USING_REALM', true);
54define_default('SIMPLEID_STORE', 'filesystem');
55define_default('SIMPLEID_STORE_DIR', SIMPLEID_CACHE_DIR);
56define_default('SIMPLEID_LOCALE', 'en');
57define_default('SIMPLEID_LOGFILE', '');
58define_default('SIMPLEID_LOGLEVEL', 4);
59
60if (function_exists('date_default_timezone_set')) date_default_timezone_set(@date_default_timezone_get());
61?>