[quote="oxpus";p="65180"]Mach diese Änderungen. Die gehen auch im Plus.
Was Du nicht findest, kannst Du dann ja nachfragen.[/quote]
Vielen Dank Oxpus,
morgen werde ich anfangen und mich bei Problemen dann hier im Thread melden :-)
MfG
ToXic
EDIT:
Ich konnte nicht warten, habe schonmal angefangen und poste das erste Problem:
includes/usercp_confirm.php
Diese Datei habe ich nicht, dürfte aber kein Problem sein denke ich?
Code: Alles auswählen
includes/usercp_register.php
#-----[ FIND ]---------------------------------------------
# Line 295 (error)
message_die(GENERAL_ERROR, 'Could not obtain confirmation code', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
#
#-----[ FIND ]---------------------------------------------
# Line 300
// Only compare one char if the zlib-extension is not loaded
if (!@extension_loaded('zlib'))
{
$row['code'] = substr($row['code'], -1);
}
#
#-----[ REPLACE WITH ]---------------------------------------------
# Just remove/delete the lines (replacing with an empty line)
#-----[ FIND ]---------------------------------------------
# Line 986 (error)
$confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');
list($usec, $sec) = explode(' ', microtime());
mt_srand($sec * $usec);
$max_chars = count($confirm_chars) - 1;
$code = '';
for ($i = 0; $i < 6; $i++)
{
$code .= $confirm_chars[mt_rand(0, $max_chars)];
}
#
#-----[ REPLACE WITH ]---------------------------------------------
#
// Generate the required confirmation code
// NB 0 (zero) could get confused with O (the letter) so we make change it
$code = dss_rand();
$code = strtoupper(str_replace('0', 'o', substr($code, 6)));
Obige Stellen kann ich leider nicht finden.
Ich füge besagtes File einmal an dieses Posting an.
EDIT:
Noch ein Problem. Nachstehendes kann ich nicht finden:
Code: Alles auswählen
index.php
#
#-----[ FIND ]---------------------------------------------
# Line 117 (error)
while( $category_rows[] = $db->sql_fetchrow($result) );
#
#-----[ REPLACE WITH ]---------------------------------------------
#
while ($row = $db->sql_fetchrow($result))
{
$category_rows[] = $row;
}
#
#-----[ FIND ]---------------------------------------------
# Line 301 (error)
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Should we display this category/forum set?
//
$display_forums = false;
for($j = 0; $j < $total_forums; $j++)
{
if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
{
$display_forums = true;
}
}
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if ( $display_forums )
#
#-----[ REPLACE WITH ]---------------------------------------------
#
// Let's decide which categories we should display
//
$display_categories = array();
for ($i = 0; $i < $total_forums; $i++ )
{
if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
{
$display_categories[$forum_data[$i]['cat_id']] = true;
}
}
//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
Noch ein Problem:
Liegen die Änderungen in den Language Files auch in Deutsch vor? Falls nicht ist das aber nicht weiter schlimm, dann verwende ich eben die englischen Passagen in den German Language Files.
Nachstehende Stellen kann ich nicht finden:
Code: Alles auswählen
login.php (error)
#
#-----[ FIND ]---------------------------------------------
# Line 80 (error)
$row['user_last_login_try'] >= (time() - ($board_config['login_reset_time'] * 60)) && $row['user_login_tries'] >= $board_config['max_login_attempts'])
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$row['user_last_login_try'] >= (time() - ($board_config['login_reset_time'] * 60)) && $row['user_login_tries'] >= $board_config['max_login_attempts'] && $userdata['user_level'] != ADMIN)
MfG
ToXic
P.S.
Die Texte
(error) stammen von mir, damit ich die betreffendes Stellen später wiederfinde
[ Attachment gelöscht am Mo 16.Okt, 2006 22:37 von oxpus ]