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
Upgraderoutine erkennt mich nicht als Admin ?
#2
Hast du unter diesem Benutzer Zugriff auf das Admin-CP und sind die Cookie-Einstellungen korrekt gesetzt? Alternativ kannst du folgenden Code aus der Datei upgrade.php löschen:
PHP-Code:
    if($mybb->user['uid'] == 0)
    {
        
$output->print_header("Please Login""errormsg"01);
        
        
$output->print_contents('<p>Please enter your username and password to begin the upgrade process. You must be a valid forum administrator to perform the upgrade.</p>
<form action="upgrade.php" method="post">
    <div class="border_wrapper">
        <table class="general" cellspacing="0">
        <thead>
            <tr>
                <th colspan="2" class="first last">Login</th>
            </tr>
        </thead>
        <tbody>
            <tr class="first">
                <td class="first">Username:</td>
                <td class="last alt_col"><input type="text" class="textbox" name="username" size="25" maxlength="'
.$mybb->settings['maxnamelength'].'" style="width: 200px;" /></td>
            </tr>
            <tr class="alt_row last">
                <td class="first">Password:<br /><small>Please note that passwords are case sensitive.</small></td>
                <td class="last alt_col"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" /></td>
            </tr>
        </tbody>
        </table>
    </div>
    <div id="next_button">
        <input type="submit" class="submit_button" name="submit" value="Login" />
        <input type="hidden" name="action" value="do_login" />
    </div>
</form>'
);
        
$output->print_footer("");

        exit;
    }
    else if(
$mybb->usergroup['cancp'] != && $mybb->usergroup['cancp'] != 'yes')
    {
        
$output->print_error("You do not have permissions to run this process. You need administrator permissions to be able to run the upgrade procedure.<br /><br />If you need to logout, please click <a href=\"upgrade.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}\">here</a>. From there you will be able to log in again under your administrator account.");
    } 

Gruß,
Michael
[Bild: banner.png]
Support erfolgt NUR im Forum!
Bitte gelöste Themen als "erledigt" markieren.
Beiträge mit mangelhafter Rechtschreibung/Grammatik werden kommentarlos gelöscht.


Nachrichten in diesem Thema
RE: Upgraderoutine erkennt mich nicht als Admin ? - von Michael - 17.09.2008, 15:54