Seite 1 von 1

fehler!junior admin!page_tail

Verfasst: 20.10.2004 19:39
von Pimo
ich habe den junior admin mod installiert jetzt steht unten wo sonst adminbereich steht
Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/skl/board/includes/page_tail.php on line 33

das ist meine page_tail datei

Code: Alles auswählen

if ( !defined('IN_PHPBB') )
{
	die('Hacking attempt');
}

//
// Show the overall footer.
//
include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);
$admin_link = jr_admin_make_admin_link();
' . $lang['Admin_panel'] . '</a><br /><br />' : '';

$template->set_filenames(array(
	'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);

$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;

?>
bidde helft mir

Verfasst: 20.10.2004 23:17
von rabbit
hi,

ersetze den code mal hiermit:

Code: Alles auswählen

if ( !defined('IN_PHPBB') ) 
{ 
   die('Hacking attempt'); 
} 

// 
// Show the overall footer. 
// 
include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx); 
$admin_link = jr_admin_make_admin_link();

$template->set_filenames(array( 
   'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') 
); 

$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; 

?>
:)

Verfasst: 21.10.2004 14:15
von Pimo
jetzt steht bei mir im acp

Code: Alles auswählen

Allgemeiner Fehler 
Error retrieving cash data

DEBUG MODE

SQL Error : 1146 Table 'skl.cash' doesn't exist

SELECT * FROM cash ORDER BY cash_order ASC

Line : 657
File : /usr/export/www/vhosts/funnetwork/hosting/skl/board/includes/functions_cash.php 
das stand vorher da nicht!und der cash mod funktionierte auch einwandfrei

Verfasst: 21.10.2004 15:28
von Acid
http://www.phpbb.de/viewtopic.php?p=373742#373742 ..da steht die Lösung geschrieben.