View Single Post
  #5  
Old 27th May 2009, 12:12
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,191
Thanks: 829
Thanked 5,418 Times in 4,260 Posts
Default

Ok, thats bad. But we have other possible options

You can try to set the default value in the file /usr/local/ispconfig/interface/web/sites/form/web_domain.tform.php

Code:
'apache_directives' => array (
			'datatype'	=> 'TEXT',
			'formtype'	=> 'TEXT',
			'default'	=> '',
			'value'		=> '',
			'width'		=> '30',
			'maxlength'	=> '255'
		),
But If I remeber correctly this will be applied only if you visit the last tab with the apache directives field.

The safest option might be to add some code to /usr/local/ispconfig/interface/web/sites/web_domain_edit.php in the onAfterInsert unction that writes your default value to the database. Example:

Code:
$app->db->query("UPDATE web_domain SET apache_directives = 'Thats my default value' WHERE domain_id = ".$this->id);
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote