Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 697469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:10:17+00:00 2026-05-14T03:10:17+00:00

whats going on is everything is loading just fine url is deigned.sytes.net except for

  • 0

whats going on is everything is loading just fine url is deigned.sytes.net except for the links when i click about us or services or contact they look like there loading but the content in body.tpl doesn’t change from default. maybe you can help me with this why the links are not changing. you u want here are the ONLY php files

I have made phps files for view perpose’s but if you insist on it i will post the require code.

designed.sytes.net/index.phps
designed.sytes.net/classes/file.class.phps

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:10:17+00:00Added an answer on May 14, 2026 at 3:10 am

    In the URLs you name the parameter p but in your files.class.php you actually test for $_GET['page']. So either change the URLs to use page as parameter or change the code to:

    // in files.class.php instead of if(!isset($_GET['page']))
    if(!isset($_GET['p'])){
        // your code here...
    } else {
       // ...
    } 
    

    In your original code, as $_GET['page'] does never exist, it always shows the index page.


    Another thing that looks strange to me is the following (but maybe it is just how you set it up):

    if(file_exists($_GET['page'].'.txt')){
        // and lets include that then:
        ob_start();
        include("contents/". $_GET['page'] . '.php');
        $content = ob_get_contents();
        ob_end_clean();
    }
    

    You first check whether the text file e.g. about.txt exists but then include a PHP file contents/about.php. Is this intended? Does the PHP always exist if the text file exists?


    UPDATE:

    Also make sure that you properly check the value that you get from $_GET['page'] or however you call it in the end.
    E.g. this call http://designed.sytes.net/index.php?page=../index seems to kill your server (sorry it was unintentionally 🙁 )

    UPDATE 2:
    In order to provide “some” security you could check whether $_GET['page'] is one of predefined values instead of checking whether a file with this name exists. E.g:

    $valid_pages = array('home', 'about', 'services', 'contact');
    
    if(isset($_GET['page']) && in_array($_GET['page'], $valid_pages) {
       // include page here
    }
    else {
        // redirect to home page
    }
    

    That makes sure that $_GET['page'] is not of form of relative pathes like ../index. If it is not one of those values in $valid_pages you redirect to the home page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small problem with rollover effects. First time after loading everything's fine.
Can anyone explain whats going on 'under the hood' with textRanges in IE/javascript? What
What's going on?! Subtraction works fine until I get to 0.1 - 0.1. I'm
Not sure what exactly is going on here, but seems like in .NET 1.1
I'm loading some content (NOT THE HTML headers or anything, just HTML formatted content
I hope someone can help me since I have no clue whats going on
I wrote a small script for work and when developing it everything was fine
So I'm using this code to write the file(just testing now, I'm going to
I have a linked list. Everything is going great inside of it. My only
So I'm not sure if I'm just blind to the problem or what's going

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.