Fels - help met fouten

Gestart doorStar6 reacties10 weergaven

7 berichten · pagina 1 van 1

Star

Lid · Topicstarter

Berichten
1.104
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Omdat ik meerdere fouten heb met het FELS ledensysteem open ik hierbij mijn vragen topic!

Vraag 1: OPGELOST DOOR ELEKY!
Spoiler tonen
Ik heb mijn config.php goed ingesteld, hij staat als volgt ingesteld:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]/config.php[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: index[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]

[COLOR= #FF8000]// Connection to the database![/COLOR]
[COLOR= #0000BB]$dname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]star_database[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$dpass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]dropje123[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]star_database[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dname[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dpass[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$db[/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] [COLOR= #0000BB]$link[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_ROOT_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]http://starhacks.nl/[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]//Vergeet de / op het eind niet![/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_ROOT2_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]starhacks.nl[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// De extensie voor mails, dus wat er achter de @ moet[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_NAME_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]StarHacks[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// De naam van de site[/COLOR]
?>


Als ik nu vanaf mijn index.php op inloggen klik gaat hij automatiche naar www.voorbeeld.nl/_root_inloggen.
hoe los ik dit op dat hij gewoon goed naar inloggen.php gaat zonder alles menus en zo te veranderen?
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
define(_ROOT_, http://starhacks.nl/); //Vergeet de / op het eind niet!

Vervang dit es met:
define(_ROOT_, http://www.starhacks.nl/); //Vergeet de / op het eind niet!
0
Star

Lid · Topicstarter

Berichten
1.104
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Solfd smile (oftewel opgelost)

dankjewel eleky
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waar is je layout op die site? bupatih
0
Star

Lid · Topicstarter

Berichten
1.104
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik kan er geen inbouwen, wie kan dit wel?
0
Berichten
1.631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Star schreef:
ik kan er geen inbouwen, wie kan dit wel?
Ik kan inbouwen heb ik toch al gezegd.
0
Star

Lid · Topicstarter

Berichten
1.104
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
idd we zijn nu in handeling,
vanmiddag meer vragen in het topic
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