![]() |
[DOMAINID] Prefix
I wanted to include the ID of the parent domain in FTP accounts, so after a bit of firebug magic and a quick look through relevant files, I've modified the source to add the keyword DOMAINID.
Example Usage: Code:
c[CLIENTID]d[DOMAINID]_Open tools.inc.php for editing. I'm using Ubuntu Server 9.10. The path to your ISPConfig directory may be different on your distro. Code:
vi /var/www/ispconfig/sites/tools.inc.phpCode:
[...] |
I will try test and implement.
Thanks 4 contrib.
|
FEATURE REQUEST !!! Can this be included in the next release of ISPConfig 3. It's useful and it would be nice not to have to re-do the edit after updating. Thanks.
|
If you like to request a feature, plaese post it as feature request in the bugtracker and vote for it there.
|
Hi oily..
did you already set this into bugtracker.ispconfig.org? I would like to vote for it ther! If so, please send the direkt link in this post. If not - will you? ;-) |
Complement
[DOMAINNAME] is interessant too.
Prefix and Sufix implementation to create ftp account for example. USERNAME_[DOMAINNAME] or USERNAME@[DOMAINNAME] Examples: user@domain.com user_domain.com |
Quote:
|
To adapt ispconfig and use DOMAINNAME, DOMAINID, DOMAINNAMESHORT as prefix for database in order to allow moving databases between clients!
My prefix for database name and database user is: [DOMAINNAMESHORT][DOMAINID]_ Here DOMAINNAMESHORT will be the first 5 characters of the domain name, and the DOMAINID will be added to make it unique, however not a full list of databases with ONLY numbers! e.g. for domain.com the database prefix will be domai12_ And because it's based on DOMAIN it allows to move to another client. INSTRUCTIONS (on own risk) To support DOMAINID, DOMAINNAME and DOMAINNAMESHORT as prefix modfiy the file /usr/local/ispconfig/interface/web/sites/tools.inc.php and modify replacePrefix and add also a new function getDomainName : Code:
function replacePrefix($name, $dataRecord) {To show the dropdown with domains in the database edit form, modify web/sites/templates/database_edit.htm and add between client_group_id and type around line 39: (copied from ftp_user_edit.htm) Code:
<div class="ctrlHolder">(copied from ftp_user.tform.php) Code:
'parent_domain_id' => array ( |
| All times are GMT +2. The time now is 06:31. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.