You are here: Re: Oscommerce admin login « PHP Programming Language « IT news, forums, messages
Re: Oscommerce admin login

Posted by Joe Scylla on 12/06/07 11:08

2005.ravikumar@gmail.com wrote:
> Hello sir
>
> How to create Oscommerce admin login? Please give me sample code.

A default installation of OSCommerce don't have any special
adminstration login. If you want to know how to protect the
administration area one possibility is to create a .htaccess file (if
your webserver is a apache)

A basic .htaccess for password protection the admin directory would look
like:

<code>
AuthName "OSCommerce Administration
AuthType Basic
AuthUserFile /...full absolute path../.htpasswd
require valid-user
</code>

AuthUserFile would be something like
"/var/www/web10/html/admin/.htpasswd" and need to be an absolute path to
the password file.

The file ".htpasswd" contains the login names and encrypted password.
You have to create such a file by using the apache tool "htpasswd" or a
online creator like http://www.htaccesstools.com/htpasswd-generator/.

For more information about htaccess look at:
http://en.wikipedia.org/wiki/Htaccess

Joe

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация