Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: disable admin authentication  (Read 2571 times)

0 Members and 1 Guest are viewing this topic.

geekla

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
disable admin authentication
« 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
« Last Edit: February 22, 2005, 11:44:16 pm by TranzNDance »
Logged

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Re: disable admin authentication
« Reply #1 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.
Logged
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

geekla

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: disable admin authentication
« Reply #2 on: February 22, 2005, 11:41:29 pm »

Got it. Thank you very much!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.