|
|
@ -14,15 +14,15 @@ class Test extends CI_Controller
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// https://cht.mycht.cn/info.php/test/feedback/?tag=%3C!--%40FEEDBACK_(.*)%40--%3E
|
|
|
|
public function feedback()
|
|
|
|
public function feedback()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$is_id = $this->input->get_post('is_id');
|
|
|
|
$tag = $this->input->get_post('tag');
|
|
|
|
$template_path = 'mobile_first/ch';
|
|
|
|
$template_path = 'mobile_first/ch';
|
|
|
|
|
|
|
|
|
|
|
|
$information = $this->Information_model->Detail($is_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$feedback_array = array();
|
|
|
|
$feedback_array = array();
|
|
|
|
preg_match_all('^<!--@FEEDBACK_(.*)@-->^', $information->ic_content, $feedback_array);
|
|
|
|
preg_match_all('^<!--@FEEDBACK_(.*)@-->^', $tag, $feedback_array);
|
|
|
|
if (!empty($feedback_array)) {
|
|
|
|
if (!empty($feedback_array)) {
|
|
|
|
foreach ($feedback_array[0] as $index => $tag_name) {
|
|
|
|
foreach ($feedback_array[0] as $index => $tag_name) {
|
|
|
|
$city_name = $feedback_array[1][$index];
|
|
|
|
$city_name = $feedback_array[1][$index];
|
|
|
|