resellers start page

RingToons

Verified User
Joined
Jul 28, 2003
Messages
51
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?
 
PHP:
// 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.
 
Last edited:
Oh sorry. I probably just read your post wrong *sigh*

On the real problem, umm.. have you modified /usr/local/directadmin/data/templates/default?
 
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 :)
 
Back
Top