Bitte um kleine Hilfe

#################################################################
# Einfügen des chCounters in phpBB 2.0.x
#########################################################
# Bitte jeweils zur Sicherheit zuerst ein Backup der zu ändernden Dateien erstellen!!
#################################################################
#
#-----[ AKTION: ]------------------------------------------
# ÖFFNEN: chCounter-Verzeichnis/counter.php
[FINDEN]:
if(session_id())
{
$GLOBALS['chC']['env']['seite'] = preg_replace("/(\w)+=".session_id()."&?/", '', $GLOBALS['chC']['env']['seite']);
$GLOBALS['chC']['env']['seite'] = preg_replace("/(&|\?)$/", '', $GLOBALS['chC']['env']['seite']);
}
[DANACH EINFÜGEN]:
else
{
$GLOBALS['chC']['env']['seite'] = preg_replace("/sid=(\d|\w)+/", '', $GLOBALS['chC']['env']['seite']);
$GLOBALS['chC']['env']['seite'] = preg_replace("/(\?|&)$/", '', $GLOBALS['chC']['env']['seite']);
}
#
#-----[ AKTION: ]------------------------------------------
# ÖFFNEN: phpBB-Verzeichnis/includes/page_header.php
[FINDEN]:
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
[DAVOR EINFÜGEN]:
//
// chCounter
//
ob_start();
INCLUDE_CODE
$chCounter = ob_get_contents();
ob_end_clean();
[ERSETZE IN OBIGEM CODE "INCLUDE_CODE" DURCH DEN INCLUDE-CODE DES COUNTERS]
[FINDEN]:
'SITENAME' => $board_config['sitename'],
[DAVOR EINFÜGEN]:
'COUNTER' => $chCounter,
#
#-----[ AKTION: ]------------------------------------------
# ÖFFNEN: phpBB-Verzeichnis/includes/functions.php
[FINDEN]:
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images;
global $userdata, $user_ip, $session_length;
global $starttime;
[DANACH EINFÜGEN]:
global $HTTP_SERVER_VARS, $HTTP_GET_VARS, $HTTP_COOKIE_VARS;
#
#-----[ AKTION: ]------------------------------------------
# FÜGE JETZT IN DEM TEMPLATE DES FORUMS AN BELIEBIGER STELLE DEN AUSDRUCK "{COUNTER}" EIN (ohne die Anführungszeichen),
# UM DEN COUNTER ANZUZEIGEN
# Z.B. IN DER TEMPLATE-DATEI "templates/dein_template/overall_footer.tpl".
#
# JETZT ALLE GEÄNDERTEN DATEIEN HOCHLADEN.
---------------------------------------
############## Das war's! ##############