function arc_un_static($aid = 0, $addno = 0, $needwri = 1, $clearold = 0) { global $db, $tblprefix, $arc, $archivecircle, $timestamp; if ($aid) { $arc->arcid($aid); } if (empty($arc->aid)) { return false; } $filepre = $arc->filepre($addno); $clearold && m_unlink($filepre); arc_blank($arc->aid, $addno, M_ROOT . m_parseurl($filepre, array('page' => 1)), 1); //强制将初始文件写入 if ($needwri) { $arc->update_needstatic($addno, 1); } return true; }
function set_arcurl() { //初始化文件的静态链接 global $arccustomurl; $this->basic_data(); $arcurl = arc_format($this->archive); for ($i = 0; $i <= $this->channel['addnum']; $i++) { arc_blank($this->aid, $i, M_ROOT . m_parseurl($arcurl, array('addno' => arc_addno($i, $this->channel['addnos']), 'page' => 1))); } }