root/trunk/gui/admin/migration.php

Revision 1413, 1.5 kB (checked in by scitech, 40 minutes ago)

Add support for alias subdomain mail (part II)

Line 
1 <?php
2 /**
3  * ispCP ω (OMEGA) a Virtual Hosting Control System
4  *
5  * @copyright     2001-2006 by moleSoftware GmbH
6  * @copyright     2006-2008 by ispCP | http://isp-control.net
7  * @version     SVN: $Id$
8  * @link         http://isp-control.net
9  * @author         ispCP Team
10  *
11  * @license
12  *   This program is free software; you can redistribute it and/or modify it under
13  *   the terms of the MPL General Public License as published by the Free Software
14  *   Foundation; either version 1.1 of the License, or (at your option) any later
15  *   version.
16  *   You should have received a copy of the MPL Mozilla Public License along with
17  *   this program; if not, write to the Open Source Initiative (OSI)
18  *   http://opensource.org | osi@opensource.org
19  */
20
21 require '../include/ispcp-lib.php';
22
23 check_login(__FILE__);
24 redirect_to_level_page();
25
26 $query = "
27     update
28         domain
29     set
30         domain_status = 'toadd'
31 ";
32
33 $rs = execute_query($sql, $query);
34 print "Domains updated";
35
36 $query = "
37     update
38         domain_aliasses
39     set
40         alias_status = 'toadd'
41 ";
42
43 $rs = execute_query($sql, $query);
44 print "Domain aliases updated";
45
46 $query = "
47     update
48         subdomain
49     set
50         subdomain_status = 'toadd'
51 ";
52
53 $rs = execute_query($sql, $query);
54 print "Subdomains updated";
55
56 $query = "
57     update
58         subdomain_alias
59     set
60         subdomain_alias_status = 'toadd'
61 ";
62
63 $rs = execute_query($sql, $query);
64 print "Subdomains alias updated";
65
66 $query = "
67     update
68         mail_users
69     set
70         status = 'toadd'
71 ";
72
73 $rs = execute_query($sql, $query);
74 print "Emails updated";
75
76 ?>
Note: See TracBrowser for help on using the browser.