Seite 1 von 1

Fehler bei der User Registrierung

Verfasst: 23.04.2007 12:23
von pmi2007
hallo zusammen,

ich habe gerade phpbb2 installiert, was auch problemlos funktioniert hat.

wenn ich jetzt einen neuen user registrieren will, bekomme ich immer folgende fehlermeldung:

Parse error: syntax error, unexpected '?' in /www/htdocs/w00840fe/phpBB2/includes/functions_validate.php on line 38

hat jemand eine idee?

gruß, rolf

Verfasst: 23.04.2007 12:43
von nickvergessen
zeig mal die Datei her: KB:81

Verfasst: 23.04.2007 12:58
von pmi2007

Verfasst: 23.04.2007 13:13
von Mahony
Hallo
Lösche mal diesen Teil am Anfang der Datei

Code: Alles auswählen

/***************************************************************************
 *                          functions_validate.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: functions_validate.php,v 1.6.2.15 2005/10/30 15:17:14 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

//
// Check to see if the username has been taken, or if it is disallowed.
// Also checks if it includes the " character, which we don't allow in usernames.
// Used for registering, changing names, and posting anonymously with a username
//
function validate_username($username)
{
	global $db, $lang, $userdata;

	// Remove doubled up spaces
	$username = preg_replace('#\s+#', ' ', trim($username)); 
	$username = phpbb_clean_username($username);

	$sql = "SELECT username 
		FROM " . USERS_TABLE . "
		WHERE LOWER(username) = '" . strto<?php

Grüße: Mahony

Verfasst: 23.04.2007 14:26
von pmi2007
das wars :wink:

wie auch immer der teil da rein gekommen ist - jetzt gehts!

bedankt und sonnige grüße, rolf