Anybody?
Is there anybody working on this. I'm not to great with php so there is no way i could even attempt to integrate what was old into the new one. All the instructions for the download are for phpbb2. Bummer
Well thanks
<?php
define('IN_PHPBB', true);
///Set the following to the phpbb3 path
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
//
// Start session management
//
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//
// End session management
//
// Authenticate User //
if ($user->data['user_id'] == ANONYMOUS) {
//Do something here is user is NOT logged in. Like....
// header( 'Location: http://www.mysitename.com/forum/' ) ;
} else {
// User is Logged In Rest of page follows.
}
?>
<form action="./forum/ucp.php?mode=login" method="post">
<table width="100%"><center>
<tr>
<td align="center">Username: <input type="text" style="background-color:333333;color:dddddd;border-width:0;" name="username" class="textarea" size="18"></td>
</tr>
<tr>
<td align="center">Password: <input type="password" style="background-color:333333;color:dddddd;border-width:0;" name="password" class="textarea" size="18"></td>
</tr>
<tr>
<td align="center"><span class="gen"><font size="2">Remember me:</font><input type="checkbox" name="autologin" /></span></td>
<td><input type="hidden" name="redirect" value="../index.php" /></td>
</tr>
<tr>
<td align="center"><input type="submit" style="background-color:333333;color:dddddd;border-color:888888;" value="Login" name="login" class="textarea"></form></td>
</tr>
<tr>
<td align="center"><span class="gensmall"><a href="forum/ucp.php?mode=sendpassword" class="gensmall">Forgot Password</a></span> | <a href="forum/ucp.php?mode=register" target="_blank">Register</a></span></td></tr></center></table><BR>
<?php
echo ("<form action=" . $phpbb_root_path . 'ucp.php?mode=logout&redirect=../index.php' . '&sid=' . $user->data['session_id'] . " method=post><input type=Submit style='background-color:333333;color:dddddd;border-color:888888;' value=Logout></form>");
?>
<?php
define('IN_PHPBB', true);
///Set the following to the phpbb3 path
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
//
// Start session management
//
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//
// End session management
//
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
//
// Start session management
//
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//
// End session management
//
///SET "ROSTER2" to the correct roster folder
$updatepage = "/ROSTER2/index.php?p=update&a=g:1";
$currentpage = $_SERVER['REQUEST_URI'];
if($updatepage==$currentpage) {
}else{
// Authenticate User //
if ($user->data['user_id'] == ANONYMOUS) {
///SET to the correct URL
header( 'Location: http://www.yoursite/ROSTER2/r2login.php' ) ;
}
}
Fatal error: Call to a member function buildConfigPage() on a non-object in /var/www/html/r2/addons/memberslist/admin/index.php on line 128
Users browsing this forum: No registered users and 0 guests