How do I hide the admin button after someone has logged in as the administrator?

Hi everyone,
I am using Dreamweaver CS3, my question is:
I have a login page that has check boxes at the bottom of the page that tell the database whether the user is an administrator or not.
After the owner of the site has logged in as the administrator I would like to be able to hide the administrator button, can this be done with PHP, if so how do I do it?
Thanks.

Hello,
  Please try this:
<?php
    function loggedin(){
        return isset( $_SESSION['loggedin'] );
    function require_login(){
        if( !loggedin() ){
                header( 'Location: /login.php?referrer='.$_SERVER['REQUEST_URI'] );
                exit;
?>
Good Luck!
Sean Colicchio
Server Engineer
hosting.com

Similar Messages

  • Thunderbird email deletes the message automatically after it has been opened and the program is closed.

    After I open a message, it disappears when I close Thunderbird. Any suggestions that I have read do not work.

    http://kb.mozillazine.org/Disappearing_mail

  • How to add DNS server to CER after Server has been Built

    How to add DNS server to CER after Server has been Built?
    The reason why, the CER 1.3.1 that I upgrade to 7.1, had the switch list by hostname,
    The install of 1.3.1 had the LMHOST file editted with all the switch names.
    Is there such thing as a host file on 7.1 CER? If not, that is where I need to add the DNS server now. As they will have to add the switch hostnames to the DNS server.
    Thanks
    Kallol

    I found where to set the DNS via CLI...
    admin:set network dns
          set network dns options
          set network dns primary
          set network dns secondary
    Also it requires me to configure the domain name.
    set network domain name

  • I am having an MacBok Pro 13inch,having an Startup Problem, the time i press the power button after few seconds the apple symbol appears w/a loading sign below it

    i am having an MacBook Pro 13inch  , having an Startup Problem , the time i press the power button after few seconds the apple symbol appears with a loading sign below it and wont go further ahead of it . My data is all in the hard drive .. . I even tried the Internet recovery but no use !!!! but still no respons and the recovery and macintosh hd is now lock! but earlier only the recovery is lock and after both of them is lock.  i can reinstall,... and i didnt try to back up any data bec i dont know how? so please help me to resolve my prroblem.?

    luoie wrote:
    This thing happend,, it say Disk utility stopped repairing "Macintosh HD" disk utility can't repair this disk
    Sorry, possibly you need a new hard drive or try reformating. First
    you can try something like http://www.alsoft.com/diskwarrior/  it has been known to repair disk that DiskUtility could not. YMMV and they don't give it away.
    If Disk Warrior can not repair then you need to Reformate the drive. Make sure you have a back-up in place no matter what.
    http://www.apple.com/support/backup/
    Disk Utility will tell you something about it's SMART status:

  • How can you hide a Continue button until all clickboxes are clicked?

    I have seen similar questions to this one, but none seemed to be the exact situation as mine.
    What I have: Several images on a screen.  When a user clicks an image it is replaced with another image.  I am using clickboxes for this task.  I do not wish for them to toggle back and forth. Once they click the original image it should stay changed.
    What I am trying to do: Once a learner clicks all the images (in no particular order) a Continue button appears that allows them to go to the next screen.
    If anyone has some suggestions on this situation please let me know, thanks.

    I cannot log in on the forum for the moment, so will try by answering by
    mail. I was aware of that problem (have presented those solutions so
    often), thought that since you left all images visible once the click box
    was clicked it wouldn't be a problem.
    Two possible solutions:
       1. Easiest one: add a statement in the Always decision that will Hide
       the click box just clicked. It has no sense to click it another time. That
       will mean that you still can do it with a shared action but that shared
       action will have two parameters now, the second one being the click box
       that has to adapted on each application of the shared action.
       2. If you don't want to make the click box hidden (which means at the
       same time disabled), you'll need a user variable for each click box,
       starting with a default value of 0, and toggle it in the Decision 'Always'
       to 1. The second decision will then need a condition that checks the value
       of all the user variables (with AND) and shows the Next button only when
       all variables have the value of 1.
    Sorry, but have to mail, cannot offer a screenshot in that case.
    Lilybiri
    2014-03-13 5:31 GMT+01:00 Joseph_McDonald <[email protected]>:
        Re: How can you hide a Continue button until all clickboxes are
    clicked?  created by Joseph_McDonald<http://forums.adobe.com/people/Joseph_McDonald>in *Advanced
    Adobe Captivate Users* - View the full discussion<http://forums.adobe.com/message/6205043#6205043

  • My iTunes account says error 13019 after it has recognized all of the music and I have tried everything that is on this website and everything i can find about how to fix it; I even created in under a new administrator. Any suggestions how to fix it?

    My iTunes account says "The iPod "Madison " cannot be synced. An unknown error has occured (13019)" after it has recognized all of the music and has went through every song and it said "Copying  (song)   to "Madison"....." and then after it has went through all of my songs (492) it says the error message. I have tried everything that is on the Apple iTunes website about it, I have created the music account under a new administrator, I've tried everything. What do i do?

    I found something that worked.  I had never come across "recovery mode," but found reference to it, how to do it. http://www.ichilton.co.uk/blog/iphone/getting-the-iphone-ipod-touch-into-recover y-mode-48.html
    Put the ipod touch in recovery mode and then restored it, setting it up as a new Ipod, rather than restoring from the backup.  Given how much trouble I'd had, I suspected that the backup might be corrupted anyway.
    That seems to have resolved everything completely.

  • I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help :(

    I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help

    If you're syncing with a different iTunes library than the one you previously synced with, then there is no way around it. You're gonna loose the old data. The only way round it would be to make sure that all the music files on your iPhone is also in your iTunes library. If you still have access to the computer with the old library, you could copy the files on to an external harddrive, and then import them into your new iTunes library.
    If it is in fact the same library, then the music currently on your iphone, is also in your itunes library. Just make sure that the artists/albums/playlists, or whatever you sync contains these tracks, that you allready have on your phone and don't want deleted. What i do is, i create a playlist specifically for my iPhone, and i set it up to only sync with this playlist. Whenever i hear a track from my iTunes library or buy a new track that i want on my phone, i just drag it to this playlist and next time i synchronize, it's there without deleting anything else.

  • Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps wit

    Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps with ios7

    Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past.  With the new operating system you also swipe downward to get the search bar to find an app

  • Can u tell me how to remove the documents in the Rection section after I had moved them to the respective folders. Thanks

    Can u tell me how to remove or delete the documents which are remain in the Recent section after I have moved them to the respective follders. Thanks.

    The same question by the same user.
    Please see the other post for the reply.
    After the latest update, documents from adobe reader moved to respective folders remain the the Recent. Why? Please advise

  • How do I create a print button to print a specific range of the document.

    How do I create a print button to print a specific range of the document.  I've found JavaScript to print a specific page, but a range or even multiple ranges.  Form is created in Adobe 9 Pro.  Any help would be truly appreciated! 

    Sure, I'll give it a test.  Its just that I have a 128 page form that not all of it needs to be printed.
    Currently,  I have an index page where I want to set up a print button queues per form, however there are several form scattered throughout the document that make up a specific section, but it does not require printing the entire document.  Does that make sense?
    I did find this JavaScript during my reseach, but have not be able to get it to work.
    var pp = event.target.getPrintParams() ;
    pp.interactive = pp.constants.interactionLevel.full;
    pp.printRange=[[1, 1], [3, 4]];
    event.target.print(pp);

  • How do I log into the App Store after my friend logged in to his from mine

    How do I log into the App Store after my friend logged in to his from mine?

    Go into settings > iTunes and App store.. your friends email will appear there.. tap and hold until it highlights gray.. then a box will come up  press sign out and then enter your user cardentials where your friends were.

  • How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

    I am using the following component as an item renderer for a
    <mx:DataGridColumn>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:HBox horizontalAlign="left" left="10">
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    </mx:HBox>
    </mx:Canvas>
    How do I give the radio buttons a buttongroup and id
    dynamically as the datagrid is populated?

    "nikos101" <[email protected]> wrote in
    message
    news:g83gfl$m8o$[email protected]..
    >I am using the following component as an item renderer
    for a
    ><mx:DataGridColumn>
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    > <mx:HBox horizontalAlign="left" left="10">
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > </mx:HBox>
    > </mx:Canvas>
    >
    > How do I give the radio buttons a buttongroup and id
    dynamically as the
    > datagrid is populated?
    What is your actual goal?

  • HT2490 I can't change my system preferences because I did the wrong thing in creating the admin profile, so whenever i tried to change the system preferences, I can't do it. How do I resolve it?

    I cannot change my system preferences because I did the wrong thing in creating the admin profile. So, whenever I wanna change the preferences again, it says to me that you cannot do this. How do I resolve this?

    Do you have an account that is a type of Administrator? If not, try this tip to restore an Administrator account.

  • How can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    how can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    Hi there
    Apple doesnt give this feauture and there are certain apps in app store under utilities which provide password facility under this app and u can store photos videos and orther stuff and lock so
    Kids will be not able to access this single app ortherwise there is no such feature of locking apps feature given by apple
    <Edited By Host>

  • My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    Hello Sabroso007
    Check out the article below to troubleshoot the sound output to your Bluetooth speaker. Check in System Preferences > Sound to see what the output is set to.
    OS X Mavericks: Set up Bluetooth audio devices
    http://support.apple.com/kb/PH14217
    Regards,
    -Norm G.

Maybe you are looking for

  • Connecting Macbook to LCD TV

    I want to connect my Macbook to my LCD TV. I have seen videos on Youtube showing ways of doing this, but I chose to connect them slightly different from the videos I saw. I have connected a Mini DVI - VGA adapter to my Macbook, then connected a VGA -

  • Migration of AlwaysON database from WSFC 2008 + SQL2012 to WSFC 2012 + SQL2014

    Hello All, I have a 6 node GEO cluster, 4 nodes in primary site + 2 nodes in secondary site. In the primary node 03 and 04 has 2 pair of SQL instances default + named. I am planning to  move the named SQL pair from WSFC 2008 + SQL2012 TO WSFC 2012 +

  • Why can't I access my button click method??

    I have had this problem a couple of times now and I do not understand what is happening. Here is what is happening. 1) I have a login menu screen - user logs in OK. 2) User directed to another screen where user selects option 3) User directed to a th

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM. In Gnome, my external drives were mounted as i connected them, with the UID. Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they

  • MacBook Pro Won't Start up after leopard Install

    I installed leopard on my MacBook Pro 2.0 GHz Intel Core Duo. Well at the end during the restarting phase it took forever to restart and my power was running out so not sure if it restarted or batt went dead. After recharging i turned on mac and wont