Board index   FAQ   Search  
Register  Login
Board index System Administration Server security

ADminstration

Discussions about server security -- questions and answeres

Moderators: macek, egami, gesf

ADminstration

Postby prince » Sun Apr 01, 2012 9:12 pm

how to restrict the users from not allowing to access the admin privilages using php?
prince
New php-forum User
New php-forum User
 
Posts: 15
Joined: Mon Mar 26, 2012 3:43 am

Re: ADminstration

Postby egami » Mon Apr 02, 2012 7:44 am

Develop userlevel privies within your scripts.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: ADminstration

Postby prince » Mon Apr 02, 2012 8:59 pm

Thanks egami,

the privilages has been developed but when directly accessing from the url it will be going to admin privilages


ex: if we have an admin privilage like Remove.php is the option for admin . But the user run the same file it will opening for the user also . So how restrict the user from redirecting..
prince
New php-forum User
New php-forum User
 
Posts: 15
Joined: Mon Mar 26, 2012 3:43 am

Re: ADminstration

Postby egami » Wed Apr 04, 2012 4:12 am

if ($_SESSION['userlevel'] < 100) {
die("You do not have access to this page.");
}
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: ADminstration

Postby prince » Thu Apr 05, 2012 2:16 am

Thanks egami,

i have tried that one also .it is working in the localhost but it is not working in the live site.
prince
New php-forum User
New php-forum User
 
Posts: 15
Joined: Mon Mar 26, 2012 3:43 am

Re: ADminstration

Postby egami » Thu Apr 05, 2012 12:31 pm

make sure that session_start() is at the beginning of your script.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: ADminstration

Postby prince » Mon Apr 09, 2012 9:47 pm

Thank you

the script has been kept before starting of the page
i given userlevel=1,adminlevel=5, though also using user level accessing the admin pages
by chagnging the url..
prince
New php-forum User
New php-forum User
 
Posts: 15
Joined: Mon Mar 26, 2012 3:43 am

herve leger cheapest Herve Leger on sale (35)

Postby galloway8 » Wed May 15, 2013 8:06 pm

We have all received our fair share of promotional items such as key chains, pens, pencils, tote bags, logo travel mugs, magnets and so on. Politicians hand them out when election time rolls around. Banks and doctors' offices purchase promotional pens by the case. At every festival, at every herve leger a line dress event, people do the best they can to get their free promotional products into your hands. But why? The truth is that promotional products get results.
If you're not handing out custom printed materials along with your competitors, you're missing out on an effective, inexpensive advertising strategy. In fact, your competitors may be getting the upper hand and earning more money than you simply because their logo, their image is in people's buy [url=/]cheap herve leger dress[/url] homes. Their logo is on ordinary products that people use everyday. Imagine: daily brand advertising simply by handing out an inexpensive product such as a logo travel mug.
Still on the fence when it comes to promotional items? Take a look at the herve leger colorblock following reasons why promotional giveaways work:
* People love free stuff. When coral herve leger dress you set up a booth at a function and hand out giveaways, people will flock to your booth to pick up their freebie. When they do, you can talk to them. You can sell to them. You can familiarize them with your company and put a human face to the company name. If you're just sitting there handing out brochures, you will find that most people will pass you by. They don't want to be sold to, but they do want freebies.
* Once you get your promotional items into people's hands, they will use them and remember you. Take for example logo travel mugs. If you give away a travel mug to a coffee drinker, there is a good chance that [url=/]herve leger dress review[/url] person will use your mug everyday. They will see your logo daily and so will their family. They may even carry their mug to work. The amount of people that see your brand on just one traveling mug could be quite large. Imagine how many people would see your logo if you gave out 100 or more coffee travel mugs!
* Promotional products endure. If you hand out paper items like coupons, flyers and brochures, they may not even make it into people's homes. The amount of people that will actually use them once they have them in their home is even fewer. Items such as logo travel mugs, on the other hand, will make it home and they will be used.
Sure, promotional items are a little bit more expensive than Xerox copies of your latest sales flyer, but when you consider the results, they are extremely cost effective. The goal of sensible advertising is to get the best results for the lowest price. Promotional products are perfect for the job!
Kim is herve leger outlet usa the author of Discountmugs.com. If you would like more information about Logo Travel Mug please visit

Related articles:


herve leger cheapest Herve Leger on sale (36)

herve leger strapless dress cheapest Herve Leger o

robe herve leger cheapest Herve Leger on sale (44)
galloway8
New php-forum User
New php-forum User
 
Posts: 200
Joined: Mon Jan 07, 2013 3:36 am


Return to Server security

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron