[9GAGCLONESCRIPT] Admin panel werkt niet!

Gestart doorMounssif5 reacties39 weergaven

6 berichten · pagina 1 van 1

Mounssif

Lid · Topicstarter

Berichten
1.284
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hi,

Ik ben bezig met een project (trollzone.nl)

Het word iets zoals 9GAG etc,

Ik installeerde de script, en de Admin paneel deed het niet.
Ik weet zeker dat alles klopt maar ik kom er niet aan uit.

Er komt heletijd "Invalid username/password entered."

Je kan de script hier bekijken

Open spoiler voor de index:
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"../include/config.php"[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINID[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINUSERNAME[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINPASSWORD[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$redirect[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adminurl[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"/home.php"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: $redirect"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]]!=[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$adminusername[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$adminpassword[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]];[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$adminusername[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
    {[/COLOR]
         [COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Error: Username not entered."[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$adminpassword[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
    {[/COLOR]
         [COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Error: Password not entered."[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$encodedadminpassword[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$adminpassword[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$query[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"SELECT * FROM administrators WHERE username="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$adminusername[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]" AND password="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$encodedadminpassword[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$executequery[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$conn[/COLOR][COLOR= #007700]->[/COLOR]execute[COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$getid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$executequery[/COLOR][COLOR= #007700]->[/COLOR]fields[COLOR= #007700][[/COLOR]ADMINID[COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$getusername[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$executequery[/COLOR][COLOR= #007700]->[/COLOR]fields[COLOR= #007700][[/COLOR][COLOR= #DD0000]"username"[/COLOR][COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$getpassword[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$executequery[/COLOR][COLOR= #007700]->[/COLOR]fields[COLOR= #007700][[/COLOR][COLOR= #DD0000]"password"[/COLOR][COLOR= #007700]];[/COLOR]

        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$getid[/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$getusername[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$getpassword[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$getusername[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$adminusername[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$getpassword[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$encodedadminpassword[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINID[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$getid[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINUSERNAME[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$getusername[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ADMINPASSWORD[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$encodedadminpassword[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$redirect[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adminurl[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"/home.php"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: $redirect"[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Invalid username/password entered."[/COLOR][COLOR= #007700];
        }
    }
}[/COLOR]

STemplate[COLOR= #007700]::[/COLOR]assign[COLOR= #007700]([/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$message[/COLOR][COLOR= #007700]);[/COLOR]
STemplate[COLOR= #007700]::[/COLOR]assign[COLOR= #007700]([/COLOR][COLOR= #DD0000]error[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$error[/COLOR][COLOR= #007700]);[/COLOR]
STemplate[COLOR= #007700]:[/COLOR]SMILEYYYYYYYYYYYBEGIN[COLOR= #007700]:[/COLOR]display[COLOR= #007700]([/COLOR][COLOR= #DD0000]administrator/index.tpl[/COLOR][COLOR= #007700]);

}[/COLOR]

?>
Hartelijk bedankt!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Vertaal het bericht wat je krijgt emo
0
Mounssif

Lid · Topicstarter

Berichten
1.284
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jellesch schreef:
Vertaal het bericht wat je krijgt emo
Wachtwoord en gebruikersnaam kloppen..
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Je kan dat onwijs simpel nakijken door gewoon even de waardes waarmee hij vergelijkt te echoen en te kijken of je ingevulde waardes het zelfde zijn.
0
Mounssif

Lid · Topicstarter

Berichten
1.284
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Je kan dat onwijs simpel nakijken door gewoon even de waardes waarmee hij vergelijkt te echoen en te kijken of je ingevulde waardes het zelfde zijn.
Snap het niet echt? Want bij elke versie is dat probleem..
0
Berichten
1.075
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Quote:
For people with admin login problems change config db_user and db_name must not be the same.

Dit vond ik net op het internet, ik weet niet of je hier wat aan hebt?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren