Koozali.org: home of the SME Server

Customisation

Reinhardt

Customisation
« on: June 29, 2001, 12:17:25 PM »
I am trying to customise a few things on my e-smith server.  I have written a few bash scripts in order to perform some tasks, and I would like to add links to them in the e-smith manager.  I have been trying to do it using a php script to call the bash scripts but it does not seem to work.  Does anyone have ay suggestions as to what I should do please.

Paul

Re: Customisation
« Reply #1 on: July 01, 2001, 10:42:37 PM »
Reinhardt wrote:
>  
> I am trying to customise a few things on my e-smith server.
> I have written a few bash scripts in order to perform some
> tasks, and I would like to add links to them in the e-smith
> manager.  I have been trying to do it using a php script to
> call the bash scripts but it does not seem to work.  Does
> anyone have ay suggestions as to what I should do please.

I have several suggestions for you, Reinhardt.

i) Any customisation questions should be asked in the Experienced User Forum, rather than General Discussion.

ii)  Have a look at /etc/e-smith/web/functions/navigation.  This script creates the navigation panel in the e-smith-manager.  Pay special attention to this part:

 #--------------------------------------------------
 # For each script, extract the description and category
 # information. Build up an associative array mapping headings
 # to heading structures. Each heading structure contains the
 # total weight for the heading, the number of times the heading
 # has been encountered, and another associative array mapping
 # descriptions to description structures. Each description
 # structure contains the filename of the particular cgi script
 # and a weight.
 #--------------------------------------------------

Then have a look at this "description and category" information
in the other scripts in same directory.  For instance, from the user account script you have:

#------------------------------------------------------
# heading     : Collaboration
# description : User accounts
# navigation  : 3000 3100

You now know where you script should go and what you'll need in the heading of your script to display in the e-smith-manager.


Good Luck,
Paul