Pagina, ingang,

Gestart doorChristopher13 reacties27 weergaven

14 berichten · pagina 1 van 1

Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
"Gast" gaat naar site.nl/index, ik wil dat "Gast niet naar index gaat maar naar /intro

HOE DOE IK DAT
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
oke, verbeter eerst je post. en daarna beter uit leggen wat je precies wilt/bedoelt
0
Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
"Gast" gaat naar site.nl/index, ik wil dat "Gast niet naar index gaat maar naar /intro

HOE DOE IK DAT biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Controleren of je bent ingelogd of niet, en dan gewoon een doorlink code plaatsen smile
0
Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
Controleren of je bent ingelogd of niet, en dan gewoon een doorlink code plaatsen smile
Oké, ik doe me best om het uit te leggen en één of ander lolbroek gaat weer iets helemaal anders nemen. grow up please emo
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Zover ik het begrijp, wil je dat als je bent ingelogd dat je op een pagina blijft, en als je bent uitgelogd dan word je doorverwezen naar een andere pagina?
0
Ewan

Lid

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Idd

Dat begrijp ik er ook uit.
0
Berichten
1.533
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedoel je: dat je niet op de index uit komt maar bijv. als je naar domein.nl gaat dat je doorlinkt naar domein.nl/intro?
0
Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
php:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
Made by Daiman Meijers.
Dit script mag niet verkocht of verveelvoudigd worden zonder mijn toestemming.
Indien dit toch gebeurd wordt uw hoster ingelicht.
*/[/COLOR]
[COLOR= #0000BB]$host[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]localhost[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// server[/COLOR]
[COLOR= #0000BB]$gebruiker[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// gebruikersnaam[/COLOR]
[COLOR= #0000BB]$wachtwoord[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// wachtwoord[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// database[/COLOR]
[URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$gebruiker[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$wachtwoord[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]Kon niet verbinden met mysql: [/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][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]Kon niet verbinden met mysql: [/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

[COLOR= #0000BB]$check[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT ip FROM ips WHERE ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"REMOTE_ADDR"[/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]$check[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO ips ip VALUES("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"REMOTE_ADDR"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: /intro/[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: /index/[/COLOR][COLOR= #007700]);
}[/COLOR]
?>


sql:

CREATE TABLE IF NOT EXISTS `ips` (
  `ip` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kom op, een introductie pagina. Is toch niet zo moeilijk te volgen yummie
@TS, het beste kun je met een cookie werken.
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je moet doen:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: /intro "[/COLOR][COLOR= #007700]);[/COLOR]
?>


zo iets volgens mij.
je gasten moeten dus worden door gestuurd naar intro toch?
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Of misschien met een 301 redirect?
0
Christopher

Lid · Topicstarter

Berichten
7.757
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb .htacces veranderd smile
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Slotje op verzoek van TS
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