temporary renamed is_errordocs field back to errordocs
| | |
| | | `cgi` char(1) NOT NULL default 'y', |
| | | `ssi` char(1) NOT NULL default 'y', |
| | | `suexec` char(1) NOT NULL default 'y', |
| | | `is_errordocs` tinyint(1) NOT NULL default '1', |
| | | `errordocs` tinyint(1) NOT NULL default '1', |
| | | `is_subdomainwww` tinyint(1) NOT NULL default '1', |
| | | `php` varchar(255) NOT NULL default 'y', |
| | | `redirect_type` varchar(255) default NULL, |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | 'is_errordocs' => array ( |
| | | 'errordocs' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => '1', |
| | |
| | | $wb["traffic_quota_txt"] = 'Traffic Quota'; |
| | | $wb["cgi_txt"] = 'CGI'; |
| | | $wb["ssi_txt"] = 'SSI'; |
| | | $wb["is_errordocs_txt"] = 'Own Error-Documents'; |
| | | $wb["errordocs_txt"] = 'Own Error-Documents'; |
| | | $wb["is_subdomainwww_txt"] = 'www. Subdomain'; |
| | | $wb["ssl_txt"] = 'SSL'; |
| | | $wb["suexec_txt"] = 'SuEXEC'; |
| | |
| | | <span class="">{tmpl_var name='suexec'}</span>
|
| | | </span>
|
| | | <span class="wf_oneField">
|
| | | <label for="is_errordocs" class="wf_preField">{tmpl_var name='is_errordocs_txt'}</label> |
| | | <span class="">{tmpl_var name='is_errordocs'}</span>
|
| | | <label for="errordocs" class="wf_preField">{tmpl_var name='errordocs_txt'}</label> |
| | | <span class="">{tmpl_var name='errordocs'}</span> |
| | | </span>
|
| | | <span class="wf_oneField">
|
| | | <label for="is_subdomainwww" class="wf_preField">{tmpl_var name='is_subdomainwww_txt'}</label>
|
| | |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
| | | <!-- (en) Add your meta data here -->
|
| | | <!-- (de) Fuegen Sie hier ihre Meta-Daten ein -->
|
| | | <link href="/themes/default/css/central.css" rel="stylesheet" type="text/css"/>
|
| | | <link href="themes/default/css/central.css" rel="stylesheet" type="text/css"/> |
| | | <!--[if lte IE 7]>
|
| | | <link href="/themes/default/css/patches/central.css" rel="stylesheet" type="text/css" />
|
| | | <link href="themes/default/css/patches/central.css" rel="stylesheet" type="text/css" /> |
| | | <![endif]-->
|
| | |
|
| | | <script src="/js/yui/yahoo/yahoo-min.js"></script>
|
| | | <script src="/js/yui/connection/connection-min.js"></script>
|
| | | <script src="/js/scrigo.js"></script>
|
| | | <script src="/js/wforms.js"></script>
|
| | | <script src="js/yui/yahoo/yahoo-min.js"></script> |
| | | <script src="js/yui/connection/connection-min.js"></script> |
| | | <script src="js/scrigo.js"></script> |
| | | <script src="js/wforms.js"></script> |
| | |
|
| | | </head>
|
| | | <body onLoad="loadInitContent()">
|
| | |
| | | ServerAdmin webmaster@<tmpl_var name='domain'> |
| | | |
| | | ErrorLog <tmpl_var name='document_root'>/log/error.log |
| | | <tmpl_if name='is_errordocs'> |
| | | <tmpl_if name='errordocs'> |
| | | |
| | | ErrorDocument 400 /error/invalidSyntax.html |
| | | ErrorDocument 401 /error/authorizationRequired.html |
| | |
| | | |
| | | // Check if the directories are there and create them if nescessary. |
| | | if(!is_dir($data["new"]["document_root"]."/web")) exec("mkdir -p ".$data["new"]["document_root"]."/web"); |
| | | if(!is_dir($data["new"]["document_root"]."/web/error") and $data["new"]["is_errordocs"]) exec("mkdir -p ".$data["new"]["document_root"]."/web/error"); |
| | | if(!is_dir($data["new"]["document_root"]."/web/error") and $data["new"]["errordocs"]) exec("mkdir -p ".$data["new"]["document_root"]."/web/error"); |
| | | //if(!is_dir($data["new"]["document_root"]."/log")) exec("mkdir -p ".$data["new"]["document_root"]."/log"); |
| | | if(!is_dir($data["new"]["document_root"]."/ssl")) exec("mkdir -p ".$data["new"]["document_root"]."/ssl"); |
| | | if(!is_dir($data["new"]["document_root"]."/cgi-bin")) exec("mkdir -p ".$data["new"]["document_root"]."/cgi-bin"); |
| | |
| | | |
| | | if($this->action == 'insert' && $data["new"]["type"] == 'vhost') { |
| | | // Copy the error pages |
| | | if($data["new"]["is_errordocs"]){ |
| | | if($data["new"]["errordocs"]){ |
| | | $error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/"; |
| | | exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path); |
| | | exec("chmod -R +r ".$error_page_path); |