PDA

View Full Version : resellers start page



RingToons
10-02-2003, 05:02 AM
Hi,

On my server I have a default startpage made by myself for my costomers.

The resellers on the server has the same page, how can I give the resellers the default DA start page?

l0rdphi1
10-02-2003, 08:24 AM
// specify user that currently is logged in
$the_user = "Frank";

$fsock = new HTTPGetSocket('server.domain.com:2222','admin:password');

if ($fsock->request("/CMD_API_SHOW_USER_CONFIG?user=$the_user"))
{
$array_userdata = $fsock->array_last_parsed();
}
else {
die("Could not connect to server.domain.com<p>".join('<p>',$fsock->error));
}

if ( $array_userdata['usertype'] == 'reseller' )
{
$fsock->request("/HTM_INDEX");
echo join('',$fsock->result);
}

I -think- that should work. Untested.

RingToons
10-02-2003, 08:32 AM
I main the start page when an account is setup.
(sorry)

l0rdphi1
10-02-2003, 08:36 AM
Oh sorry. I probably just read your post wrong *sigh*

On the real problem, umm.. have you modified /usr/local/directadmin/data/templates/default?

l0rdphi1
10-02-2003, 08:46 AM
RingToons wrote on 10-02-2003 09:41 AM:
You wrote:
Oh sorry. I probably just read your post wrong *sigh*

On the real problem, umm.. have you modified /usr/local/directadmin/data/templates/default?

I wrote: Yes I change this file.

Jaider (from holland)

Yea, you don't want to modify that file. To the best of my knowledge it will be overwritten next time DA is upgraded.

To change the start page properly on a per-reseller basis you need to modify /home/{reseller}/domains/default. In your case {reseller} is probably admin

Good luck :)