[opgelost] beheerders admin link brengt me niet naar admin

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
stomaatje
Berichten: 235
Lid geworden op: 02 jan 2006, 17:34
Locatie: zuid holland
Contacteer:

[opgelost] beheerders admin link brengt me niet naar admin

Bericht door stomaatje » 08 feb 2007, 19:22

Support Template
  • Wat is het probleem? De link om bij het beheer te komen verwijst me door naar de index. zet ik dan in de adressen balk admin er tussen dan kom ik er wel
    Wanneer ontstond het probleem? voor mijn tijd
    Adres van je forum: http://www.aquaplantexchange.nl
    Modifications op je forum: een banner onderaan de pagina is het enige wat er was geinstalleerd voordat het probleem ontstond
    Huidige stijl: Classic
    phpBB versie: 2.0.22
    Waar is je forum gehost: ??
    Heb je onlangs iets verandert aan je forum? ja
Overige opmerkingen:

Ik ben nog niet zo lang geleden ook beheerder geworden bij dit forum en zag dit probleem en het is toch best wel irri om steeds admin in de adresbalk toe te voegen dus vroeg ik me af of jullie weten wat het probleem is

Gebruikersavatar
Ramon Fincken
Berichten: 2552
Lid geworden op: 27 nov 2005, 23:15
Locatie: Diemen
Contacteer:

Bericht door Ramon Fincken » 08 feb 2007, 21:10

kun je je /includes/page_footer.php hier copy pasten met de [ code] knop?
Freelance webdevelopment, including phpbb2 scripting!

Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com

Gebruikersavatar
stomaatje
Berichten: 235
Lid geworden op: 02 jan 2006, 17:34
Locatie: zuid holland
Contacteer:

Bericht door stomaatje » 09 feb 2007, 13:07

page_tail.php zul je bedoelen?

Code: Selecteer alles

<?php

/***************************************************************************

 *                              page_tail.php

 *                            -------------------

 *   begin                : Saturday, Feb 13, 2001

 *   copyright            : (C) 2001 The phpBB Group

 *   email                : support@phpbb.com

 *

 *   $Id: page_tail.php,v 1.27.2.1 2002/05/12 00:47:41 psotfx Exp $

 *

 *

 ***************************************************************************/



/***************************************************************************

 *

 *   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 2 of the License, or

 *   (at your option) any later version.

 *

 ***************************************************************************/



if ( !defined('IN_PHPBB') )

{

	die('Hacking attempt');

}



//

// Show the overall footer.

//

$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';



$template->set_filenames(array(

	'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')

);



?>

<center><a href="http://www.aquaplantsonline.nl/"><img src="http://www.aquaplantexchange.nl/phpBB2/aquaplantsonline.gif" border="0" width="468" height="60" align="center"></a></center>

<?php



$template->assign_vars(array(

	'PHPBB_VERSION' => '2' . $board_config['version'],

	'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', 

	'ADMIN_LINK' => $admin_link)

);



$template->pparse('overall_footer');



//

// Close our DB connection.

//

$db->sql_close();



//

// Compress buffered output if required and send to browser

//

if ( $do_gzip_compress )

{

	//

	// Borrowed from php.net!

	//

	$gzip_contents = ob_get_contents();

	ob_end_clean();



	$gzip_size = strlen($gzip_contents);

	$gzip_crc = crc32($gzip_contents);



	$gzip_contents = gzcompress($gzip_contents, 9);

	$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);



	echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";

	echo $gzip_contents;

	echo pack('V', $gzip_crc);

	echo pack('V', $gzip_size);

}



exit;



?>

Gebruikersavatar
Ramon Fincken
Berichten: 2552
Lid geworden op: 27 nov 2005, 23:15
Locatie: Diemen
Contacteer:

Bericht door Ramon Fincken » 10 feb 2007, 21:49

Code: Selecteer alles

FIND
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

REPLACE WITH
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
Freelance webdevelopment, including phpbb2 scripting!

Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com

Gebruikersavatar
stomaatje
Berichten: 235
Lid geworden op: 02 jan 2006, 17:34
Locatie: zuid holland
Contacteer:

Bericht door stomaatje » 11 feb 2007, 13:26

het werkt!! dank je wel :thumb:

Gesloten