Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 121 van 286

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
Zoals je ziet zoekt hij dus in premium...

http://sander.vanmarijn.nl/premium/testje

Hoe kan ik zorgen dat hij daar niet zoekt?
Is dat voor een cronjob?
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Eerdere citaten tonen
Sanderc schreef:
Zoals je ziet zoekt hij dus in premium...
http://sander.vanmarijn.nl/premium/testje

Hoe kan ik zorgen dat hij daar niet zoekt?

Is dat voor een cronjob?
Nee, ik include header.php in tesje.php, en in header.php staat dit:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

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

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]show.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]reacties.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]stemmen.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Ban Check[/COLOR]
[COLOR= #0000BB]$bQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM system_ipban WHERE bIp = "[/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]$bQuery[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"U bent verbannen"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<link href="style/css.css" rel="stylesheet" type="text/css" />
<script src="http://www.w3schools.com/jquery/jquery.js"></script>
<script> 
$(document).ready(function(){
  $("#flip").click(function(){
    $("#panel").slideToggle("slow");
  });
});
</script>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] _TITEL_ [COLOR= #007700].[/COLOR][COLOR= #DD0000] | [/COLOR][COLOR= #007700].[/COLOR]_NAAM_[COLOR= #007700];[/COLOR] ?></title>
</head>
<body>
<div id="menu"><a href="/index">Home</a> <a href="/videohoek">Videohoek</a></div>
<div id="content">
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
Eerdere citaten tonen
Shahiem schreef:
Eerdere citaten tonen
Sanderc schreef:
Zoals je ziet zoekt hij dus in premium...
http://sander.vanmarijn.nl/premium/testje

Hoe kan ik zorgen dat hij daar niet zoekt?

Is dat voor een cronjob?
Nee, ik include header.php in tesje.php, en in header.php staat dit:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]

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

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]show.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]reacties.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]stemmen.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Ban Check[/COLOR]
[COLOR= #0000BB]$bQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM system_ipban WHERE bIp = "[/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]$bQuery[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"U bent verbannen"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<link href="style/css.css" rel="stylesheet" type="text/css" />
<script src="http://www.w3schools.com/jquery/jquery.js"></script>
<script> 
$(document).ready(function(){
  $("#flip").click(function(){
    $("#panel").slideToggle("slow");
  });
});
</script>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] _TITEL_ [COLOR= #007700].[/COLOR][COLOR= #DD0000] | [/COLOR][COLOR= #007700].[/COLOR]_NAAM_[COLOR= #007700];[/COLOR] ?></title>
</head>
<body>
<div id="menu"><a href="/index">Home</a> <a href="/videohoek">Videohoek</a></div>
<div id="content">

Staat header in een map of gewoon in dezelfde maps als ip_allow?
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Dylanh schreef:
Eerdere citaten tonen
Sanderc schreef:
Hoe kan ik zeggen met php hoeveel leden er in mijn tabel "leden" zitten?
mysql_num_rows();

Wat is veiliger:

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


of

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ini_set"]ini_set[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]session.cookie_httponly[/COLOR][COLOR= #007700],[/COLOR] true[COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]my_ip[/COLOR][COLOR= #007700]]) ===[/COLOR] false[COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]my_ip[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]my_ip[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]]) {[/COLOR]
        [URL="http://www.php.net/session_unset"]session_unset[/URL][COLOR= #007700]();[/COLOR]
        [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();
    }[/COLOR]
?>


De laatste toch??
Iemand?sadley
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Header.php staat in dezelfde map, en ip_allow en config staat in een andere. Maar ik zou header.php ook in de public html willen.
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ik gebruik include maar het werkt niet, op de pagina komt dan gewoon die include code te staan confused Hier een stukje code:

<div class="blog left">
            <h3>Aftellen</h3>
            <ul>
               include test.php;
            </ul>       
           </div>
   <!-- end latest news -->
0
Berichten
832
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jellerth schreef:
Ik gebruik include maar het werkt niet, op de pagina komt dan gewoon die include code te staan confused Hier een stukje code:

<div class="blog left">
            <h3>Aftellen</h3>
            <ul>
               include test.php;
            </ul>       
           </div>
   <!-- end latest news -->
Wat dacht je van het tussen de php tags te zetten emo
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Guillamos schreef:
Eerdere citaten tonen
Jellerth schreef:
Ik gebruik include maar het werkt niet, op de pagina komt dan gewoon die include code te staan confused Hier een stukje code:
<div class="blog left">
            <h3>Aftellen</h3>
            <ul>
               include test.php;
            </ul>       
           </div>
   <!-- end latest news -->

Wat dacht je van het tussen de php tags te zetten emo
Dit is maar een klein stukje code die php tags staan boven en onder in de coden niet in het midden clown
0
Berichten
1.871
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<div class="blog left">
            <h3>Aftellen</h3>
            <ul>
               [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]test.php[/COLOR][COLOR= #007700];[/COLOR] ?>
            </ul>       
           </div>
   <!-- end latest news -->


Dit hoort toch te werken?
0
Berichten
16.500
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Nielsjojo schreef:
<div class="blog left">
            <h3>Aftellen</h3>
            <ul>
               [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]test.php[/COLOR][COLOR= #007700];[/COLOR] ?>
            </ul>       
           </div>
   <!-- end latest news -->
Dit hoort toch te werken?

Thanks thumbsup
0
Berichten
22.444
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben een layout aan het basen. Ik heb nu boven mijn footer 4 gedeeltes naast elkaar gezet met float: left in de css.

Nu wil ik daar onder deze footer:
HTML:

<html>
<body>
<div id="container"></div>
 <div id="footer"></div>
</body>
</html>


CSS:

#footer {
width: 1000px;
height: 124px;
background: url (images/footer.png);
}


Zonder de float objecten wel.

toevoeging op 30 september 2012, 17:01:26:
Ah NVM,

Was clear: both vergeten.cry
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Waarom werkt mij .htaccess niet:

Options +FollowSymLinks +MultiViews
RewriteEngine On  
RewriteRule ^([wd]{4})$ home?username=$1


Hier mee wil ik dit hebben:

website.com/home/Piet

maar dan staat er geen Piet... wat doe ik foutsadley
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