ich setze mal das ganze teil hier rein weil mir nicht klar ist wie die zeilen gezählt werden:
if (!defined('SMF'))
{
global $mosConfig_absolute_path, $smf_path, $maintenance, $sourcedir, $context, $user, $mosConfig_live_site, $mosConfig_db, $mosConfig_dbprefix;
require($mosConfig_absolute_path . '/administrator/components/com_smf/config.smf.php');
require_once($smf_path . '/Settings.php');
}
global $context, $txt, $scripturl, $boardurl, $settings, $mosConfig_dbprefix, $bridge_reg, $db_prefix, $db_name, $smf_date, $mosConfig_db, $mosConfig_sef;
mysql_select_db($mosConfig_db);
$result = mysql_query("
SELECT id
FROM {$mosConfig_dbprefix}menu
WHERE link = 'index.php?option=com_smf'");
if ($result !== false)
list($menu_item) = mysql_fetch_row($result);
else
$menu_item = 1;
$myurl = basename($_SERVER) . '?option=com_smf&Itemid=' . $menu_item . '&';
$scripturl = $myurl;
$smf_align = $params->get('smf_align');
$smf_personal_welcome = $params->get('smf_personal_welcome');
$smf_notification = $params->get('smf_notification');
$smf_unread = $params->get('smf_unread');
$smf_new_answers = $params->get('smf_new_answers');
$smf_new_pms = $params->get('smf_new_pms');
$smf_loggedin_time = $params->get('smf_loggedin_time');
$smf_notify_logged_in = $params->get('smf_notify_logged_in');
$smf_logout_button = $params->get('smf_logout_button');
$smf_logout_button_image = $params->get('smf_logout_button_image');
mysql_select_db($db_name);
echo '
', empty($context) ? '' : '
' . $context . '
', '
';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context){
if ($smf_personal_welcome){
echo '
', $txt[247], ' ', $context, ',';
}
// If defined in parameters mod_smf a special message for logged in users will displayed.
if ($smf_personal_welcome && $smf_notify_logged_in)
echo '';
if ($smf_notify_logged_in)
echo $smf_notify_logged_in;
// Only tell them about their messages if they can read their messages!
if($smf_new_pms && $context)
echo
' ', $txt[152], ' ', $context, ' ', $context != 1 ? $txt[153] : $txt[471], '';
// if defined user can read their new messages
if($smf_unread)
echo
$txt, ' ', $context, ' ', $context == 1 ? $txt : $txt . '.';
// Is the forum in maintenance mode?
if ($context && $context)
echo '
', $txt[616], '';
// Are there any members waiting for approval?
if (!empty($context))
echo '
', $context == 1 ? $txt : $txt, ' ', $context == 1 ? $txt : $context . ' ' . $txt, ' ', $txt;
// Show the total time logged in?
if($smf_loggedin_time && !empty($context))
{
echo '
', $txt;
// If days is just zero, don't bother to show it.
if ($context > 0)
echo $context . $txt;
// Same with hours - only show it if it's above zero.
if ($context > 0)
echo $context . $txt;
// But, let's always show minutes - Time wasted here: 0 minutes

.
echo $context, $txt;
}
if ($smf_unread)
echo '
', $txt, '';
if ($smf_new_answers)
echo '
', $txt, '';
if ($smf_date)
echo '
' . $context;
if ($params->get('logout')=="2")
$_SESSION = sefReltoAbs(basename($_SERVER).'?'.$_SERVER);
echo '
get('logout').'&sesc='. $context), '">', $smf_logout_button ? '' : $txt[108], '';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
$txt = str_replace($boardurl.'/index.php?', $scripturl , $txt);
$txt = str_replace($scripturl.'?',$scripturl,$txt);
if ($bridge_reg==true)
{
$txt = str_replace($scripturl.'action=register', sefReltoAbs(basename($_SERVER) . '?option=com_smf_registration&task=register'), $txt);
$txt = str_replace($scripturl.'action=activate', sefReltoAbs(basename($_SERVER) . '?option=com_smf_registration&task=lostCode'), $txt);
} else {
$txt = str_replace($scripturl.'action=register', sefReltoAbs($scripturl.'action=register'),$txt);
$txt = str_replace($scripturl.'action=activate', sefReltoAbs($scripturl.'action=activate'),$txt);
}
$txt[34] = str_replace('&?','&', $txt[34]);
if (!isset($login))
{$login = '';}
if (!isset($message_login))
{$message_login = '';}
echo '
', $txt, '
', $context, '
',$txt[35],':
',$txt[36],':
', $txt, '
', $txt, '
', $txt, '
', $txt, '
', $txt, '
', $txt, '
get('login'), '" />
Forgot your password?';
}
if ($params->get('login') == '2' && $_REQUEST != 'login' && $_REQUEST != 'com_smf_registration')
$_SESSION = $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER) . '?' . $_SERVER) : $mosConfig_live_site . '/' . basename($_SERVER) . '?' . $_SERVER;
echo '
';
mysql_select_db($GLOBALS);
?>
interessant wäre es auch noch zu wissen warum der fehler aufgetreten ist..........