summaryrefslogtreecommitdiff
path: root/validate.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-03-01 18:35:20 +0000
committerChristian Fowler <spider@viovio.com>2006-03-01 18:35:20 +0000
commit4506236a11190b302809035a86005606a644073b (patch)
tree231f189591cea7896319b5732bc487c944ed12f3 /validate.php
parent716651b5aa88c887b11f2ccb4b694551ada58ed0 (diff)
downloadusers-4506236a11190b302809035a86005606a644073b.tar.gz
users-4506236a11190b302809035a86005606a644073b.tar.bz2
users-4506236a11190b302809035a86005606a644073b.zip
move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences
Diffstat (limited to 'validate.php')
-rw-r--r--validate.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/validate.php b/validate.php
index 7543534..d07d464 100644
--- a/validate.php
+++ b/validate.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/validate.php,v 1.10 2006/02/17 13:57:55 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/validate.php,v 1.11 2006/03/01 18:35:20 spiderr Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: validate.php,v 1.10 2006/02/17 13:57:55 squareing Exp $
+ * $Id: validate.php,v 1.11 2006/03/01 18:35:20 spiderr Exp $
* @package users
* @subpackage functions
*/
@@ -29,13 +29,13 @@ if( empty( $_SESSION['loginfrom'] ) ) {
}
$https_mode = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
-$https_login_required = $gBitSystem->getPreference('https_login_required', 'n');
+$https_login_required = $gBitSystem->getConfig('https_login_required', 'n');
if ($gBitSystem->isFeatureActive( 'https_login_required' ) && !$https_mode) {
- $url = $gBitSystem->getPreference( 'https_domain' );
- $https_port = $gBitSystem->getPreference('https_port', $https_port);
+ $url = $gBitSystem->getConfig( 'https_domain' );
+ $https_port = $gBitSystem->getConfig('https_port', $https_port);
if ($https_port != 443)
$url .= ':' . $https_port;
- $url .= $gBitSystem->getPreference( 'https_prefix' ) . $gBitSystem->getDefaultPage();
+ $url .= $gBitSystem->getConfig( 'https_prefix' ) . $gBitSystem->getDefaultPage();
if (SID)
$url .= '?' . SID;
$url = preg_replace('/\/+/', '/', $url);