How can I modify the index page so that no one can see some of the text in Mihalism

Discussion in 'Programming' started by Aatma, May 25, 2010.

  1. #1
    I am referring to mihalism image hosting script which i believe is php based .
    I want to know how can I modify the index page so that no one can see the upload boxes to upload the pictures.
    I want only admin or a specific user to be able to upload pictures, no one else should be able to do it including registred users. They should be able to see home page though, just that the boxes to upload pages should not be visible to them.
    Can someone please how this can be achived?
     
    Aatma, May 25, 2010 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Simply look for that upload form element and wrap the code in an if statement using the session you are given after logging in.
     
    ccoonen, May 25, 2010 IP
  3. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    use cookies and sessions
     
    windy, May 30, 2010 IP