|
@@ -14,7 +14,7 @@ $callback_log = array(
|
|
'callback_date' => date('Y-m-d H:i:s'),
|
|
'callback_date' => date('Y-m-d H:i:s'),
|
|
'callback_username' => $username,
|
|
'callback_username' => $username,
|
|
'callback_action' => $status,
|
|
'callback_action' => $status,
|
|
- 'callback_comments' => post('comments'),
|
|
|
|
|
|
+ 'callback_comments' => post('comments'), // domain name
|
|
'callback_client_id' => 0,
|
|
'callback_client_id' => 0,
|
|
'callback_raw' => json_encode(post())
|
|
'callback_raw' => json_encode(post())
|
|
);
|
|
);
|
|
@@ -22,9 +22,7 @@ $callback_log = array(
|
|
// 账号信息
|
|
// 账号信息
|
|
$AccountInfo = $DB->find('account', '*', array('account_username' => $username));
|
|
$AccountInfo = $DB->find('account', '*', array('account_username' => $username));
|
|
if ($AccountInfo) {
|
|
if ($AccountInfo) {
|
|
- // 禁用账号
|
|
|
|
- // $res = $DB->update('account', array('account_status' => '2'), array('account_id' => $AccountInfo['account_id']));
|
|
|
|
-
|
|
|
|
|
|
+ $account_id = $AccountInfo['account_id'];
|
|
// 查找客户信息
|
|
// 查找客户信息
|
|
$ClientInfo = $DB->find('clients', 'client_email, client_fname', array('client_id' => $AccountInfo['account_client_id']));
|
|
$ClientInfo = $DB->find('clients', 'client_email, client_fname', array('client_id' => $AccountInfo['account_client_id']));
|
|
if ($ClientInfo) {
|
|
if ($ClientInfo) {
|
|
@@ -50,12 +48,19 @@ if ($AccountInfo) {
|
|
'account_client_id' => 0,
|
|
'account_client_id' => 0,
|
|
'account_sql' => 'sql***'
|
|
'account_sql' => 'sql***'
|
|
);
|
|
);
|
|
- $DB->insert('account', $AccountInfo);
|
|
|
|
|
|
+ $account_id = $DB->insert('account', $AccountInfo);
|
|
|
|
|
|
$EmailTo = $SiteConfig['site_email'];
|
|
$EmailTo = $SiteConfig['site_email'];
|
|
$EmailToNickname = 'Administrator';
|
|
$EmailToNickname = 'Administrator';
|
|
$EmailContent = '<p>An unassigned hosting account has successfully added a new sub domain. The details are given bellow.</p>';
|
|
$EmailContent = '<p>An unassigned hosting account has successfully added a new sub domain. The details are given bellow.</p>';
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 同步到本地
|
|
|
|
+$DB->insert('account_domain', array(
|
|
|
|
+ 'domain_account_id' => $account_id,
|
|
|
|
+ 'domain_name' => $callback_log['callback_comments']
|
|
|
|
+));
|
|
|
|
+
|
|
$EmailDescription = '<p><pre>' . $callback_log['callback_comments'] . '</pre></p>
|
|
$EmailDescription = '<p><pre>' . $callback_log['callback_comments'] . '</pre></p>
|
|
<p>The new sub domain is now available for use.</p>';
|
|
<p>The new sub domain is now available for use.</p>';
|
|
|
|
|
|
@@ -74,6 +79,7 @@ $emails_log = array(
|
|
'email_body' => $email_body,
|
|
'email_body' => $email_body,
|
|
'email_read' => 0
|
|
'email_read' => 0
|
|
);
|
|
);
|
|
|
|
+
|
|
// print_r($emails_log);
|
|
// print_r($emails_log);
|
|
$DB->insert('emails', $emails_log);
|
|
$DB->insert('emails', $emails_log);
|
|
|
|
|