function doupdateorder() { $channel_num = string::stripspecialcharacter(trim($this->post['order'])); $order = explode(",", $channel_num); $_ENV['channel']->updateorder($order); $this->cache->removecache('channel'); }
function dochangeorder() { $link_num = string::stripspecialcharacter(trim($this->post['order'])); $order = explode(",", $link_num); $_ENV['friendlink']->updateorder($order); $this->cache->removecache('data_' . $GLOBALS['theme'] . '_index'); }
function dorename() { $title = string::hiconv(trim($this->post['newname'])); $title = string::substring(string::stripspecialcharacter($title), 0, 80); if ($title == '') { echo "-1"; } else { if ($this->db->fetch_by_field('doc', 'title', $title)) { echo "-2"; } elseif ($_ENV['doc']->change_name($this->post['did'], $title)) { if (1 == $this->setting['cloud_search']) { // 编辑标题 通知云搜索 $_ENV['search']->cloud_change(array('dids' => $this->post['did'], 'mode' => '2')); } echo "1"; } else { echo "0"; } } $this->cache->removecache('data_' . $GLOBALS['theme'] . '_index'); }