PDA

View Full Version : Additional admin files


Poggyuk
01-27-2003, 09:21 PM
Hi, i was just wondering if anybody knows how to make another page, that uses the admin protection (so you have to log in via the admin cp to access the files)?

This is because i want to add a couple of files to the admin directory, but obviously they'll need protecting...

(if that makes sense?!)

Thanks in advance to anybody that does help!

Logik
01-27-2003, 09:48 PM
If i understand you correctly. Then add this at the top below
<?php of the file you want protected. require('./global.php');

Poggyuk
01-27-2003, 10:43 PM
yeah, that works! thanks!!!

Logik
01-27-2003, 11:10 PM
YW.. Glad i could help.

Xenon
01-28-2003, 04:17 PM
you should also use cpheader and cpfooter functions and the adminlog function :)

just to make em fit into the acp correctly :)

Logik
01-31-2003, 01:23 AM
Yes. Thanks xenon.. I forgot about that.

Poggyuk
03-08-2003, 01:36 PM
Originally posted by Xenon
you should also use cpheader and cpfooter functions and the adminlog function :)

just to make em fit into the acp correctly :)

Would you be able to tell me what the code for the adminlog function is? Please!

Thanks in advance if you help...

Xenon
03-08-2003, 04:21 PM
just add adminlog(); below cpheader is enough normally :)