Changeset 2664
- Timestamp:
- 03/04/10 16:10:05 (5 months ago)
- Location:
- alternc/trunk
- Files:
-
- 2 modified
-
bureau/class/m_dom.php (modified) (2 diffs)
-
src/mem_add (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/class/m_dom.php
r2562 r2664 180 180 */ 181 181 function add_domain($domain,$dns,$noerase=0,$force=0) { 182 global $db,$err,$quota,$classes,$L_MX,$L_FQDN,$tld,$cuid ;182 global $db,$err,$quota,$classes,$L_MX,$L_FQDN,$tld,$cuid,$bro; 183 183 $err->log("dom","add_domain",$domain); 184 184 $mx="1"; … … 259 259 260 260 // Creation du repertoire dans www 261 global $bro;262 261 $dest_root = $bro->get_userid_root($cuid); 263 $dest_www = $dest_root . '/www'; 264 $dest_www_domain = $dest_www . '/' . $domain; 265 266 if (! is_dir($dest_www)) { 267 mkdir($dest_www); 268 } 269 270 if (! is_dir($dest_www_domain)) { 271 mkdir($dest_www_domain); 262 $domshort=str_replace("-","",str_replace(".","",$domain)); 263 264 if (! is_dir($dest_root . "/". $domshort)) { 265 mkdir($dest_root . "/". $domshort); 272 266 } 273 267 274 268 // Creation des 3 sous-domaines par défaut : Vide, www et mail 275 269 $this->set_sub_domain($domain, '', $this->type_url, 'add', 'http://www.'.$domain); 276 $this->set_sub_domain($domain, 'www', $this->type_local, 'add', '/ www/' . $domain);270 $this->set_sub_domain($domain, 'www', $this->type_local, 'add', '/'. $domshort); 277 271 $this->set_sub_domain($domain, 'mail', $this->type_webmail, 'add', ''); 278 272 // DEPENDANCE : -
alternc/trunk/src/mem_add
r2448 r2664 28 28 my $PTH="/var/alternc/html/".substr($name,0,1)."/".$name; 29 29 30 my @create_paths = ($PTH , $PTH . '/www', $PTH . '/stats', $PTH . '/backups');30 my @create_paths = ($PTH); 31 31 32 32 for my $p (@create_paths) {
