19 include_once (
'Class.DbObj.php');
20 include_once (
'Class.QueryDb.php');
21 include_once (
'Class.Pop.php');
26 var
$Class =
'$Id: Class.DomainAlias.php,v 1.4 2005/10/05 16:28:42 eric Exp $';
43 create table domainalias(
44 iddomainalias int not null,
45 iddomain int not null,
46 primary key (iddomainalias),
47 name varchar(100) unique,
50 create index domainalias_idx on domainalias(iddomainalias);
51 create sequence seq_iddomainalias start 10;
56 if ($this->iddomainalias ==
"") {
59 $this->iddomainalias = $arr[
"nextval"];
61 $this->name = strtolower($this->name);
63 $this->uptime = time();
64 $this->log->info(
"Adding domain alias {$this->name} [alias:{$this->iddomainalias}|domain:{$this->iddomain}]");
69 if ($this->removed != 1) $this->log->info(
"Modifying domain alias {$this->name} [alias:{$this->iddomainalias}|domain:{$this->iddomain}]");
70 $this->name = strtolower($this->name);
71 $this->uptime = time();
80 $query->basic_elem->sup_where = array(
84 $this->qlist =
$query->Query();
85 $this->qcount =
$query->nb;
93 $this->log->info(
"Deleting domain alias {$this->name} [alias:{$this->iddomainalias}|domain:{$this->iddomain}]");