Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.38 veröffentlicht (30.04.24)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Website in Forum einbinden
#1
Hallo,
ich habe zwar ein paar Threads zu dem Thema gefunden, konnte jedoch in keinem die Lösung für mein Problem suchen. Ich möchte das Benutzerverwaltungssystem auch auf meiner Homepage nutzen. Der LogIn Funktioniert mit dem folgenden Script einwandfrei, jedoch, wenn ich auch die Seite zurück geleitet werde sieht man nicht die Links, sondern wieder das Formular zum einlogge. :-|

Das ganze liegt folgenderweise auf meinem Space, bzw. meinen Lokalen Server.


root
/homepage
/forum

Könnt ihr mir sagen was genau an dem Code falsch ist? Ich selbst kann keinen Fehler finden, w eshalb ich immer nur das Formular und keine weiteren Daten sehe.

PHP-Code:
<?php
chdir
('../forum/'); // path to MyBB
define("IN_MYBB"1);
require 
'../forum/global.php';
include_once 
'../forum/config.php';

if(
$mybb->user['uid']) { //überprüfen ob angemeldet
        //titel fehler beheben
    
$titel $mybb->user['usertitle'];
    if (
$titel == '') {
        if (
$mybb->user['usergroup'] == '2') {
            
$titel 'Verifizierter User';
        }
    }
        
//normale links ausgeben
    
echo 'Angemeldet als:'.$mybb->user['username'].'<br>['.$titel.']';
    echo 
'<br>';
    echo 
'<li><a href="http://localhost/forum/memberlist.php">Mitgliederliste</a></li>';
    echo 
'<li><a href="http://localhost/forum/member.php?action=profile&uid='.$mybb->user['uid'].'">Eigenes Profil</a></li>';
    echo 
'<li><a href="http://localhost/forum/usercp.php">Profil &auml;ndern</a></li>';

    
//admin bzw mod link ausgeben
    
if($mybb->usergroup['cancp'] == 1)
    {
        echo 
'<li><a href="http://localhost/acp.php">Admin Bereich</a></li>';
    }
    if(
is_moderator()) {
        echo 
'<li><a href="http://localhost/mcp.php">Moderatoren Bereich</a></li>';
    }
    echo 
'<li><a href="http://localhost/forum/member.php?action=logout&logoutkey='.$mybb->user['logoutkey'].'">Logout</a></li>';
} else {
    
//wegen zurückleitung
    
$site pathinfo($_SERVER['REQUEST_URI'], PATHINFO_BASENAME);
    if (
$site == '') {
        
$site 'index3.php';
    }
    
$site 'http://localhost/'.$site?>
    <!--Fom fürs login anzeigen-->
    <form action="../forum/member.php" method="post">
        <table border="0">
            <tr>
                <td>Username:</td>
                <td><input type="text" name="username" size="10" maxlength="30"></td>
            </tr>
            <tr>
                <td>Passwort:</td>
                <td><input type="password" name="password" size="10"></td>
            <tr>
                <td><input type="checkbox" id="quick_login_remember" name="quick_remember" value="yes">Merken?</td>
                <td><input type="submit" class="submit" name="submit" value="Login"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="hidden" name="action" value="do_login"></td>
                <td><input type="hidden" name="url" value="<?php echo $site?>"></td>
            </tr>
        </table>
    </form>
<?php ?>


Nachrichten in diesem Thema
Website in Forum einbinden - von Juventiner - 05.01.2012, 18:08
RE: Website in Forum einbinden - von King Louis - 05.01.2012, 18:23
RE: Website in Forum einbinden - von Juventiner - 05.01.2012, 18:37
RE: Website in Forum einbinden - von King Louis - 05.01.2012, 18:44
RE: Website in Forum einbinden - von Juventiner - 05.01.2012, 19:06
RE: Website in Forum einbinden - von King Louis - 05.01.2012, 19:16
RE: Website in Forum einbinden - von StefanT - 05.01.2012, 19:54
RE: Website in Forum einbinden - von King Louis - 05.01.2012, 20:30
RE: Website in Forum einbinden - von Jan - 05.01.2012, 21:39
RE: Website in Forum einbinden - von StefanT - 08.01.2012, 16:33
RE: Website in Forum einbinden - von K-Help4You - 15.01.2012, 00:33
RE: Website in Forum einbinden - von Jan - 15.01.2012, 00:49
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 00:54
RE: Website in Forum einbinden - von K-Help4You - 15.01.2012, 01:02
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 03:25
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 11:24
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 15:19
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 15:30
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 15:47
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 16:02
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 16:32
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 16:40
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 20:34
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 21:00
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 21:33
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 21:35
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 21:52
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 22:47
RE: Website in Forum einbinden - von Juventiner - 15.01.2012, 23:04
RE: Website in Forum einbinden - von King Louis - 15.01.2012, 23:19
RE: Website in Forum einbinden - von Juventiner - 16.01.2012, 15:24
RE: Website in Forum einbinden - von King Louis - 16.01.2012, 15:32
RE: Website in Forum einbinden - von Juventiner - 19.01.2012, 22:23
RE: Website in Forum einbinden - von Juventiner - 30.12.2012, 04:56
RE: Website in Forum einbinden - von Juventiner - 30.12.2012, 19:39
RE: Website in Forum einbinden - von StefanT - 30.12.2012, 19:44
RE: Website in Forum einbinden - von Juventiner - 30.12.2012, 20:13