diff --git a/src/admin/templets/friendlink_type.htm b/src/admin/templets/friendlink_type.htm
index de15dfab..74bf1178 100644
--- a/src/admin/templets/friendlink_type.htm
+++ b/src/admin/templets/friendlink_type.htm
@@ -17,7 +17,7 @@
友情链接管理
增加链接
网站类型管理
- 外部申请表单
+ 外部申请表单
diff --git a/src/apps/flink.php b/src/apps/flink.php
index 11f9141d..94c30986 100755
--- a/src/apps/flink.php
+++ b/src/apps/flink.php
@@ -1,4 +1,5 @@
ExecuteNoneQuery($query);
- ShowMsg('成功增加一个链接,但需要审核后才能显示!', '-1', 1);
+ ShowMsg('成功增加一个链接,但需要审核后才能显示!', 'flink.php');
+ exit;
+} elseif ($dopost == 'add') {
+ //显示模板(简单PHP文件)
+ include_once(DEDETEMPLATE . '/plus/flink-add.htm');
+ exit;
}
//显示模板简单PHP文件
-include_once(DEDETEMPLATE.'/plus/flink-list.htm');
\ No newline at end of file
+include_once(DEDETEMPLATE . '/plus/flink-list.htm');
diff --git a/src/apps/flink_add.php b/src/apps/flink_add.php
deleted file mode 100755
index af7a57b2..00000000
--- a/src/apps/flink_add.php
+++ /dev/null
@@ -1,13 +0,0 @@
-M_LoginID;
-$time = time();
-$content = $memberID.'|'.$time;
-$file = DEDEDATA.'/cache/vote_'.$aid.'_'.$member->M_ID.'.inc'; //存放会员投票记录的缓存文件
$loginurl = $cfg_basehost."/user";
$ENV_GOBACK_URL = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
if (empty($dopost)) $dopost = '';
@@ -37,7 +34,6 @@ if ($row['isallow'] == 1) {
}
}
if ($dopost == 'send') {
-
if (!empty($voteitem)) {
$rsmsg = "
您方才的投票状态:".$vo->SaveVote($voteitem)."
";
} else {
diff --git a/src/install/sql-dfdata.txt b/src/install/sql-dfdata.txt
index 4ad28d88..d99565a8 100755
--- a/src/install/sql-dfdata.txt
+++ b/src/install/sql-dfdata.txt
@@ -591,7 +591,7 @@ INSERT INTO `#@__sys_set` VALUES('1','nature','性格外向,性格内向,活泼
('2','language','普通话,上海话,广东话,英语,日语,韩语,法语,意大利语,德语,西班牙语,俄语,阿拉伯语');
-INSERT INTO `#@__vote` VALUES('1','您是从哪儿得知本站的','1266336000','1584547200','0','0','1','1','0','0','朋友介绍rn门户网站的搜索引擎rnGoogle或百度搜索rn别的网站上的链接rn其它途径rn');
+INSERT INTO `#@__vote` VALUES('1','您是从哪儿得知本站的','1266336000','1584547200','0','0','1','1','0','0','朋友介绍门户网站的搜索引擎Google或百度搜索别的网站上的链接其它途径');
INSERT INTO `#@__sys_enum` VALUES('139','cms制作','503','vocation','503','0'),
('39','租房','1','house','0','1'),
diff --git a/src/system/dedevote.class.php b/src/system/dedevote.class.php
index 50c01297..acb40385 100755
--- a/src/system/dedevote.class.php
+++ b/src/system/dedevote.class.php
@@ -147,7 +147,7 @@ class DedeVote
*/
function SaveVote($voteitem)
{
- global $ENV_GOBACK_URL, $file, $memberID, $row, $content;
+ global $ENV_GOBACK_URL, $memberID, $row;
if (empty($voteitem)) {
return '您没选中任何项目';
}
@@ -155,7 +155,6 @@ class DedeVote
//检查投票是否已过期
$nowtime = time();
if ($nowtime > $this->VoteInfos['endtime']) {
-
ShowMsg('投票已经过期', $ENV_GOBACK_URL);
exit();
}
@@ -176,7 +175,7 @@ class DedeVote
}
//检查用户是否已投过票
$nowtime = time();
- $VoteMem = $this->dsql->GetOne("SELECT * FROM #@__vote_member WHERE voteid = '$this->VoteID' and userid='$memberID'");
+ $VoteMem = $this->dsql->GetOne("SELECT * FROM `#@__vote_member` WHERE voteid = '$this->VoteID' and userid='$memberID'");
if (!empty($memberID)) {
if (isset($VoteMem['id'])) {
$voteday = date("Y-m-d", $VoteMem['uptime']);
@@ -186,14 +185,14 @@ class DedeVote
ShowMsg('在'.$row['spec'].'天内不能重复投票', $ENV_GOBACK_URL);
exit();
} else {
- $query = "UPDATE #@__vote_member SET uptime='$nowtime' WHERE voteid='$this->VoteID' AND userid='$memberID'";
+ $query = "UPDATE `#@__vote_member` SET uptime='$nowtime' WHERE voteid='$this->VoteID' AND userid='$memberID'";
if ($this->dsql->ExecuteNoneQuery($query) == false) {
ShowMsg('插入数据过程中出现错误', $ENV_GOBACK_URL);
exit();
}
}
} else {
- $query = "INSERT INTO #@__vote_member(id,voteid,userid,uptime) VALUES('','$this->VoteID','$memberID','$nowtime')";
+ $query = "INSERT INTO `#@__vote_member`(id,voteid,userid,uptime) VALUES('','$this->VoteID','$memberID','$nowtime')";
if ($this->dsql->ExecuteNoneQuery($query) == false) {
ShowMsg('插入数据过程中出现错误', $ENV_GOBACK_URL);
exit();
diff --git a/src/system/taglib/loop.lib.php b/src/system/taglib/loop.lib.php
index 240dfd1b..996e5484 100755
--- a/src/system/taglib/loop.lib.php
+++ b/src/system/taglib/loop.lib.php
@@ -9,7 +9,6 @@ if (!defined('DEDEINC')) exit('dedebiz');
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
-require_once(DEDEINC.'/dedevote.class.php');
function lib_loop(&$ctag, &$refObj)
{
global $dsql;
diff --git a/src/theme/plus/flink-list.htm b/src/theme/plus/flink-list.htm
index 6678c5e1..5d57a70e 100644
--- a/src/theme/plus/flink-list.htm
+++ b/src/theme/plus/flink-list.htm
@@ -20,12 +20,12 @@
- 申请链接
+ 申请链接
-
+
webname,$titlelen);
if($dbrow->logo=="")
- $revalue.= "- $wtitle
";
+ $revalue.= "- $wtitle
";
else
- $revalue.= "
";
+ $revalue.= "
";
}
if(!$dbrow) break;
}