Version 1.27.5

Released: 2006-08-30

the public_html symlink can take up a lot of space in the filemanager.. Changing link path to a hover-over popup with the true path to save space in the cell.

multi pupose post.sh script called after all POST's new

A script that's called (if it exists) after all POST's done by a User in DA.

All of the relevant info is passed to the script. Possibly add a pre.sh script for it as well, with the option of returning a non-zero value to shut down whatever commands you want.

custom script names:

all_pre.sh

all_post.sh

The all_post.sh script won't be able to stop the command from running, obviously, as it's called after the command has actually completed, however a non-zero return value will still abort the usual output to generate text to the screen. CMD_API commands will work as well.. the output from the scripts are encoded with the standard error=1&text=..etc..

values passed will be the entire GET and POST values (POST wil override any GET values). At the end, "username" and "command" will be added, overriding anything in the form. (command, being the CMD_COMMAND_NAME)

Heavy form checking is expected in your script as users can pass anything they'd like to try and fool your scripts with unexpected environmental variable values.

Be very very careful with this feature. It's very "raw" and can bite you if you're not careful.


Update: THe following are now also variables in the all_pre.sh and all_post.sh:

caller_ip

SESSION_ID

CMD_API_IP_MANAGER new

api for all of the IP commands on the CMD_IP_MANAGER page.

CMD_IP_MANAGER

method: GET (no post data)

Outputs the ip table (ip, status, reseller, user(s), nameserver, netmask)

=============

All the rest require POST's.

action=select
select0=1.2.3.4
(select1=1.2.3.5, etc)

+

delete=anything  :  delete's the select IP's

or

assign=anything
reseller=resellername : assign the selected ips to the reseller

or

remove=anything : delete the selected *free* ips.

or

clear=anything :  remove the "nameserver" field from the IP. (just cosmetic, doesn't affect dns in any way)

=============

action=add
ip="1.2.3.4"   OR  "1.2.3.4-9"   (without quotes).. where it starts at 1.2.3.4 and adds up to 1.2.3.9
netmask=255.255.255.0

email notice for suspended accounts during tally new

DA will send an email notifying the user and reseller that the account was suspended during the tally. No email is sent if the Reseller suspends the account by hand. Doesn't apply for Reseller's being suspended for total bandwidth overusage of all their User accounts combined, unless his own personal "User" level goes over it's limit (rarely happens anyway).

New template:

user_suspension.txt

CMD_API_FTP to return custom path fixed

The CMD_API_FTP api call does not return the custom home dir when viewing/modifying a user.

Fix to support custom paths. The "path" is now returned.

cronjobs not suspended with account fixed

cronjobs are still run after user account is suspended.

Fix will remove all cronjobs by from that user (crontab -u username -r) but will leave the cron data intact (crontab.conf)

include custom mbox imap folders for main account backup fixed

/home/username/mail is only including

INBOX.Drafts

INBOX.Sent

INBOX.Trash

in the backup.. and not the rest of the folders. Fix it to search and add any custom folders there. Include subfolders.

Last Updated: