Verfasst: 24.08.2005 14:24
kein Problem, ist nicht dringend - danke trotzdem erstmal für die tolle Unterstützung 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
Code: Alles auswählen
// Let's see if the user is allowed to watch the who is online list
$sql = 'SELECT count(g.group_id) AS total
FROM ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g
WHERE g.group_woil = ' . WOIL_PERMITED . '
AND g.group_id = ug.group_id
AND ug.user_id = ' . $userdata['user_id'];
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not get permissions.', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
if ( $row['total'] == 0 )
{
$online_userlist = '';
}
$db->sql_freeresult($result);
Code: Alles auswählen
if (!$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=viewonline.$phpEx", true));
}
Code: Alles auswählen
// Let's see if the user is allowed to watch the who is online list
$sql = 'SELECT count(g.group_id) AS total
FROM ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g
WHERE g.group_woil = ' . WOIL_PERMITED . '
AND g.group_id = ug.group_id
AND ug.user_id = ' . $userdata['user_id'];
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not get permissions.', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
if ( $row['total'] == 0 )
{
redirect(append_sid("login.$phpEx?redirect=viewonline.$phpEx", true));
}
$db->sql_freeresult($result);
Allgemeiner Fehler
Could not get permissions.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
SELECT count(g.group_id) AS total FROM phpbb_user_group ug, phpbb_groups g WHERE g.group_wiol = 1 AND g.group_id = ug.group_id AND ug.user_id =
Line : 363
File : page_header.php
Powered by phpBB © 2001, 2005 phpBB Group
Code: Alles auswählen
// Let's see if the user is allowed to watch the who is online list
$sql = 'SELECT count(g.group_id) AS total
FROM ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g
WHERE g.group_wiol = ' . WIOL_PERMITED . '
AND g.group_id = ug.group_id
AND ug.user_id = ' . $userdata['user_id'];
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not get permissions.', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
if ( $row['total'] == 0 )
{
$online_userlist = '';
}
$db->sql_freeresult($result);
holla ... das wundert mich jetzt - da muss ich mich leider in die Dateien einlesen, falls jemand weiss warum?holzi12 hat geschrieben:ich hab das Portal 1.50 incl. Intro + Portal Wetter Addon von AWSW und passwordlength 1.0.0 von Leuchte
Hier noch der Codeausschnitt:
Zeile 363 wäre "message_die(GENERAL_ERROR, 'Could not get permissions.', '', __LINE__, __FILE__, $sql); "
Code: Alles auswählen
// Let's see if the user is allowed to watch the who is online list $sql = 'SELECT count(g.group_id) AS total FROM ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g WHERE g.group_wiol = ' . WIOL_PERMITED . ' AND g.group_id = ug.group_id AND ug.user_id = ' . $userdata['user_id']; if ( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not get permissions.', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } if ( $row['total'] == 0 ) { $online_userlist = ''; } $db->sql_freeresult($result);
Code: Alles auswählen
// Let's see if the user is allowed to watch the who is online list
Code: Alles auswählen
if ( !isset($userdata['user_id']) )
{
$wiol_uid = -1;
}
else
{
$wiol_uid = $userdata['user_id'];
}
Code: Alles auswählen
AND ug.user_id = ' . $userdata['user_id'];
Code: Alles auswählen
AND ug.user_id = ' . $wiol_uid;