PDA

View Full Version : Need a hack for the admin CP


Bally
01-05-2002, 05:55 PM
Hi there!

I´m not very good in programming, so i have to ask for it...

I run a board (VB 2.0.3) with 3 Administrators.
I only want one of them to be able to backup the SQL Database.

I guess it´s very easy to programm a hack like this.... But how???

Perhaps someone can halp me.....

THX a lot!

Admin
01-05-2002, 06:01 PM
In backup.php, under admin folder, add this:
if ($bbuserinfo[userid]!=XXX) {
echo "You do not have permission to do this!";
exit;
}

right after this:
require("./global.php");
just change XXX with the userid of the one admin that can access that page, and you're all set.

Bally
01-05-2002, 06:06 PM
Wow!

That was fast!

THX!

:) :) :)