(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Formfields * @version $Id: formfield.domains_edit.php 130 2010-12-22 00:54:11Z d00p $ */ return array( 'domain_edit' => array( 'title' => $lng['domains']['subdomain_edit'], 'image' => 'icons/domain_edit.png', 'sections' => array( 'section_a' => array( 'title' => $lng['domains']['subdomain_edit'], 'image' => 'icons/domain_edit.png', 'fields' => array( 'domain' => array( 'label' => $lng['domains']['domainname'], 'type' => 'label', 'value' => $result['domain'] ), 'dns' => array( 'label' => $lng['dns']['destinationip'], 'type' => 'label', 'value' => $domainip ), 'alias' => array( 'visible' => ($alias_check == '0' ? true : false), 'label' => $lng['domains']['aliasdomain'], 'type' => 'select', 'select_var' => $domains ), 'path' => array( 'label' => $lng['panel']['path'], 'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null), 'type' => ($settings['panel']['pathedit'] != 'Dropdown' ? 'text' : 'select'), 'select_var' => $pathSelect ), 'url' => array( 'visible' => ($settings['panel']['pathedit'] == 'Dropdown' ? true : false), 'label' => $lng['panel']['urloverridespath'], 'type' => 'text', 'value' => $urlvalue ), 'redirectcode' => array( 'visible' => (($settings['system']['webserver'] == 'apache2' && $settings['customredirect']['enabled'] == '1') ? true : false), 'label' => $lng['domains']['redirectifpathisurl'], 'desc' => $lng['domains']['redirectifpathisurlinfo'], 'type' => 'select', 'select_var' => $redirectcode ), 'iswildcarddomain' => array( 'visible' => (($result['parentdomainid'] == '0' && $userinfo['subdomains'] != '0') ? true : false), 'label' => $lng['domains']['wildcarddomain'], 'type' => 'yesno', 'yesno_var' => $iswildcarddomain ), 'isemaildomain' => array( 'visible' => ((( $result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2' ) && $result['parentdomainid'] != '0') ? true : false), 'label' => 'Emaildomain', 'type' => 'yesno', 'yesno_var' => $isemaildomain ), 'ssl_redirect' => array( 'visible' => ($settings['system']['use_ssl'] == '1' ? true : false), 'label' => 'SSL Redirect', 'type' => 'yesno', 'yesno_var' => $ssl_redirect ), 'openbasedir_path' => array( 'label' => $lng['domain']['openbasedirpath'], 'type' => 'select', 'select_var' => $openbasedir ) ) ) ) ) );