We are pentium of borg. Division is futile. You will be approximated.
oogjes open, snaveltjes dicht
Daddy of 3 :)
Verwijderd
1
| TARGET="[naam van frame waarin de pagina geladen moet worden]" |
Dit al geprobeerd?!
Voor meer info zie: http://www.w3.org/TR/REC-html40/present/frames.html
[ Voor 0% gewijzigd door Verwijderd op 26-08-2002 11:44 . Reden: URL added ]
Hoe krijg ik eerst de naam?
dit heb ik:
[code]
<frameset rows=\"150\",\"60%\",*>
<frame name=\"midden\" src=\"chattop.php\" target=\"midden\">
<frame name=\"onder\" src=\"chatinput.php\" target=\"onder\">
</frameset>
Nou is de header verdwenen! Ik weet het, het klopt. Maar de header.php moet via inlude aangeroepen worden
[ Voor 0% gewijzigd door Rainmaker op 26-08-2002 11:46 . Reden: Code added ]
We are pentium of borg. Division is futile. You will be approximated.
Verwijderd
1
2
3
4
| require_once('header.inc.php'); require_once('chatttop.php'); require_once('chatinput.php'); require_once('footer.inc.php'); |
of wat ik zelf een mooiere oplossing vind:
1
2
3
4
5
| $files = array ('header.inc.php','chattop.php',çhatinput.php','footer.inc.php'); for($i=0;$i<count($files);$i++) { require_once($files[$i]); } |
Zoiets dus
1
2
3
| Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\PHPNuke\html\mainfile.php on line 17 Fatal error: Cannot redeclare translate() in C:\Inetpub\wwwroot\PHPNuke\html\language\lang-dutch.php on line 158 |
erop. Bijbehorende source:
1
2
3
4
5
6
7
8
9
| function translate($phrase) {
switch($phrase) {
case "xdatestring": $tmp = "%A, %B %d @ %T %Z"; break;
case "linksdatestring": $tmp = "%d-%b-%Y"; break;
case "xdatestring2": $tmp = "%A, %B %d"; break;
default: $tmp = "$phrase"; break;
}
return $tmp;
} |
en
1
2
3
4
5
| foreach ($HTTP_GET_VARS as $secvalue) {
if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
die ("I don't like you...");
}
} |
deze worden aangeroepen door:
1
2
3
4
5
6
7
8
9
10
11
12
13
| foreach ($messagearray as $value) {
#print("strlen: " . strlen($value));
if (strlen($value) >= $max_chat_input) {
?>
<script>
alert('<? echo ""._CHAT_MS_TO_LONG.""; ?> !')
</script>
<?
$message = "";
break;
}
} |
[ Voor 0% gewijzigd door Rainmaker op 26-08-2002 13:17 . Reden: laatste werd wel aangeroepen, door include ]
We are pentium of borg. Division is futile. You will be approximated.
Hoe plak ik een pagina in een pagina in PHP?
Ik bedoel, ik heb pag1.php en pag2.php
nou wil ik de inhoud van pag2.php weergeven in pag1.php
hoe doe ik dat?
We are pentium of borg. Division is futile. You will be approximated.
Verwijderd
In pag2.php staat dan:
1
2
3
4
| <? print "Deze regel komt uit pag2.php<br>"; include("pag1.php"); ?> |
en in pag1.php staat:
1
2
3
| <? print "Deze regel komt uit pag1.php<br>"; ?> |
Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'
Nou lukt het dus helaas niet met includes of met frames. Ik kan niet alle bestanden van PHPNuke afgaan om de variabelen te veranderen. Is er een andere manier om dat stuk van pag2.php naar pag1.php te krijgen?
(ik denk dan aan een echo "pag2.php" ofzo)
We are pentium of borg. Division is futile. You will be approximated.
Je hoeft dus niet heel phpnuke door, maar gewoon pag1 en pag2 en zorg dat dingen die in pag1 worden geinclude niet nog een keer in pag2 worden geinclude.
Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'
Ik wil alleen weten of er nog een andere mogelijkheid is dan include
We are pentium of borg. Division is futile. You will be approximated.
Verwijderd