+ Post New Thread
Results 1 to 2 of 2
Web Development Thread, locking down intranet pages in Coding and Web Development; This kind of follows on from my previous thread about making certain pages visible to certain groups. How it stands ...
  1. #1

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    200

    locking down intranet pages

    This kind of follows on from my previous thread about making certain pages visible to certain groups.
    How it stands is I have index.php which contains a function to check the users group membership. it then users "require staff.php" etc to include the rest of the layout for that group. using require means that index.php stays at the top all the time so kids wouldn't get an idea to try staff.php.
    i've also set a variable called $indexcalled on index.php so when it loads staff.php it checks that and dies if not set. so that way kids typing in staff.php wont have the variable set so cant see it.

    this all works fine (so wont be changing any of that unless 100% needed) but the problem is the admin page. i wanted a page for the admins that has a link to all the other intranet pages (should we make changes and want to see what its like without having to authenticate as a kid). this page uses onclick to load the relevant page, but it then shows staff.php in the address bar. i need to use onclick but am having trouble locking it all down.

    basically, as an admin i want the admin page to show links to the other pages i specify, but not show it in the address bar, so it stays as index.php. is this even possible, without having to use something like sessions (its only intranet so security isn't the highest priority here). i know it could be done with require/include, but again, it needs to incorporate onclick.

    if none of this makes sense to anyone i can post up the php/html too

  2. #2

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    200
    managed to sort it, as its only intranet i just set a cookie on the admin page that is read by the other pages to see if user is admin.

SHARE:
+ Post New Thread

Similar Threads

  1. Locking Icons
    By witch in forum Windows Server 2008 R2
    Replies: 11
    Last Post: 7th July 2010, 01:44 PM
  2. server for students intranet pages
    By Face-Man in forum How do you do....it?
    Replies: 12
    Last Post: 10th May 2009, 04:28 PM
  3. Locking Down PDAs
    By BKGarry in forum Wireless Networks
    Replies: 1
    Last Post: 2nd October 2007, 11:59 AM
  4. Locking Powerpoint
    By andy in forum Windows
    Replies: 9
    Last Post: 26th September 2006, 08:51 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •