Hi ...
die Funktion wurde neu in der 2.0.20 hinzugefügt ....
Prüfe mal bitte deine functions.php ob das alles so drin ist.
Code: Alles auswählen
includes/functions.php
#
#-----[ FIND ]---------------------------------------------
# Line 137
}
return $str;
}
#
#-----[ AFTER, ADD ]---------------------------------------------
#
/**
* Our own generator of random values
* This uses a constantly changing value as the base for generating the values
* The board wide setting is updated once per page if this code is called
* With thanks to Anthrax101 for the inspiration on this one
* Added in phpBB 2.0.20
*/
function dss_rand()
{
global $db, $board_config, $dss_seeded;
$val = $board_config['rand_seed'] . microtime();
$val = md5($val);
$board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a');
if($dss_seeded !== true)
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . $board_config['rand_seed'] . "'
WHERE config_name = 'rand_seed'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql);
}
$dss_seeded = true;
}
return substr($val, 16);
}
#
#-----[ FIND ]---------------------------------------------
# Line 401
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
#
#-----[ REPLACE WITH ]---------------------------------------------
#
// We are trying to setup a style which does not exist in the database
// Try to fallback to the board default (if the user had a custom style)
// and then any users using this style to the default if it succeeds
if ( $style != $board_config['default_style'])
{
$sql = 'SELECT *
FROM ' . THEMES_TABLE . '
WHERE themes_id = ' . $board_config['default_style'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}
if ( $row = $db->sql_fetchrow($result) )
{
$db->sql_freeresult($result);
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_style = ' . $board_config['default_style'] . "
WHERE user_style = $style";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not update user theme info');
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
#
#-----[ FIND ]---------------------------------------------
# Line 696
$debug_text .= '</br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file);
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$debug_text .= '<br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file);
#
#-----[ FIND ]---------------------------------------------
# Line 723
if ( empty($template) )
{
$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
}
if ( empty($theme) )
#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ( empty($template) || empty($theme) )
Markus