diff --git a/src/admin/inc/inc_batchup.php b/src/admin/inc/inc_batchup.php index d8558f95..4d88a27a 100644 --- a/src/admin/inc/inc_batchup.php +++ b/src/admin/inc/inc_batchup.php @@ -93,6 +93,11 @@ function DelArc($aid, $type = 'ON', $onlyfile = FALSE, $recycle = 0) $filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; if (@is_file($filenameh)) @unlink($filenameh); } + if ($dsql->IsTable('#@__search_sync')) { + $intime = time(); + $insql = "INSERT INTO `#@__search_sync` (`aid`, `add_at`) VALUES ({$aid}, $intime)"; + $dsql->ExecuteNoneQuery($insql); + } if (empty($arcRow['money'])) $arcRow['money'] = 0; if (empty($arcRow['ismake'])) $arcRow['ismake'] = 1; if (empty($arcRow['arcrank'])) $arcRow['arcrank'] = 0; diff --git a/src/install/update.txt b/src/install/update.txt index 4bce295d..beb011c3 100644 --- a/src/install/update.txt +++ b/src/install/update.txt @@ -135,4 +135,12 @@ DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_port'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_user'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_pwd'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_root'; -DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_mkdir'; \ No newline at end of file +DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_mkdir'; +CREATE TABLE `#@__search_sync` ( + `id` int unsigned NOT NULL auto_increment, + `aid` int NULL DEFAULT NULL, + `sync_status` tinyint NULL DEFAULT 0, + `add_at` int NULL DEFAULT NULL, + `update_at` int NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) TYPE = MyISAM; \ No newline at end of file