| | |
| | | exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
|
| | | }
|
| | | }
|
| | | exec("chmod -R +r ".$error_page_path);
|
| | | exec("chmod -R a+r ".$error_page_path);
|
| | | }
|
| | |
|
| | | // copy the standard index page
|
| | |
| | | exec("cp /usr/local/ispconfig/server/conf/index/.htaccess ".escapeshellcmd($data["new"]["document_root"])."/web/");
|
| | | }
|
| | | }
|
| | | exec("chmod +r ".escapeshellcmd($data["new"]["document_root"])."/web");
|
| | | exec("chmod -R a+r ".escapeshellcmd($data["new"]["document_root"])."/web/");
|
| | | }
|
| | |
|
| | | // Create group and user, if not exist
|
| | |
| | | $rewrite_rules[] = array( 'rewrite_domain' => $data["new"]["domain"],
|
| | | 'rewrite_type' => $data["new"]["redirect_type"],
|
| | | 'rewrite_target' => $data["new"]["redirect_path"]);
|
| | | |
| | | switch($data["new"]["subdomain"]) {
|
| | | case 'www':
|
| | | $rewrite_rules[] = array( 'rewrite_domain' => 'www.'.$data["new"]["domain"],
|
| | | 'rewrite_type' => $data["new"]["redirect_type"],
|
| | | 'rewrite_target' => $data["new"]["redirect_path"]);
|
| | | break;
|
| | | case '*':
|
| | | $rewrite_rules[] = array( 'rewrite_domain' => '*'.$data["new"]["domain"],
|
| | | 'rewrite_type' => $data["new"]["redirect_type"],
|
| | | 'rewrite_target' => $data["new"]["redirect_path"]);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | // get alias domains (co-domains and subdomains)
|
| | |
| | | $rewrite_rules[] = array( 'rewrite_domain' => $alias["domain"],
|
| | | 'rewrite_type' => $alias["redirect_type"],
|
| | | 'rewrite_target' => $alias["redirect_path"]);
|
| | | switch($alias["subdomain"]) {
|
| | | case 'www':
|
| | | $rewrite_rules[] = array( 'rewrite_domain' => 'www.'.$alias["domain"],
|
| | | 'rewrite_type' => $alias["redirect_type"],
|
| | | 'rewrite_target' => $alias["redirect_path"]);
|
| | | break;
|
| | | case '*':
|
| | | $rewrite_rules[] = array( 'rewrite_domain' => '*'.$alias["domain"],
|
| | | 'rewrite_type' => $alias["redirect_type"],
|
| | | 'rewrite_target' => $alias["redirect_path"]);
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|