PDA

View Full Version : Admin CP


Snake~eyes
01-13-2003, 11:36 PM
what code do i need to use so its liek the admin cp.

I was going to put the link in the left frame and then i wanted the page in the right frame to be protected so that admin must be logged in.

Help is appreciated

:bunny:

Chris Gwynne
01-13-2003, 11:41 PM
...Huh?

Snake~eyes
01-14-2003, 02:27 AM
I want to add a file to the admin directory lets just say test.php

Then when you lgointo the admin cp the link on the left will be test and when you click it itll change the right frame to the test.php

How do i protect this test.php so that only admins can access it like a normal admin cp page?

Xenon
01-14-2003, 04:07 PM
cpheader() function has to be used :)

Snake~eyes
01-14-2003, 06:19 PM
But do i have to include a file or somthing? cause that function wont be coded unless i include somthing or a nother.

Xenon
01-14-2003, 06:26 PM
well, as on every file you want to include with vb, you have to require global.php...