diff --git a/lastRSS.php b/lastRSS.php index 1f8e9ed..1d72318 100644 --- a/lastRSS.php +++ b/lastRSS.php @@ -1,7 +1,7 @@ query("INSERT INTO ".DB_PREFIX."rssfeeds (url, title) VALUES('$url', '$title')"); } elseif (!getTitle($url)) { - formMsg("RSS导入失败,RSS地址{$url}解析失败,请确定RSS地址及XML文件格式正确",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS导入失败,RSS地址{$url}解析失败,请确定RSS地址及XML文件格式正确"); } else { - formMsg("RSS导入失败,数据库中已存在{$url}",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS导入失败,数据库中已存在{$url}"); } } function deleteFeed($id){ diff --git a/lastRSS_setting.php b/lastRSS_setting.php index 58c21c1..3c0145a 100644 --- a/lastRSS_setting.php +++ b/lastRSS_setting.php @@ -106,10 +106,10 @@ if ($do == 'del') { updateFeed($id, $url, $title); header("Location:plugin.php?plugin=lastRSS&setting=true"); } else { - formMsg("RSS修改失败,插件无法获取{$url}的标题,请自行添加标题再添加该RSS",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS修改失败,插件无法获取{$url}的标题,请自行添加标题再添加该RSS"); } } else { - formMsg("RSS修改失败,RSS地址不能为空",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS修改失败,RSS地址不能为空"); } } elseif ($do == 'add') { $url = isset($_POST['url']) ? trim($_POST['url']) : ''; @@ -121,10 +121,10 @@ if ($do == 'del') { updateLogs(); header("Location:plugin.php?plugin=lastRSS&setting=true"); } else { - formMsg("RSS导入失败,插件无法获取{$url}的标题,请自行添加标题再导入该RSS",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS导入失败,插件无法获取{$url}的标题,请自行添加标题再导入该RSS"); } } else { - formMsg("RSS导入失败,RSS地址不能为空",'./plugin.php?plugin=lastRSS',0); + emMsg("RSS导入失败,RSS地址不能为空"); } } elseif ($do == 'config') { $lastRSS_cache_time = isset($_POST['lastRSS_cache_time']) ? intval($_POST['lastRSS_cache_time']) : 0;