Jump to content

Logout button


Ciggy

Recommended Posts

[code]<STYLE type="text/css">

<!--

BODY {

background-color: FFC55E;

scrollbar-face-color: FFC55E;

scrollbar-highlight-color: FFC55E;

scrollbar-3dlight-color: FFC55E;

scrollbar-darkshadow-color: F2B03B;

scrollbar-shadow-color: FFC55E;

scrollbar-arrow-color: 000000;

scrollbar-track-color: FFC55E;

}

-->

</STYLE>

<?php

require('config.php');

if($userData[user] =="" || $userData[pass] ==""){

  Echo"Username: Not Logged In - Click <a href='login.php'>here</a> to login.

  <hr width='100%' height='1' color='#000000' shade='no'>";

}else{


if ($userData[rank] =="NR"){

    $linksVar ="<br> &nbsp;Please visit <a href='/news' target='_blank'>here</a> and

login with the same username and password to add/edit/manage the news.";

echo $linksVar;
exit;

}else if($userData[rank] =="0"){

    $linksVar ="You are no longer staff at $websiteName, Sorry.";

  }else{

    $linksVar ="<br> &nbsp;<a href='requests.php'>Request Line</a> |

                <a href='info.php'>Radio Info</a> |

                <a href='rules.php'>DJ Rules</a> |

                <a href='cps.php'>Control Panels</a> |

                <a href='message.php'>DJ Says</a> ";

}

  Echo"User: <b>$userData[user]</b> Rank: <b>$userData[rank]</b>$linksVar

  <hr width='100%' height='1' color='#000000' shade='no'>";

}


?>[/code]

I would like a log out button rite next under the DJ says which i want align to the right. I want after you log out for it just to go to the page login.php hope you can help. Thanks so much!
Link to comment
Share on other sites

[code]
<STYLE type="text/css">

<!--

BODY {

background-color: FFC55E;

scrollbar-face-color: FFC55E;

scrollbar-highlight-color: FFC55E;

scrollbar-3dlight-color: FFC55E;

scrollbar-darkshadow-color: F2B03B;

scrollbar-shadow-color: FFC55E;

scrollbar-arrow-color: 000000;

scrollbar-track-color: FFC55E;

}

-->

</STYLE>

<?php

require('config.php');

if($userData[user] =="" || $userData[pass] ==""){

  Echo"Username: Not Logged In - Click <a href='login.php'>here</a> to login.

  <hr width='100%' height='1' color='#000000' shade='no'>";

}else{


if ($userData[rank] =="NR"){

    $linksVar ="<br> &nbsp;Please visit <a href='/news' target='_blank'>here</a> and

login with the same username and password to add/edit/manage the news.";

echo $linksVar;
exit;

}else if($userData[rank] =="0"){

    $linksVar ="You are no longer staff at $websiteName, Sorry.";

  }else{

    $linksVar ="<br> &nbsp;<a href='requests.php'>Request Line</a> |

                <a href='info.php'>Radio Info</a> |

                <a href='rules.php'>DJ Rules</a> |

                <a href='cps.php'>Control Panels</a> |

                <a href='message.php'>DJ Says</a> ";

                <a href='logout.php'>Log Out</a> ";

}

  Echo"User: <b>$userData[user]</b> Rank: <b>$userData[rank]</b>$linksVar

  <hr width='100%' height='1' color='#000000' shade='no'>";

}


?>
[/code]

logout.php

[code]
<?php
header("location:login.php");
?>
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.