<?php
require_once(".htloggywoggy.php");
#loggywoggy("config.php");


/**
 * The configuration settings for the PHP OpenID Server.
 */

/**
 * The location of the Smarty templating system; set this to the
 * directory that contains Smarty.class.php.  Must end in a trailing
 * slash.
 */
define('SMARTY_DIR', '/usr/share/php/Smarty/libs/');

/**
 * The site title; this will appear at the top and bottom of each
 * page, as well as in the browser title bar.
 */
define('SITE_TITLE', "OpenID with ValID<sup>TM</sup>");

/**
 * The administrator's email address.  You may leave this empty if you
 * wish.  If empty, the "Contact (email address)" message will not
 * appear on every page footer.
 */
define('SITE_ADMIN_EMAIL', "admin@osmio.org");

/**
 * Minimum username length for account registration.
 */
define('MIN_USERNAME_LENGTH', 2);

/**
 * Minimum password length for account registration.
 */
define('MIN_PASSWORD_LENGTH', 6);

/**
 * Set this to true if you want to allow public OpenID registration.
 * In either case, the ADMIN_USERNAME account specified below will be
 * able to log in to create and remove accounts.
 */
define('ALLOW_PUBLIC_REGISTRATION', true);

/**
 * Set these values for administrative access.  This account will be
 * able to create and remove accounts from the auth backend.  This
 * username will not be permitted to use an OpenID.  The password MUST
 * be an MD5 hexadecimal hash of the password you want to use.
 * Example:
 *
 * define('ADMIN_PASSWORD_MD5', '21232f297a57a5a743894a0e4a801fc3');
 *
 */
define('ADMIN_USERNAME', 'admin');
#define('ADMIN_PASSWORD_MD5', md5('1273!Main'));
define('ADMIN_PASSWORD_MD5', '1273!Main');
#define('ADMIN_PASSWORD_MD5', '0x883587A7AE7696A396A5149C5355BF4C37FEBF12');


/**
 * Storage backend to use.  Currently the only choice is "MYSQL".  See
 * storage.php for storage backend implementations.  Parameters for
 * connecting to the storage backend.  See storage.php if you want to
 * create your own backend.
 */
define('STORAGE_BACKEND', 'VOICE');
global $storage_parameters;
$storage_parameters = array('username' => 'openid',
        #                    'password' => '0x4C7A705B2ED6F35AA79EE720AE9B09EA88481430',
	#		    'password'  => md5('T0 brush y0ur t00ths'),
			    'password'  => 'T0 brush y0ur t00ths',
   #                         'database' => 'php_openid_server',
                            'database' => 'my_openid_server',
                            'hostspec' => 'localhost');

/**
 * Authentication backend for authentication queries.  Default (and
 * only) choice is "MYSQL".  See auth.php for backend implementations
 * if you want to create your own.  This default setting just puts the
 * authentication data in the same database with the storage data
 * (above), so you probably don't need to adjust this.
 */
define('AUTH_BACKEND', 'VOICE');
global $auth_parameters;
$auth_parameters = $storage_parameters;
#loggywoggy("The auth and storage parameters are ".print_r($storage_parameters,TRUE));
#loggywoggy("Leaving config.php");
?>