更新作者平台地址

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
parent cf546541d9
commit a6da9968b8

@ -563,14 +563,14 @@ class Author extends CI_Controller {
if ($t_status == 'edit' && $this->Infotasks_model->reviwed($t_id, $t_status)) {
if (!empty($author)) {
$this->InfoSMS_model->add('task', $t_id, $t_a_id, $admin_info['OPI_Code'], 'Your proposal has been approved');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been approved.', 'Your proposal has been approvedPlease log in at <a href="http://a.cdnch.com/author.php" target="_blank">http://a.cdnch.com/author.php</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been approved.', 'Your proposal has been approvedPlease log in at <a href="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>');
}
$data[] = array('name' => 'ok', 'value' => 'success');
} elseif ($t_status == 'refuse' && $this->Infotasks_model->reviwed($t_id, $t_status)) {
//如果指定用户则发送邮件通知
if (!empty($author)) {
$this->InfoSMS_model->add('task', $t_id, $t_a_id, $admin_info['OPI_Code'], $refuse_msg);
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been rejected.', 'Your proposal has been rejected: ' . $refuse_msg . ' Please log in at <a href="http://a.cdnch.com/author.php" target="_blank">http://a.cdnch.com/author.php</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been rejected.', 'Your proposal has been rejected: ' . $refuse_msg . ' Please log in at <a href="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>');
}
$data[] = array('name' => 'no', 'value' => 'success');
}
@ -746,7 +746,7 @@ class Author extends CI_Controller {
$this->Infoauthors_model->update_site($a_id, $this->input->post('a_sitecode'));
$this->Infoauthors_model->reviwed($a_id, $this->input->post('a_active'));
$admin_info = $this->session->userdata('session_admin');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $this->input->post('edit_a_name'), $this->input->post('edit_a_email'), 'Sign Up For China Highlights Online Writers Platform', 'Welcom to China Highlights Online Writers Platform:<br><a href="' . site_url('/') . '">China Highlights Online Writers Platform</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $this->input->post('edit_a_name'), $this->input->post('edit_a_email'), 'Sign Up For China Highlights Online Writers Platform', 'Welcom to China Highlights Online Writers Platform:<br><a href="http://author.mycht.cn">China Highlights Online Writers Platform</a>');
$data[] = array('name' => 'ok', 'value' => $this->lang->line('author_review_submit'));
echo json_encode($data);
}

@ -49,6 +49,6 @@ $lang['script_success_save']="Your script has been saved successfully.";
$lang['author_email_message_subject']='Message,%s';
$lang['author_email_message_body']='You have a new message on the China Highlights Content Management System. Please log in at <a href="http://i.chtcdn.com/info.php/author" target="_blank">http://i.chtcdn.com/info.php/author</a>';
$lang['author_email_message_body']='You have a new message on the China Highlights Content Management System. Please log in at <a href="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>';

@ -204,7 +204,7 @@ class Infoauthors_model extends CI_Model {
. " ( \n"
. " ?, ?, ?, ?, ?, ?, ?, ?, 0 \n"
. " ) ";
$query = $this->HT->query($sql, array($fromName, $fromEmail, $toName, $toEmail, $subject, $body, 'Author', 'http://a.chtcdn.com'));
$query = $this->HT->query($sql, array($fromName, $fromEmail, $toName, $toEmail, $subject, $body, 'Author', 'http://author.mycht.cn'));
return $query;
}

@ -112,7 +112,7 @@ Van Hinsbergh</span>
</h3>
<p class="MsoNormal">
<span lang="EN-US">1. The user agrees to write/edit web
content for <a href="http://www.chinahighlights.com">www.chinahighlights.com</a> to the following standard. For more details see <a href="http://a.chtcdn.com/author.php/taskhall/notice/202003509">Freelancer
content for <a href="http://www.chinahighlights.com">www.chinahighlights.com</a> to the following standard. For more details see <a href="http://cht.mycht.cn/author.php/taskhall/notice/202003509">Freelancer
Article Requirements and Ratings</a>.</span>
</p>
<p class="MsoNormal">

@ -72,8 +72,8 @@ if (defined('ENVIRONMENT'))
* NO TRAILING SLASH!
*
*/
if ($_SERVER['HTTP_HOST']=='a.chtcdn.com') {
header('Location: http://a.cdnch.com/');exit;
if ($_SERVER['HTTP_HOST']=='a.chtcdn.com' || $_SERVER['HTTP_HOST']=='a.cdnch.com') {
header('Location: http://author.mycht.cn/');exit;
$application_folder = 'author';
}else{
$application_folder = 'application';

Loading…
Cancel
Save