|
|
@ -25,6 +25,10 @@ class Welcome extends CI_Controller {
|
|
|
|
$data['lastEditList'] = $this->Information_model->get_last_edit_list();
|
|
|
|
$data['lastEditList'] = $this->Information_model->get_last_edit_list();
|
|
|
|
$data['last_city_list'] = $this->Area_model->get_last_edit_city();
|
|
|
|
$data['last_city_list'] = $this->Area_model->get_last_edit_city();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->config->item('site_code') == 'pgr') {
|
|
|
|
|
|
|
|
$data['countryList'] = $this->Area_model->get_country_list_for_site("'589','645'");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->load->view('bootstrap/header', $data);
|
|
|
|
$this->load->view('bootstrap/header', $data);
|
|
|
|
$this->load->view('bootstrap/welcome');
|
|
|
|
$this->load->view('bootstrap/welcome');
|
|
|
|
$this->load->view('bootstrap/footer');
|
|
|
|
$this->load->view('bootstrap/footer');
|
|
|
@ -192,8 +196,8 @@ class Welcome extends CI_Controller {
|
|
|
|
->set_content_type('application/json')
|
|
|
|
->set_content_type('application/json')
|
|
|
|
->set_output(json_encode($obj));
|
|
|
|
->set_output(json_encode($obj));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//批量替换二级域名,如图片或者data域名
|
|
|
|
//批量替换二级域名,如图片或者data域名
|
|
|
|
function replace_hostname($topnum){
|
|
|
|
function replace_hostname($topnum){
|
|
|
|
$data=array();
|
|
|
|
$data=array();
|
|
|
@ -203,7 +207,7 @@ class Welcome extends CI_Controller {
|
|
|
|
if($data['all_information']){
|
|
|
|
if($data['all_information']){
|
|
|
|
foreach($data['all_information'] as $item){
|
|
|
|
foreach($data['all_information'] as $item){
|
|
|
|
echo $item->ic_url.'<br/>';
|
|
|
|
echo $item->ic_url.'<br/>';
|
|
|
|
$item->ic_content=str_replace($find_host, $new_host,$item->ic_content);
|
|
|
|
$item->ic_content=str_replace($find_host, $new_host,$item->ic_content);
|
|
|
|
$this->InfoContents_model->Update(
|
|
|
|
$this->InfoContents_model->Update(
|
|
|
|
$item->ic_id,
|
|
|
|
$item->ic_id,
|
|
|
|
$item->ic_url,
|
|
|
|
$item->ic_url,
|
|
|
|