Jump to content

Deny Access


jsorenson3

Recommended Posts

I need a little direction, for some reason I am stuck.

I administer a website for a finance company. There is a secure section where dealers login. The login information is stored in a table.

The navigation links are set by using $catArray = include("dealer_nav.php"); for example

in the dealer_nav there is a link that I would like to add a field in the table to say Y or N to allow applications to be processed online and then when they login it would check for this and disable that link in the navigation

If anything needs clarification feel free to email me or reply here and I will try to help the best I can

Thank you for your assistance in advance

Justin
Link to comment
Share on other sites

If I am following you, you want a set up where if the user has chosen A then it will do something else it won't? If I'm right I would add a field to the user's table in your database like, "activated" or something then when they make their decision it switches "activated" to on or off. By default it could be on. Then when you load the navigation it would check that the user was "activated" and act accordingly.
Link to comment
Share on other sites

Yes, that is how i probably would set it up. The table already has information such as a dealer number, address, etc.

If a field would be added I would call it allow credit app for example and have it be either a Y or N

Then I would need to query that table and if it is set to N, then the link on the navigation menu would need to disappear

Lets say I am basing the navigation menu off of this.

I want to be able to disable the newsletters link for example if the dealer would login and have N in the field i create



<?php
return array (
"home:Home" => array ("block:index:Company Name"),
"history:History" => array ("block:index:Company Name"),
"payment:Make a Payment" => array("block:index:Make a Payment"),
"newdeal:New Dealer Inquiry" => array ("dealer_inquire:index:Master Account Information"),
"dealers:Dealer Login" => array ("dealer_forward:index:Registered Dealer Login"),
"case:Case Studies and Testimonials" => array ("block:index:Case Studies and Testimonials"),
"newsletters:Newsletters" => array ("block:index:Newsletters"),
"press:Press Releases" => array ("block:index:Press Releases"),
"special:Special Promotions" => array ("block:index:Special Promotions"),
"careers:Careers" => array ("block:index:Careers"),
"contact:Contact Us" => array ("block:index:Contact Information"),
);
?>

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.