disable admin authentication disable admin authentication
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

disable admin authentication

Started by geekla, February 22, 2005, 09:52:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

geekla

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

Aditya Mooley

Open include/init.inc.php

Add:

$cookie_uid = '1';
$cookie_pass = md5('your password');


Just before

$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.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

geekla