Re(5): Fehlermeldung phpBB-Forum
Geizhals » Forum » Programmierung » Fehlermeldung phpBB-Forum (18 Beiträge, 287 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
.  Re: Fehlermeldung phpBB-Forum  (error-is.org am 18.09.2006, 09:40:32)
..  Re(2): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 10:21:23)
...  Re(3): Fehlermeldung phpBB-Forum  (error-is.org am 18.09.2006, 11:02:46)
.  Re: Fehlermeldung phpBB-Forum  (Undying am 18.09.2006, 10:49:56)
.  Re: Fehlermeldung phpBB-Forum  (ChrisS am 18.09.2006, 12:49:41)
..  Re(2): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:14:02)
...  Re(3): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:19:30)
....  Re(4): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:20:17)
.....
Re(5): Fehlermeldung phpBB-Forum
18.09.2006, 13:21:08
}
elseif ( $row['user_level'] == MOD )
{
$user_today .=  ' style="color: #' . $theme['fontcolor2'].'">' . $row['username'].'';
}
else
{
$user_today .= '>' . $row['username'] . '';
}
$user_today .= ' (' . $lang['wwd_last'] . ' ' . create_date('H:i', $row['user_session_time'], $user_gmd) . ')';
if ( $row['user_allow_viewonline'] == 0 )
{
$user_today .= '';
}
$count_user_today++;
}



if ( $count_user_today > $board_config['wwd_record_users'] )
{
$sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = '$count_user_today' WHERE config_name = 'wwd_record_users'";
if ( !$db->sql_query($sql) )
{
      message_die(GENERAL_ERROR, 'Could not update row wwd_record_users in phpBB CONFIG_TABLE', '', __LINE__, __FILE__, $sql);
}

$sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '$time' WHERE config_name = 'wwd_record_time'";
if ( !$db->sql_query($sql) )
{
      message_die(GENERAL_ERROR, 'Could not update row wwd_record_time in phpBB CONFIG_TABLE', '', __LINE__, __FILE__, $sql);
}
$record_users = $count_user_today;
$record_time = $time;
} else {
$record_users = $board_config['wwd_record_users'];
$record_time = $board_config['wwd_record_time'];
}

$record_text = str_replace('%u', $record_users, $lang['wwd_record']);
$record_text = str_replace('%t', create_date($lang['DATE_FORMAT'], $record_time, $user_gmd), $record_text);

$total_users = $count_user_today;

if ( $enable_wwd_counter ) {
$sql = 'SELECT `user_active` FROM '.USERS_TABLE."
        WHERE user_session_time > $mitternacht";
$result = $db->sql_query($sql);
if ( !$result )
{
      message_die(GENERAL_ERROR, 'Could not read number of users from USER_TABLE', '', __LINE__, __FILE__, $sql);
}
$hidden = $db->sql_numrows($result) - $count_user_today;
$total_users += $hidden;

$sql = 'SELECT `ip` FROM `' . $table_prefix . 'wwd_counter_ips`';
$result = $db->sql_query($sql);
if ( !$result )
{
      message_die(GENERAL_ERROR, 'Could not read number of guests from PREFIX_wwd_counter_ips', '', __LINE__, __FILE__, $sql);
}
$gaeste = $db->sql_numrows($result);
$total_users += $gaeste;
}

if ( $enable_wwd_counter ) {

$user_today_text .= ( $total_users > 1 ) ? str_replace('%d', $total_users, $lang['wwd_c_user_today']) : $lang['wwd_c_one_user'];

$user_today_text .= ( $count_user_today == 0 || $count_user_today == '' ) ? $lang['Reg_users_zero_total'] : '';
$user_today_text .= ( $count_user_today == 1 ) ? str_replace('%d', $count_user_today, $lang['Reg_user_total']) : '';
$user_today_text .= ( $count_user_today > 1 ) ? str_replace('%d', $count_user_today, $lang['Reg_users_total']) : '';

$user_today_text .= ( $hidden == 0 || $hidden == '' ) ? $lang['Hidden_users_zero_total'] : '';
$user_today_text .= ( $hidden == 1 ) ? str_replace('%d', $hidden, $lang['Hidden_user_total']) : '';
$user_today_text .= ( $hidden > 1 ) ? str_replace('%d', $hidden, $lang['Hidden_users_total']) : '';

$user_today_text .= ( $gaeste == 0 || $gaeste == '' ) ? $lang['Guest_users_zero_total'] : '';
$user_today_text .= ( $gaeste == 1 ) ? str_replace('%d', $gaeste, $lang['Guest_user_total']) : '';
$user_today_text .= ( $gaeste > 1 ) ? str_replace('%d', $gaeste, $lang['Guest_users_total']) : '';

} else {
if ( $count_user_today > 1 ) {
$user_today_text = str_replace('%u', $count_user_today, $lang['wwd_user_today']);
} elseif ( $count_user_today == 1 ) {
$user_today_text = $lang['wwd_one_user'];
} else {
$user_today_text = $lang['wwd_no_user'];
}
}

Antworten PM Alle Chronologisch Zum Vorgänger
 
Melden nicht möglich
......  Re(6): Fehlermeldung phpBB-Forum  (juwb am 18.09.2006, 13:33:15)
.......  Re(7): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:40:14)
........  Re(8): Fehlermeldung phpBB-Forum  (juwb am 18.09.2006, 14:28:06)
........  Re(8): Fehlermeldung phpBB-Forum  (ChrisS am 18.09.2006, 14:47:08)
.  Re: Fehlermeldung phpBB-Forum  (Dr. Watson am 18.09.2006, 17:58:49)
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung