Functions.php fouten?

Gestart doorBjarnootjuh30 reacties97 weergaven

31 berichten · pagina 1 van 3

Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoi,

Ik gebruik multisess, maar krijg errors.

Code:
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Functions file:
// ToDo: IPlocking (W.I.P)
// ToDo: POST-check + if-statement for $bericht + locationheader (W.I.P)[/COLOR]

[COLOR= #007700]function[/COLOR] sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$data[/COLOR][COLOR= #007700];
}[/COLOR]



[COLOR= #FF8000]// Make MySQL-database connection[/COLOR]
[COLOR= #007700]@[/COLOR][URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$server[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$user[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$pass[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cant connect to MySQL database server"[/COLOR][COLOR= #007700]);
@[/COLOR][URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cant find database."[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// Start here the login action, and make the random hash[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) && ([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]])) {[/COLOR]
     [COLOR= #0000BB]$selectleden[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM $ledentabel WHERE username = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND password = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
     [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$selectleden[/COLOR][COLOR= #007700])) {[/COLOR]
                                      [COLOR= #FF8000]// Ingelogd[/COLOR]
                                      [COLOR= #0000BB]$hash[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/uniqid"]uniqid[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700](),[/COLOR] true[COLOR= #007700]));[/COLOR]
                                      [COLOR= #0000BB]$get_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT id FROM "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ledentabel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE username = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND password = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                                      [COLOR= #0000BB]$fetch_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$get_id[/COLOR][COLOR= #007700]);[/COLOR]
                                      [COLOR= #0000BB]$insert_session[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO sessions (id, userid, hash, logintime) VALUES (,"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch_id[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$hash[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",NOW())"[/COLOR][COLOR= #007700]);[/COLOR]

                                      [COLOR= #FF8000]// for debugging:
                                      #$bericht = "Ingelogd met hash: ".$hash." En je hebt id-nummer:".$fetch_id[id];[/COLOR]


                                      [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$insert_session[/COLOR][COLOR= #007700]) {[/COLOR]
                                         [URL="http://www.php.net/setcookie"]setcookie[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$fetch_id[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]],[/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]()+[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]sessiontime[/COLOR][COLOR= #007700]]);[/COLOR]
                                         [URL="http://www.php.net/setcookie"]setcookie[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"hash"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$hash[/COLOR][COLOR= #007700],[/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]()+[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]sessiontime[/COLOR][COLOR= #007700]]);[/COLOR]
                                         [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]location:admin.php[/COLOR][COLOR= #007700]);
                                                           }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                                                           [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Fout in de query: "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]();[/COLOR]
                                                           [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
                                                           }
                                      }[/COLOR]  [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                                      [COLOR= #FF8000]// Foute pass[/COLOR]
                                      [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<b>Je inloggegevens komen niet overeen met wat in de database staan.</b>"[/COLOR][COLOR= #007700];
                                      }



                                                                           }[/COLOR]

[COLOR= #FF8000]// here is the function for the login-check[/COLOR]
[COLOR= #007700]function[/COLOR] checklogin[COLOR= #007700]() {[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT userid, `hash` FROM `sessions` WHERE `userid` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND `hash` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]))) {[/COLOR]
        [COLOR= #0000BB]$return[/COLOR]  [COLOR= #007700]=[/COLOR] TRUE[COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$return[/COLOR] [COLOR= #007700]=[/COLOR] FALSE[COLOR= #007700];
    }[/COLOR]

    [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$return[/COLOR][COLOR= #007700];
}[/COLOR]

[COLOR= #FF8000]// Data uit leden-tabel oproepen ($get_userdata[username], $get_userdata[warnings][/COLOR]
[COLOR= #0000BB]$get_data_qry[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT userid, `hash` FROM `sessions` WHERE `userid` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND `hash` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$get_data_qry[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_userdata[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM $ledentabel WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$get_data[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]));[/COLOR]



?>
En ik heb hier: http://devshare.nl/bjarn/rdsmyadminlayout/ de errors. Bij het uitloggen ook!

Login met Test en Test, als je wilt uitloggen moet je handmatig naar http://devshare.nl/bjarn/rdsmyadminlayout/uitloggen gaan, daar staan ook fouten.

Ik kom hier niet uit, het werkt bij een ander script wel. Het is Multisess
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Welke errors...? Het is weer van zoek de errors zelf maar op, bezoek me site en login om ze te zien. Kopieer ze gwn?

toevoeging op 25 april 2012, 15:24:06:
En je included database niet, zie je toch meteen? Hij geeft aan op regel 50 & 60 geen tabel id ofz kan vinden, dan doe jij wat het systeem doet: Op zoek gaan vanaf dit bestand naar database inloggen, gevonden? Inloggen met DIE gegevens, werkend? Kijken of DB bestaat, ...
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Op de inlogpagina krijg ik het niet meer, maar deze NA het uitloggen wel:

Notice: Undefined index: login in /home/*******/devshare.nl/bjarn/rdsmyadminlayout/functions.php on line 18
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Antonn schreef:
Welke errors...? Het is weer van zoek de errors zelf maar op, bezoek me site en login om ze te zien. Kopieer ze gwn?
toevoeging op 25 april 2012, 15:24:06:
En je included database niet, zie je toch meteen? Hij geeft aan op regel 50 & 60 geen tabel id ofz kan vinden, dan doe jij wat het systeem doet: Op zoek gaan vanaf dit bestand naar database inloggen, gevonden? Inloggen met DIE gegevens, werkend? Kijken of DB bestaat, ...

Hij heeft waarschijnlijk een bootstrap init file waar de functions en de db word ingeladen, denk even na voor je iets zegt

Verder:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR]al de rest[COLOR= #007700])) {[/COLOR]
?>


Je dient al je formulieren te checken. En gebruik isset() om te kijken of iets bestaat of niet
Verder word die $_COOKIE[hash] niet gevonden, dus eerst checken of die bestaat met isset en dan die query uitvoeren. smile
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waar moet ik die plaatsen bloos
Ik ken Multisess niet helemaal, weet alleen hoe ik het inbouw.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Je dient te controleren of een lid wel is gecontroleerd want anders zoek je een lege id op want die cookie bestaat niet eens

[COLOR= #0000BB]<?php[/COLOR] 

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #FF8000]// Data uit leden-tabel oproepen ($get_userdata[username], $get_userdata[warnings][/COLOR]
[COLOR= #0000BB]$get_data_qry[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT userid, `hash` FROM `sessions` WHERE `userid` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND `hash` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$get_data_qry[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_userdata[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM $ledentabel WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$get_data[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]));

}[/COLOR]
?>


Verder moet je niet aan een site beginnen als je geen php kan
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Raaoul schreef:
Je dient te controleren of een lid wel is gecontroleerd want anders zoek je een lege id op want die cookie bestaat niet eens
[COLOR= #0000BB]<?php[/COLOR] 

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]login[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #FF8000]// Data uit leden-tabel oproepen ($get_userdata[username], $get_userdata[warnings][/COLOR]
[COLOR= #0000BB]$get_data_qry[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT userid, `hash` FROM `sessions` WHERE `userid` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND `hash` = "[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$get_data_qry[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$get_userdata[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM $ledentabel WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$get_data[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]userid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]));

}[/COLOR]
?>


Verder moet je niet aan een site beginnen als je geen php kan

Heb bij het uitloggen nog steeds dit:

Notice: Undefined index: login in /home/bjarnb43828/devshare.nl/bjarn/rdsmyadminlayout/functions.php on line 18

En daar staat:

if(($_SERVER[REQUEST_METHOD] == "POST") && ($_POST[login])) {


//Heb deze al opgelost
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Precies wat de fout zegt: $_POST[login] bestaat niet.
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Precies wat de fout zegt: $_POST[login] bestaat niet.
Had hem toevallig net opgelost.

Heb nu dit:

Quote:
if(($_SERVER[REQUEST_METHOD] == "POST") && isset($_POST[login]) && isset($_POST[password])) {

en heb geen error meer clown
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Jawel.

Notice: Undefined index: id in /home/bjarnb43828/devshare.nl/bjarn/rdsmyadminlayout/functions.php on line 50

Notice: Undefined index: hash in /home/bjarnb43828/devshare.nl/bjarn/rdsmyadminlayout/functions.php on line 50


Je dient nog te controleren of je cookie bestaat, doe aub wel iets met de uitleg die mensen versturen
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De ene keer krijg ik het, de andere keer niet....

toevoeging op 25 april 2012, 15:52:22:
Is het nu opgelost?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
nee
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat is irritant, ik zie ze dus niet meer.

Maar het is Multisess, dezelfde als bij UMusicDB, daar doet alles het gewoon? Ik heb daar ook niks veranderd.

toevoeging op 25 april 2012, 16:42:35:
Ik kom niet uit deze fout!
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Opnieuw downloaden en proberen. Volgens mij heb je nu alles al verkloot. Dat er geen errors meer zijn, betekent niet dat het werkt.
0
Bjarnootjuh

Lid · Topicstarter

Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb er niks aan veranderd? Gewoon het inlogsysteem in de div geplaatst en een pagina beveiligt en geupload.
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