Map Mod - Parse error + Cannot add header information
Verfasst: 08.04.2006 08:24
Hi, ich habe mir eben mal den Map Mod eingebaut.
Funktioniert soweit auch ganz gut.
Nur im Admin-Bereich bekomme ich in der Menüleiste folgenden Fehler
Die betreffenden Zeilen:
Die Page_header_admin.php
Funktioniert soweit auch ganz gut.
Nur im Admin-Bereich bekomme ich in der Menüleiste folgenden Fehler
Code: Alles auswählen
Parse error: parse error in /mnt/ja1/07/319/00000013/htdocs/forum/admin/admin_users.php on line 75
Warning: Cannot add header information - headers already sent by (output started at /mnt/ja1/07/319/00000013/htdocs/forum/admin/admin_users.php:75) in /mnt/ja1/07/319/00000013/htdocs/forum/admin/page_header_admin.php on line 143
Warning: Cannot add header information - headers already sent by (output started at /mnt/ja1/07/319/00000013/htdocs/forum/admin/admin_users.php:75) in /mnt/ja1/07/319/00000013/htdocs/forum/admin/page_header_admin.php on line 145
Warning: Cannot add header information - headers already sent by (output started at /mnt/ja1/07/319/00000013/htdocs/forum/admin/admin_users.php:75) in /mnt/ja1/07/319/00000013/htdocs/forum/admin/page_header_admin.php on line 146
Die Page_header_admin.php
Und hier die admin_users.php// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('header');
?>
Wäre klasse, wenn mir da jemand helfen könnte!//
// Begin program
//
if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) || isset($HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) )
{
//
// Ok, the profile has been modified and submitted, let's update
//
if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
{
$user_id = intval($HTTP_POST_VARS['id']);
if (!($this_userdata = get_userdata($user_id)))
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
}
if( $HTTP_POST_VARS['deleteuser'] // Begin Map Mod
$sql = "DELETE FROM " . MAP_MOD_USER_TABLE . "
WHERE user_id = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete user coordinates', '', __LINE__, __FILE__, $sql);
}
// End Map Mod