Geïntegreerde login op site foutmelding...
Geplaatst: 22 aug 2008, 16:56
Dus als ik op mijn site (met wordpress) mijn geïntegreerde login zet krijg ik dit:
Terwijl hij op http://mendoza.be/login.php wel werkt. Ik heb 2 php scripts daarvoor:
login.php (waar je je gegevens moet invullen)
en includes.php
en ik heb die foutmelding opgezocht bij mijn forum en dit staat er in common.php
Weet er iemand een oplossing voor dit raar probleem?
Alvast bedankt
ps: ik heb die scripts gevonden ergens op een site en ik heb phpbb2
EDIT: ik denk dat ik dit in een verkeerd forum heb geplaats, mijn excuses hiervoor
Code: Selecteer alles
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #6 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #7 is not an array in /home/mendoza/domains/mendoza.be/public_html/phpBB2/common.php on line 78
login.php (waar je je gegevens moet invullen)
Code: Selecteer alles
<?php
include('include.php'); //include our session handling file, make sure you have the right file name
if( !$userdata['session_logged_in'] ) // Is the user NOT logged in?
{
?>
<form action="phpBB2/login.html" method="post" name="login"> <!-- Show a simple login form -->
Gebruikersnaam: <input type="text" name="username"><br />
Wachtwoord: <input type="password" name="password"><br />
<input type="hidden" name="redirect" value="../index.html"> <!-- Redirect the user to a page different than the PHPBB2 index page. You can delete this if you want. The path must be relative from the PHPBB2 login file. -->
Log me automatisch in bij elk bezoek <input type="checkbox" name="remember" class="inputbox" value="yes" alt="Remember Me" /><br />
<input type="submit" value="login" name="login">
</form>
<?php
}
?><br />
<br />
<br />
<?php
if( $userdata['session_logged_in'] ) // Is the user logged in?
{
$appendLogout = $u_login_logout = $phpbb_root_path.'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; // Add the session ID to the logout link
echo "Welkom, <a href=\"phpBB2/profile.php?mode=viewprofile&u=".$userdata['user_id']."\" title=\"".$userdata['username']."\">".$userdata['username']."</a>!<br />"; // Show a welcome message
echo "<a href=\"phpBB2/privmsg.php?folder=inbox\" title=\"U heeft ".$userdata['user_unread_privmsg']." nieuwe berichten\">(".$userdata['user_unread_privmsg'].") nieuwe berichten</a><br />"; // Any new PMs?
echo "<a href=\"phpBB2/profile.php?mode=editprofile\" title=\"Wijzig profiel\">Wijzig profiel</a><br />"; // Edit your profile link
echo "<a href=\"".$appendLogout."\" title=\"Uitloggen\">Uitloggen</a><br />"; // Logout link
} // end if, if you want you could add a login form in an else statement below
?>
Code: Selecteer alles
<?php
define('IN_PHPBB', true);
$phpbb_root_path = 'phpBB2/'; //Relative path to your PHPBB2 installation
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// Links Array
$phpbb_links = array ( //start our array
'home' => append_sid("index.$phpEx"), // .$phpEx is the way PHPBB2 writes the .php file extension, change this to just .html if you use .html files or other file extensions.
'phpBB2_home' => append_sid("phpBB2/index.$phpEx"),
'tolist' => append_sid("toplist.$phpEx"), // notice the comma after each line
'downloads' => append_sid("downloads.$phpEx") // there is no comma on the last line
); // end our array
?>
Code: Selecteer alles
// Merge all into one extremely huge array; unset
// this later
$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);
Alvast bedankt
ps: ik heb die scripts gevonden ergens op een site en ik heb phpbb2
EDIT: ik denk dat ik dit in een verkeerd forum heb geplaats, mijn excuses hiervoor