coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: Menno on November 20, 2006, 11:21:10 PM

Title: Button password protected
Post by: Menno on November 20, 2006, 11:21:10 PM
Hello,

I made a button on the main page of coppermine and now i want to protect the button whit a password.
The button is linkt to a .php file in the root of coppermine.

I tryed to modify the login.php. but i have no luck.
can someboby help me.

what is it what i'm doing wrong.

Greetz menno
Title: Re: Button password protected
Post by: Joachim Müller on November 21, 2006, 05:11:49 AM
You can't protect a button with a password, but only the page you're sending your visitors to. You can do so using .htaccess methods or come up with a PHP script on your custom page that asks for the password and only displays the actual page if the correct password has been submit.
Title: Re: Button password protected
Post by: Menno on November 21, 2006, 04:40:30 PM
Thanks for the responce.

Can you tell me if it is posible to copy some of the php scrip from the coppermine gallery? For example from login.php?
Or theme.php

I'm not a big strar in programming in php. I understand a litte bit. But not a lot.
I found some scrips or parts of it on the forum. But that does not see to do the trick.

greetz menno,

ps. the problem I had the last time whit the breadcrums (maybe you rember) is sloved after i istalled a new virus scanner.
The problem was caused by a virus.


Title: Re: Button password protected
Post by: Joachim Müller on November 21, 2006, 05:14:07 PM
Quote from: Menno on November 21, 2006, 04:40:30 PM
Can you tell me if it is posible to copy some of the php scrip from the coppermine gallery? For example from login.php?
Or theme.php
Sure, go ahead - borrow any part of coppermine's source code for your custom script and modify it as you see fit.

Quote from: Menno on November 21, 2006, 04:40:30 PM
ps. the problem I had the last time whit the breadcrums (maybe you rember) is sloved after i istalled a new virus scanner.
The problem was caused by a virus.
No, I don't remember. You should reply to the thread where you posted about that particular issue, saying how you solved it. It's not a bright idea to discuss unrelated issues on this thread.