Index: trunk/core/units/general/inp1_parser.php =================================================================== diff -u -N -r6093 -r7855 --- trunk/core/units/general/inp1_parser.php (.../inp1_parser.php) (revision 6093) +++ trunk/core/units/general/inp1_parser.php (.../inp1_parser.php) (revision 7855) @@ -54,7 +54,7 @@ global $objTemplate, $CurrentTheme, $objThemes, $objLanguageCache, $var_list; if ($this->InpParsetInited) return true; - $theme_id = $this->Application->GetVar('m_theme'); + $theme_id = $this->Application->IsAdmin() ? 1 : $this->Application->GetVar('m_theme'); if ($theme_id) { $CurrentTheme = $objThemes->GetItem($theme_id); @@ -97,10 +97,9 @@ $pathchar, $objTemplate, $objTopicList, $objArticleList, $objPostingList, $objCensorList, $objSmileys, $objPMList, $SubscribeAddress, $SubscribeError, $SubscribeResult, $application; - $pathtoroot = $this->Application->IsAdmin() ? '../' : './'; - $pathtoroot = realpath($pathtoroot)."/"; + $pathtoroot = FULL_PATH.'/'; - if (!file_exists($pathtoroot."config.php")) { + if (!file_exists(FULL_PATH.'/config.php')) { echo "In-Portal is probably not installed, or configuration file is missing.
"; echo "Please use the installation script to fix the problem.

"; echo "Go to installation script

"; @@ -109,7 +108,7 @@ } //ob_start(); - $FrontEnd=1; + $FrontEnd = 1; $indexURL="../../index.php"; //Set to relative URL from the theme directory @@ -130,7 +129,7 @@ $_local_t = $k4_referer; $this->Application->RemoveVar('K4_Template_Referer'); } - $objSession->SetVariable('Template_Referer', $_local_t); + $objSession->SetVariable('Template_Referer', isset($_local_t) ? $_local_t : ''); } // process referer in session: end