Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1860)
+++ branches/2.8.x/CHANGELOG	(revision 1861)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+18 Feb-2013 Build 1861 Werner v.d.Decken(DarkViper)
++ added temporary class WbAdaptor (replacement for future registry)
 04 Feb-2013 Build 1860 Werner v.d.Decken(DarkViper)
 + added new translation classes (Translate/TranslationTable/TranslateAdaptorWbOldStyle) for easy handling of language files
 ! initialize and activate class Translate in /framework/initialize.php
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1860)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1861)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '1860');
+if(!defined('REVISION')) define('REVISION', '1861');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/WbAdaptor.php
===================================================================
--- branches/2.8.x/wb/framework/WbAdaptor.php	(nonexistent)
+++ branches/2.8.x/wb/framework/WbAdaptor.php	(revision 1861)
@@ -0,0 +1,218 @@
+<?php
+
+/**
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * WbAdaptor.php
+ *
+ * @category     Core
+ * @package      Core_package
+ * @author       Werner v.d.Decken <wkl@isteam.de>
+ * @copyright    Werner v.d.Decken <wkl@isteam.de>
+ * @license      http://www.gnu.org/licenses/gpl.html   GPL License
+ * @version      0.0.1
+ * @revision     $Revision$
+ * @lastmodified $Date$
+ * @since        File available since 18.01.2013
+ * @deprecated   This class will be removed if Registry comes activated
+ * @description  This adaptor is a temporary replacement for the future registry class
+ */
+class WbAdaptor {
+
+/** active instance */	
+	private static $_oInstance = null;
+/** array hold settings */	
+	private $_aSys = array();
+/** constructor */
+	protected function __construct() 
+	{
+		$this->_aSys = array('Sys' => array(), 'Req' => array());
+	}
+/**
+ * Get active instance 
+ * @return WbAdaptor
+ */
+	public static function getInstance()
+	{
+		if(self::$_oInstance === null) {
+			$c = __CLASS__;
+			self::$_oInstance = new $c();
+			
+		}
+		return self::$_oInstance;
+	}
+/**
+ * Get value of a variable
+ * @param string name of the variable
+ * @return mixed
+ */	
+	public function __get($sVarname)
+	{
+		if( isset($this->_aSys['Request'][$sVarname])) {
+			return $this->_aSys['Request'][$sVarname];
+		}elseif( isset($this->_aSys['System'][$sVarname])) {
+			return $this->_aSys['System'][$sVarname];
+		}elseif( isset($this->_aSys[$sVarname])) {
+			return $this->_aSys[$sVarname];
+		}else {
+			return null;
+		}
+	}
+/**
+ * Check if var is set
+ * @param string name of the variable
+ * @return bool
+ */	
+	public function __isset($sVarname)
+	{
+		$bRetval = (isset($this->_aSys['Request'][$sVarname]) ||
+		            isset($this->_aSys['System'][$sVarname]) ||
+		            isset($this->_aSys[$sVarname]));
+		return $bRetval;
+	}
+/**
+ * Import WB-Constants
+ */	
+	public function getWbConstants()
+	{
+		$this->_aSys = array('Sys' => array(), 'Req' => array());
+		$aConsts = get_defined_constants(true);
+		foreach($aConsts['user'] as $sKey=>$sVal)
+		{
+			// change all path items to trailing slash scheme
+			switch($sKey):
+				case 'WB_URL': 
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AppUrl';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'WB_REL':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AppRel';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'WB_PATH':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AppPath';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'ADMIN_URL':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AcpUrl';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'ADMIN_REL':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AcpRel';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'ADMIN_PATH':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AcpPath';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'THEME_URL':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'ThemeUrl';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'THEME_REL':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'ThemeRel';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'THEME_PATH':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'ThemePath';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'TMP_PATH':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'TempPath';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'ADMIN_DIRECTORY':
+					$sVal = trim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'AcpDir';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'DOCUMENT_ROOT':
+					$sVal = rtrim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'DocumentRoot';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'PAGES_DIRECTORY':
+					$sVal = trim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'PagesDir';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'MEDIA_DIRECTORY':
+					$sVal = trim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'MediaDir';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'DEFAULT_TEMPLATE':
+					$sVal = trim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'DefaultTemplate';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'DEFAULT_THEME':
+					$sVal = trim(str_replace('\\', '/', $sVal), '/').'/';
+					$sKey = 'DefaultTheme';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'TABLE_PREFIX':
+					$sKey = 'TablePrefix';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'OCTAL_FILE_MODE':
+					$sVal = ((intval($sVal) & ~0111)|0600); // o-x/g-x/u-x/o+rw
+					$sKey = 'OctalFileMode';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'OCTAL_DIR_MODE':
+					$sVal = (intval($sVal) |0711); // o+rwx/g+x/u+x
+					$sKey = 'OctalDirMode';
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+				case 'WB_VERSION':
+					$sKey = 'AppVersion';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'WB_REVISION':
+					$sKey = 'AppRevision';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				case 'WB_SP':
+					$sKey = 'AppServicePack';
+					$this->_aSys['System'][$sKey] = $sVal; 
+					break;
+				default:
+					$sVal = ($sVal == 'true' ? true : ($sVal == 'false' ? false : $sVal));
+					$sKey = str_replace(' ', '', ucwords(str_replace('_', ' ', strtolower($sKey))));
+					$this->_aSys['Request'][$sKey] = $sVal; 
+					break;
+			endswitch;
+			$this->_aSys[$sKey] = $sVal;
+		}
+		$this->_aSys['AppName'] = 'WebsiteBaker';
+		$this->_aSys['System']['AppName'] = 'WebsiteBaker';
+	}
+
+} // end of class WbAdaptor
+

Property changes on: branches/2.8.x/wb/framework/WbAdaptor.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision HeadURL
\ No newline at end of property
