forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: geekla on February 22, 2005, 09:52:36 am

Title: disable admin authentication
Post by: geekla on February 22, 2005, 09:52:36 am
Sorry if this is a n00b question. I'm using .htaccess authentication and would like to disable the authentication system. I'm the only person who will see this site, so authentication is redundant. Is there a simple way to do this? Thanks!


---
edit: corrected spelling
Title: Re: disable admin authentication
Post by: Aditya Mooley on February 22, 2005, 10:06:30 am
Open include/init.inc.php

Add:
Code: [Select]
$cookie_uid = '1';
$cookie_pass = md5('your password');

Just before
Code: [Select]
$sql = "SELECT * " . "FROM {$CONFIG['TABLE_USERS']} WHERE user_id='$cookie_uid'" . "AND user_active = 'YES' " . "AND user_password != '' " . "AND BINARY MD5(user_password) = '$cookie_pass'";

By doing this anybody coming to your gallery will be automatically loggedin as Admin.
Take a backup before modifying.
Title: Re: disable admin authentication
Post by: geekla on February 22, 2005, 11:41:29 pm
Got it. Thank you very much!