Change Menu for People that are logged in

I have a header made for people that are logged in, showing their name, the logout option, as well as the usual things such as home, profile, search, etc.
But I also made a header for the people that are not logged in. It shows only the logo as well as the form to flll in email and password.
I would like to make it in php so that when someone comes to the site or signs in it checks
If the user is logged in
show header_logged_in
show content
show footer
If the user is not logged in
show header_visitor
do not show content (instead I have a page that tells the visitor to sign in or sign up)
show footer
But I'm not sure how I would code this to where it knows whether or not they are logged in, and how to keep the content hidden from those who have not yet.
Any help would be really appreciated. Thanks ahead of time.
Mike

Hi Mike,
Without knowing more about how users login and out I can only give you an example of how it's done.
This uses a session variable check then includes
<?php
session_start();
if ( isset ($_SESSION ['$login_status']) ) {
          include 'header_logged_in.php';
} else {
          include 'header_visitor.php';
?>
It's a basic example but there you have it.
If you give some more details a more accurate answer can be given.
Hope that helps anyway.
David

Similar Messages

  • Why am I still getting this message after logging in - This computer is no longer authorized for apps that are installed on the iPhone "Myron Liptzin's iPhone". Would you like to authorize this computer for items purchased from the iTunes Store?

    why am I still getting this message after logging in?  "This computer is no longer authorized for apps that are installed on the iPhone “*************s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store?"  - after I have logged in and get the message that the computer is already authorized!!!?? - and then the above message pops up again?

    Click here and follow the instructions.
    (71175)

  • "this computer is no longer authorized for applications that are installed

    "this computer is no longer authorized for applications that are installed on the ipad "name of ipad" Would you like to autoriize for items purchased from the itunes store?
    if you do not autorize ....
    Why am I getting this message I only have 1 computer the ipad connects to, it hasnt changed so why do I suddenly have to autorize it again????

    I've gotten the same issue now on my ipad.
    My mac mini is authorized. I only have ONE itunes account. I sync my original ipad today and I get this message. So i say sure authorize, even tho it is. Enter login and password, comes back with this computer is already authorized. I knew that but ok. hit ok. Up pops message that this computer is no longer authorized, blah blah blah. Ok ill try again. Authorize credentials entered. Get message that computer is already authorized. Itunes is most recent 10.2.1. Ipad is updated to 4.3.1.
    I deauthorized computer and reauthorized it. Still get loop.
    google for solutions, find lots of problems, no answers outside of reinstall itunes and it "might" work, but not for everyone. Not gonna do that yet.
    Figure Ill call, I mean its not that an old a device and its surely a bug in the software, I havent changed a single thing since I last synced and only tried got the sync message when i plugged it in to update the OS.
    /rant on Go through a gazillion voice prompts and question, finally get operator and he'll help me if i spend 80 or 30 bucks depending on the service program I want. Yah know thats just total #$%@.
    How about some customer service eh? How about posting a solution to the forums. If you dont have one, at least tell people that.
    I get the same bit of attitude when I walk in the apple store. Love the products, have been an apple user since the IIe, but I just want the products I bought from you, the software that I get from you, the music that I buy from you, the apps that I buy from you, etc etc to WORK with each other.
    /rant off
    has anyone seen a solution for this.

  • I want to change my default sites that are restored when i clear history and top sites

    How do i change the top sites that are resored after clear of history and top sites?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a rescue email address or a Security Questions issue, then see:
             If you forgot the answers to your Apple ID security questions - Apple Support.
             Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • How to select all the people that are not in any equipe  ?

    Hi,
    I have a nice SQL expression that gives me as a result all the "AGENTS" (people) that are working in an EQUIPE (a team)
    select a."AGENT_ID",
    a."NOM" || ' ' || a."PRENOM" "Nom",
    c.libelle "Equipe",
    a."DATE_EMBAUCHE" "Date embauche",
    a."DATE_DEBAUCHE" "Date débauche"
    from OBSERVATOIRE."AGENT" a,
    observatoire.equipe_agents b,
    observatoire.equipe c
    where a.agent_id = b.agent_id
    and b.equipe_id = c.equipe_id
    order by nom
    Now, how to select all the agents that are NOT working in any "EQUIPE" (team) ?
    I have tried but could not succeed !
    Thank you for your kind help.
    Christian

    Christian from France wrote:
    It is not working because the table EQUIPE_AGENTS does not contains a row if the agent is not into any equipe.
    CREATE TABLE "OBSERVATOIRE"."EQUIPE_AGENTS"
    (     "EQUIPE_AGENTS_ID" NUMBER NOT NULL ENABLE,
         "EQUIPE_ID" NUMBER NOT NULL ENABLE,
         "AGENT_ID" NUMBER NOT NULL ENABLE)
    CREATE TABLE "OBSERVATOIRE"."AGENT"
    (     "AGENT_ID" NUMBER NOT NULL ENABLE,
         "GRADES_ID" NUMBER NOT NULL ENABLE,
         "NOM" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "PRENOM" VARCHAR2(50 BYTE),
         "DATE_EMBAUCHE" DATE NOT NULL ENABLE,
         "DATE_DEBAUCHE" DATE)
    The only way to "know" if an agent is not into any equipe (team) is to search into the EQUIPE_AGENTS table, and if we do not find the ID of the agent into this table, then we know that this agent is not into any EQUIPE (team).
    I don't know ho to translate this into SQL.And that's what my query does. It uses an OUTER JOIN so that a result record is returned whether or not there is a record in EQUIPE_AGENTS. And the check for EQUIPE_ID is NULL restricts the result set to those where there IS NOT a record in EQUIPE_AGENTS.
    A more traditional way would be to use NOT IN or NOT EXISTS clauses, but they can prove inefficient.

  • Is GIST available for documents that are stored in Beehive

    Customer is asking the following
    “We are using Beehive and Oracle Portal 11G with the Database 11G, all tied in via SSO/OID. Is GIST available for documents that are stored in Beehive?”
    I asked the customer for more information on GIST and he responded with the following.
    “GIST when used in Portal Builder gives a summary of the document, say in the case of a PDF it will give the first para, we have used it heavily in OCS and want to use it in beehive.”
    Digging a little deeper we found the following,
    http://download.oracle.com/docs/cd/E11882_01/text.112/e24435/view.htm#CCAPP9206
    “5.2.2 Gist and Theme Summary
    A gist is the text of a document that best represents what the document is about as a whole. A theme summary is the text of a document that best represents a single theme in the document.”
    Seems to be a text feature.
    Is this a feature that would be available with Oracle Beehive?

    Change forum

  • TS4006 Last known fix for Find my iPad? How is this not an included option for devices that are currently turned off.  Absolute no brainer.  Thief steals the iPad and turns it offline, or user loses it while it has low battery, lost forever.  Brilliant.

    Last known fix for Find my iPad? How is this not an included option for devices that are currently turned off.  Absolute no brainer.  Thief steals the iPad and turns it offline, or user loses it while it has low battery, lost forever.  Brilliant.

    If the iPad was running iOS 7, the thief/finder will not ever be able to use it.
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    General steps to follow for a Stolen iPad
    http://stolen-ipad.com/
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st Len
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • My iphone 5S will send texts as imessage but frequently switches to regular (green) messages even for people that I know use imessage - since we have exchanged (blue) messages previously. Is there something I can do to fix this or is it a unit problem?

    my iphone 5S will send texts as imessage but frequently switches to regular (green) messages even for people that I know use imessage - since we have exchanged (blue) messages previously. Is there something I can do to fix this or is it a unit problem?
    Please help.

    You can try to log out of iMessage and then sign back in.  However, even under optimal conditions, iMessage will not always work.  That's why the option of 'Send as SMS' is so important.  There might be temporary outages in the related iMessage servers.

  • 'this action is only valid for products that are currently installed'

    hi im new to discussion groups so i might be a little slow... i came aross a problem a couple of days ago where when i clicked on itunes this came up'this action is only valid for products that are currently installed' im not really sure what to do about it!i have tried to uninstall it but it wont let me i have also tried to install a new itunes but it gets stuck and never finishes the install. i have done some research on the net about it and i think it may have occured due to deleting mcafee of my computer however there are no solutions to this problem.
    can anybody help?
    thanks!

    Every time I try to open iTunes a pop up opens
    that says "This action is only valid for products
    that are currently installed."
    that's actually an installer error equivalent
    to the InstallShield 1605 error:
    Error 1605: This action is only valid for
    products that are currently installed
    ... when you go to launch itunes, are you opening it
    via the start menu, or are you clicking on a desktop
    icon? if you are clicking on a desktop icon, what is
    it called, and what does the icon look like?
    Never Mind! But Thanks any way

  • Office 2013 - Excel 2013 - "This action is only valid for products that are currently installed."

    I had Office 2010 starter and Outlook 2010 installed.  I recently purchased the Office 2013 click to run version (paid monthly subscription) and installed Office 2013.  After installing 2013 I noticed that when I opened up Excel files they would
    still open in Office 2010.  I uninstalled Office Starter 2010 and uninstalled Outlook 2010.
    I then manually fixed the file associations for Word, PowerPoint, Publisher and such, however I could not manually fix the Excel file association. 
    Excel documents show the correct icon however when I double click on them the following error appears "This action is only valid for products that are currently installed."
    I have used the Office 2013 repair process, I have uninstalled and reinstalled Office 2013, I have manually uninstalled office 2013 using KB 2739501 (
    http://support.microsoft.com/kb/2739501/en-us ) and I still can not open Excel documents. 
    Recently I found that I can not do mail merges either using Excel documents as the data source and I believe the two items are related.
    Any suggestions?

    Hi,
    Please try to turn off compatibility mode and then check the issue again. To do this, please follow:
    1. Open this folder location:
    For Windows 32-bit: C:\Program Files\Microsoft Office\Office15
    For Windows 64-bit: C:\Program Files (x86)\Microsoft Office\Office15
    2. Find Excel.exe, right-click it, and choose Properties.
    3. Click on the Compatibility tab and ensure that all of the boxes are
    un-checked.
    For more information, please refer to this:
    http://support.microsoft.com/kb/2674519/en-us
    Thanks,
    Steve Fan
    TechNet Community Support

  • When i pluged in my ipod,computer start scanning,it says"your computer is no more authorized for  app that are installed in"yadav ipod",would you like to authorizes this computer for item purchased from itune" what should i do to fix this problem,,,

    when i pluged in my ipod,computer start scanning,without finishing scan,it says"your computer is no more authorized for  app that are installed in"yadav ipod",would you like to authorizes this computer for item purchased from itune" what should i do to fix this problem,,,

    What the message says.  In iTunes g the the Store tab in ther upper part of the screen and then clink on Authorize this computer.

  • HT1386 Hello, When trying to sync, I get the following message.  This computer is no longer authorized for apps that are installed on the iPhone "Terri George's iPhone". Would you like to authorize this computer for items purchased from the iTunes Store?

    while trying to sync with my iphone I recieve the message: This computer is no longer authorized for apps that are installed on the iPhone “Terri George’s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store?  When I put in my password and hit authorize, I get a message telling me there was an unknown error (-50).  Would love to sync today.  Any help would be appreciated.

    The -50 error is documented in this article:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Here is a synopsis:
    Error 13, 14, 35 and 50 (or -50)
    These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
    Put a USB 2.0 hub between the device and the computer.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
    Try to restore from another known-good computer and network.

  • When syncing iPad to MacBook Pro itunes says "this computer is no longer authorized for apps that are installed on the ipad" .  When I enter my id and password it tells me the computer is authorized.

    when syncing iPad to MacBook Pro itunes says "this computer is no longer authorized for apps that are installed on the ipad" .  When I enter my id and password it tells me the computer is authorized.

    http://support.apple.com/kb/TS1389

  • Is there an automated way to scan my multimedia folder for files that are there and not in my library and add them ?

    Is there an automated way to scan my multimedia folder for files that are there and not in my i tune library and add them to y existing library ?
    I recenty had a damaged i tune library and had to import an old version.
    This last one does not have many of the CD I have copied the past months. And I don't know which ones these are either as they are too many of them.

    This will list files that are in the iTunes DB but the files are not in the media folder…
    http://dougscripts.com/itunes/scripts/ss.php?sp=listmias
    This will list files that are in the media library, but not in the iTunes DB.
    http://dougscripts.com/itunes/scripts/ss.php?sp=musicfolderfilesnotadded2
    I think it may misbehave with ringtones & some of the obscure media files, but they are both really powerful for repairing mangled libraries.
    I would create a new smart playlist for 'Tracks added since (todays date)' so you can easily find any tracks that you add back to iTunes.
    Doug has a lot of scripts for iTunes, spread the karma & donate if they are useful to you

  • How can I get Firefox to search my computer for plugins that are already there?

    How can I get Firefox to search my computer for plugins that are already there?
    Adobe's Flash player is already on my computer from IE 8. How can I get Firefox to see that it is already on my PC and use it so I don't have to download it again and possibly create other problems. Also, in my efforts to download Flash, Firefox activated IE which made me concerned that proceeding WOULD cause problems our just leave me where I am now where IE can use Flask but Firefox cannot.

    Internet Explorer uses a ActiveX version of the Flash player plugin as it does not work with other browsers.
    Download the Plugin-based browsers version from https://www.adobe.com/products/flashplayer/distribution3.html and make sure Firefox is closed when you install it.

Maybe you are looking for

  • Blue screen of death when syncing to iPod and iPhone.

    I wish I could laugh. "Upgraded" to iTunes 8 and no longer can use my computer to sync to either my iPhone or my iPod. Thanks for the upgrade Apple. Now that I cannot update my portable music devices I have the extra time to stare at the new visualiz

  • Filesystem Error (UDev and mounting)

    I'm having trouble with my filesystem(s) on startup. These problems began after I cleaned my case using compressed air / vacuum, though I don't think I jostled any hardware. My original filesystem was set up like this: /dev/sda1 NTFS WinXP partition

  • Process vendor invoice through Cash Journal

    Hi all, Is it possible to process vendor payment invoice (FB60) through Cash Journal (FBCJ) rather than paying through F-53/58? BR Nayab

  • Blank DVD-R not accepted by iMac

    Each time I put in a blank DVD-R I hear the drive churning away for about 45 seconds and then it spits it out. No dialog box or nothing to indicate the reason. Here's the hardware info for this machine: PIONEER DVD-RW DVR-K06A: Firmware Revision: Q62

  • Packages and tomcat

    Hi i have 2 servlets in this path 1. loaded1 2. TestSessionServlet C:\jakarta-tomcat-5.0.25\jakarta-tomcat-5.0.25\webapps\servlets-examples\WEB-INF\classes\com\stardeveloper\servlets but when I try to run the servlets with this url http://localhost:8