Hello,
I made a custom file and I would like a logged in Admin to have access to it.
What are the files that I need to include to make that possible?
Thanks :)
Include init.inc.php and check with
if (!GALLERY_ADMIN_MODE) die('Access denied');
I added this
Quoterequire('../include/init.inc.php');
if (!GALLERY_ADMIN_MODE) die('Access denied');
It says "Not in Coppermine"
The file is in a subdirectory.
Sorry about the above post.
I looked around the script of those sections that are admin only and inserted this.
Quotedefine('IN_COPPERMINE', true);
require('../include/init.inc.php');
if (!GALLERY_ADMIN_MODE) die('Access denied');
Now the script is just a blank white page....
You can only do this for files that reside within coppermine's root folder. It can't exist outside of that folder.
Guess I need to reprogram my script on a work around.
Thanks for the help :)