|
|
|
@ -211,41 +211,42 @@ class Welcome extends CI_Controller {
|
|
|
|
|
echo 'nothing transform to https';
|
|
|
|
|
} else {
|
|
|
|
|
foreach ($data['all_information'] as $item) {
|
|
|
|
|
echo $item->ic_url.' | '.$item->ic_title.'<br/>';
|
|
|
|
|
|
|
|
|
|
// if (empty($item->ic_url) || empty($item->ic_type) ||
|
|
|
|
|
// empty($item->ic_seo_keywords) || empty($item->ic_seo_title) || empty($item->ic_seo_description)) {
|
|
|
|
|
// echo $item->ic_title.' <span style="color: red;">has null value too many.</span> <br/>';
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
if (empty($item->ic_url) || empty($item->ic_type) ||
|
|
|
|
|
empty($item->ic_seo_keywords) || empty($item->ic_seo_title) || empty($item->ic_seo_description)) {
|
|
|
|
|
echo '<span style="color: red;">'.$item->ic_title .' has null value too many.</span> <br/>';
|
|
|
|
|
continue;
|
|
|
|
|
} else {
|
|
|
|
|
echo $item->ic_url.' | '.$item->ic_title.'<br/>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $this->Logs_model->backup($item->is_id, $item->ic_content);
|
|
|
|
|
// $item->ic_content=str_replace($http_host, $https_host, $item->ic_content);
|
|
|
|
|
// $this->InfoContents_model->Update(
|
|
|
|
|
// $item->ic_id,
|
|
|
|
|
// $item->ic_url,
|
|
|
|
|
// $item->ic_url_title,
|
|
|
|
|
// $item->ic_type,
|
|
|
|
|
// $item->ic_title,
|
|
|
|
|
// $item->ic_content,
|
|
|
|
|
// $item->ic_summary,
|
|
|
|
|
// $item->ic_seo_title,
|
|
|
|
|
// $item->ic_seo_description,
|
|
|
|
|
// $item->ic_seo_keywords,
|
|
|
|
|
// $item->ic_show_bread_crumbs,
|
|
|
|
|
// $item->ic_status,
|
|
|
|
|
// $item->ic_template,
|
|
|
|
|
// $item->ic_photo,
|
|
|
|
|
// $item->ic_photo_width,
|
|
|
|
|
// $item->ic_photo_height,
|
|
|
|
|
// $item->ic_recommend_tours,
|
|
|
|
|
// $item->ic_recommend_packages,
|
|
|
|
|
// $item->ic_ht_area_id,
|
|
|
|
|
// $item->ic_ht_area_type,
|
|
|
|
|
// $item->ic_ht_product_id,
|
|
|
|
|
// $item->ic_ht_product_type,
|
|
|
|
|
// $item->ic_author
|
|
|
|
|
// );
|
|
|
|
|
$this->Logs_model->backup($item->is_id, $item->ic_content);
|
|
|
|
|
$item->ic_content=str_replace($http_host, $https_host, $item->ic_content);
|
|
|
|
|
$this->InfoContents_model->Update(
|
|
|
|
|
$item->ic_id,
|
|
|
|
|
$item->ic_url,
|
|
|
|
|
$item->ic_url_title,
|
|
|
|
|
$item->ic_type,
|
|
|
|
|
$item->ic_title,
|
|
|
|
|
$item->ic_content,
|
|
|
|
|
$item->ic_summary,
|
|
|
|
|
$item->ic_seo_title,
|
|
|
|
|
$item->ic_seo_description,
|
|
|
|
|
$item->ic_seo_keywords,
|
|
|
|
|
$item->ic_show_bread_crumbs,
|
|
|
|
|
$item->ic_status,
|
|
|
|
|
$item->ic_template,
|
|
|
|
|
$item->ic_photo,
|
|
|
|
|
$item->ic_photo_width,
|
|
|
|
|
$item->ic_photo_height,
|
|
|
|
|
$item->ic_recommend_tours,
|
|
|
|
|
$item->ic_recommend_packages,
|
|
|
|
|
$item->ic_ht_area_id,
|
|
|
|
|
$item->ic_ht_area_type,
|
|
|
|
|
$item->ic_ht_product_id,
|
|
|
|
|
$item->ic_ht_product_type,
|
|
|
|
|
$item->ic_author
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|