[Algemene fout] Extra Permission Hack

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Duifje
Berichten: 142
Lid geworden op: 18 feb 2005, 11:17

[Algemene fout] Extra Permission Hack

Bericht door Duifje » 29 aug 2005, 16:13

Failed obtaining forum access control lists

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 '= '-99'' at line 3

SELECT a.forum_id, a.auth_read FROM phpbb_forums a WHERE a.forum_id = = '-99'

Line : 125
File : auth.php

Dit is het probleem ik kom er egt niet meer uit naar 3 dagen stoeien met die php zooi. :cry:

auth.php

Code: Selecteer alles

		case AUTH_ATTACH:
			break;

		default:
			break;
	}

	//
	// If f_access has been passed, or auth is needed to return an array of forums
	// then we need to pull the auth information on the given forum (or all forums)
	//
	if ( empty($f_access) )
	{
		$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "WHERE a.forum_id = = '$forum_id'" : '';

		$sql = "SELECT a.forum_id, $a_sql
			FROM " . FORUMS_TABLE . " a
			$forum_match_sql";
		if ( !($result = $db->sql_query($sql)) )
		{
			message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
		}

		$sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset';

		if ( !($f_access = $db->$sql_fetchrow($result)) )
		{
			$db->sql_freeresult($result);
			return array();
		}
		$db->sql_freeresult($result);
	}

	//
	// If the user isn't logged on then all we need do is check if the forum
	// has the type set to ALL, if yes they are good to go, if not then they
	// are denied access
	//
	$u_access = array();
Als iemand mij kan helpen zou ik het zeer op prijs stellen. 8)

Gesloten