sessions.php
Verfasst: 01.09.2003 11:10
Ich hoffe mir kann jemand helfen! Ich sollte das einbauen:
#
#-----[ FIND ]------------------------------------------
#
if ( $user_id != ANONYMOUS )
{
$last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
$sql = "UPDATE " . USERS_TABLE . "
SET user_session_time
#
#-----[ IN-LINE FIND ]------------------------------------------
#
time() . "
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_totallogon=user_totallogon+1
#
#-----[ IN-LINE FIND ]------------------------------------------
#
if
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ FIND ]------------------------------------------
#
$sessiondata['userid'] = $user_id;
}
#
#-----[ IN-LINE FIND ]------------------------------------------
#
}
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ FIND ]------------------------------------------
#
if ( $userdata['user_id'] != ANONYMOUS )
{
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
if
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
SET
#
#-----[ IN-LINE AFTER ADD ]------------------------------------------
#
user_totalpages=user_totalpages+1, user_totaltime=user_totaltime+($current_time-".$userdata['session_time']."),
#
#-----[ FIND ]------------------------------------------
#
}
//
// Delete expired sessions
#
#-----[ IN-LINE FIND ]------------------------------------------
#
}
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
Aber ich schaff es net immer bekomm ich einen Fehler!
Vielleicht ist jemand so nett und kann mir das machen! Meine sessions.php
#
#-----[ FIND ]------------------------------------------
#
if ( $user_id != ANONYMOUS )
{
$last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
$sql = "UPDATE " . USERS_TABLE . "
SET user_session_time
#
#-----[ IN-LINE FIND ]------------------------------------------
#
time() . "
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_totallogon=user_totallogon+1
#
#-----[ IN-LINE FIND ]------------------------------------------
#
if
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ FIND ]------------------------------------------
#
$sessiondata['userid'] = $user_id;
}
#
#-----[ IN-LINE FIND ]------------------------------------------
#
}
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ FIND ]------------------------------------------
#
if ( $userdata['user_id'] != ANONYMOUS )
{
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
if
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
#
#-----[ IN-LINE FIND ]------------------------------------------
#
SET
#
#-----[ IN-LINE AFTER ADD ]------------------------------------------
#
user_totalpages=user_totalpages+1, user_totaltime=user_totaltime+($current_time-".$userdata['session_time']."),
#
#-----[ FIND ]------------------------------------------
#
}
//
// Delete expired sessions
#
#-----[ IN-LINE FIND ]------------------------------------------
#
}
#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
//
Aber ich schaff es net immer bekomm ich einen Fehler!
Vielleicht ist jemand so nett und kann mir das machen! Meine sessions.php