Jump to content

Adam6

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Adam6's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your reply mate. Can you edit the code to include the check for me please. As I said im a PHP noob and my PHP skills are very limited atm  :-[
  2. Im trying to get a content page include to work. This works. [quote]<? $page = $_GET['page']; define ("homeurl", ""); if ($page=='') { include('content/index.php'); } elseif (!file_exists('content/'.$page.'.php')) { include('content/index.php'); } else { include(homeurl.'content/'.$page.'.php'); } ?>[/quote] This dont work. [quote]<? $page = $_GET['page']; define ("homeurl", "http://www.pspbrew.net/opasit/"); if ($page=='') { include('content/index.php'); } elseif (!file_exists('content/'.$page.'.php')) { include('content/index.php'); } else { include(homeurl.'content/'.$page.'.php'); } ?>[/quote] Why dont the second one work ffs. I want to include the URL. Ive heard if I dont include the URL it will be exploitable? Help me please. Im a noob  :'( Im using this to goto the page/include. [quote]?page=example[/quote]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.