From 510e6adcc6778baf8c1a881fcdf7bcc835913b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE?= Date: Thu, 18 Oct 2012 11:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=87=B4=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8500=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lastRSS.php | 6 +++--- lastRSS_setting.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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;