Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
huangxuan258
whatsns内容付费问答系统
提交
b9b5fa06
whatsns内容付费问答系统
项目概览
huangxuan258
/
whatsns内容付费问答系统
2021-04-29 05:05:01同步失败
通知
3
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
whatsns内容付费问答系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b9b5fa06
编写于
7月 10, 2020
作者:
huangxuan258
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新fly响应式模板,增加文章和问题详情页面标签展示功能
上级
91494194
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
69 addition
and
13 deletion
+69
-13
application/views/responsive_fly/askcategory.php
application/views/responsive_fly/askcategory.php
+2
-0
application/views/responsive_fly/code.php
application/views/responsive_fly/code.php
+1
-1
application/views/responsive_fly/editor.php
application/views/responsive_fly/editor.php
+2
-2
application/views/responsive_fly/header.php
application/views/responsive_fly/header.php
+4
-3
application/views/responsive_fly/index.php
application/views/responsive_fly/index.php
+4
-1
application/views/responsive_fly/page.php
application/views/responsive_fly/page.php
+7
-1
application/views/responsive_fly/profile.php
application/views/responsive_fly/profile.php
+1
-1
application/views/responsive_fly/search_nav.php
application/views/responsive_fly/search_nav.php
+6
-0
application/views/responsive_fly/solve.php
application/views/responsive_fly/solve.php
+16
-1
application/views/responsive_fly/topicone.php
application/views/responsive_fly/topicone.php
+13
-0
static/responsive_fly/res/css/main.css
static/responsive_fly/res/css/main.css
+5
-0
system/helpers/public_helper.php
system/helpers/public_helper.php
+8
-3
未找到文件。
application/views/responsive_fly/askcategory.php
浏览文件 @
b9b5fa06
<!-- 公共头部-->
{template header}
<!-- 移动端搜索框-->
{template searchbox}
<!-- 首页导航 -->
{template index_nav}
...
...
application/views/responsive_fly/code.php
浏览文件 @
b9b5fa06
...
...
@@ -3,7 +3,7 @@
<div
class=
"layui-form-item"
>
<label
for=
"L_vercode"
class=
"layui-form-label"
>
验证码
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"code"
name=
"code"
value=
""
required
lay-verify=
"required"
placeholder=
"图片验证码"
autocomplete=
"off"
class=
"layui-input"
>
<input
type=
"text"
id=
"code"
name=
"code"
onkeydown=
"if(event.keyCode==13){event.keyCode=0;return false} "
value=
""
required
lay-verify=
"required"
placeholder=
"图片验证码"
autocomplete=
"off"
class=
"layui-input"
>
</div>
<div
class=
"layui-form-mid"
>
<span
style=
"color: #c00;"
><img
class=
"hand"
src=
"{url user/code}"
onclick=
"javascript:updatecode();"
id=
"verifycode"
><a
class=
"changecode"
href=
"javascript:updatecode();"
>
看不清?
</a></span>
...
...
application/views/responsive_fly/editor.php
浏览文件 @
b9b5fa06
...
...
@@ -18,7 +18,7 @@
{
if
$this
->
uri
->
segment
(
1
)
!=
'question'
}
{
eval
echo
replacewords
(
$topic
[
'describtion'
]);}
{
/
if
}
{
if
$user
[
'groupid'
]
==
1
||
$user
[
'uid'
]
==
$answer
[
'authorid'
]
&&
$this
->
uri
->
segment
(
2
)
==
'editanswer'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
}
{
$answer
[
'content'
]
}
{
/
if
}
{
if
$user
[
'groupid'
]
==
1
||
$user
[
'uid'
]
==
$answer
[
'authorid'
]
&&
$this
->
uri
->
segment
(
2
)
==
'editanswer'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
}
{
eval
echo
htmlspecialchars_decode
(
$answer
[
'content'
]);
}
{
/
if
}
{
/
if
}
</
textarea
>
...
...
@@ -50,7 +50,7 @@ editor.disable();
{
else
}
<
script
type
=
"text/javascript"
src
=
"
{
SITE_URL
}
static/js/neweditor/ueditor.config.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"
{
SITE_URL
}
static/js/neweditor/ueditor.all.js"
></
script
>
<
script
type
=
"text/plain"
id
=
"editor"
name
=
"content"
style
=
"width:100%;height:200px;"
>
{
if
$this
->
uri
->
segment
(
2
)
!=
'view'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
||
$this
->
uri
->
segment
(
2
)
==
'editxinzhi'
}{
if
$navtitle
==
'编辑问题'
}{
$question
[
'description'
]}
{
/
if
}{
if
$this
->
uri
->
segment
(
1
)
!=
'question'
}{
eval
echo
replacewords
(
$topic
[
'describtion'
]);}{
/
if
}{
if
$user
[
'groupid'
]
==
1
||
$user
[
'uid'
]
==
$answer
[
'authorid'
]
&&
$this
->
uri
->
segment
(
2
)
==
'editanswer'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
}{
$answer
[
'content'
]
}{
/
if
}{
/
if
}
</
script
>
<
script
type
=
"text/plain"
id
=
"editor"
name
=
"content"
style
=
"width:100%;height:200px;"
>
{
if
$this
->
uri
->
segment
(
2
)
!=
'view'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
||
$this
->
uri
->
segment
(
2
)
==
'editxinzhi'
}{
if
$navtitle
==
'编辑问题'
}{
$question
[
'description'
]}
{
/
if
}{
if
$this
->
uri
->
segment
(
1
)
!=
'question'
}{
eval
echo
replacewords
(
$topic
[
'describtion'
]);}{
/
if
}{
if
$user
[
'groupid'
]
==
1
||
$user
[
'uid'
]
==
$answer
[
'authorid'
]
&&
$this
->
uri
->
segment
(
2
)
==
'editanswer'
&&
$this
->
uri
->
segment
(
1
)
==
'question'
}{
eval
echo
htmlspecialchars_decode
(
$answer
[
'content'
]);
}{
/
if
}{
/
if
}
</
script
>
<
script
type
=
"text/javascript"
>
var
isueditor
=
1
;
var
editor
=
UE
.
getEditor
(
'editor'
,{
...
...
application/views/responsive_fly/header.php
浏览文件 @
b9b5fa06
{
template
meta
}
<
div
class
=
"fly-header layui-bg-black"
>
<
div
class
=
"layui-container"
>
<
a
class
=
"fly-logo"
href
=
"
{
SITE_URL
}
"
>
<
img
src
=
"
{
$setting
[
'site_logo'
]
}
"
alt
=
"
{
$setting
[
'site_name'
]
}
"
>
<
a
class
=
"fly-logo"
href
=
"
/
"
>
<
img
src
=
"
{
$setting
[
'site_logo'
]
}
"
alt
=
"
{
$setting
[
'site_name'
]
}
"
style
=
"width:130px;height:30px;"
>
</
a
>
<
ul
class
=
"layui-nav fly-nav layui-hide-xs"
>
<
li
class
=
"layui-nav-item {if
$regular
=='ask/index'}layui-this
{
/if
}
"
>
...
...
@@ -64,4 +64,5 @@
{
/
if
}
</
ul
>
</
div
>
</
div
>
\ No newline at end of file
</
div
>
application/views/responsive_fly/index.php
浏览文件 @
b9b5fa06
<!-- 公共头部-->
<!-- 公共头部-->
{template header}
<!-- 移动端搜索框-->
{template searchbox}
<!-- 首页导航 -->
{template index_nav}
...
...
application/views/responsive_fly/page.php
浏览文件 @
b9b5fa06
...
...
@@ -5,4 +5,10 @@
</
div
>
</
div
>
{
/
if
}
\ No newline at end of file
{
/
if
}
<
style
>
@
media
screen
and
(
max
-
width
:
768
px
)
.
laypage
-
main
a
,
.
laypage
-
main
span
{
display
:
inline
-
block
;
}
</
style
>
\ No newline at end of file
application/views/responsive_fly/profile.php
浏览文件 @
b9b5fa06
...
...
@@ -185,7 +185,7 @@
<span>
,即可使用QQ帐号登录{$setting['name']}
</span>
</li>
<!--{/if}-->
<!--{if $sinalogin}-->
<!--{if
!
$sinalogin}-->
<li
class=
"fly-msg"
>
<i
class=
"iconfont icon-weibo"
></i>
...
...
application/views/responsive_fly/search_nav.php
浏览文件 @
b9b5fa06
<style>
.fly-list
em
{
color
:
red
!important
;
font-style
:
normal
;
}
</style>
<div
class=
"fly-panel-title fly-filter"
>
<a
href=
"{url question/search}?word={$word}"
class=
"{if ROUTE_A=='question'}layui-this{/if}"
>
问题
</a>
<span
class=
"fly-mid"
></span>
...
...
application/views/responsive_fly/solve.php
浏览文件 @
b9b5fa06
...
...
@@ -77,11 +77,26 @@
<!--{/if}-->
</div>
</div>
{if $question['description']}
<div
class=
"detail-body photos"
>
{template question_content_header}
{eval echo
clearlinkref(htmlspecialchars_decode($question['description'])
);}
{eval echo
htmlspecialchars_decode($question['description']
);}
{template question_content_footer}
</div>
{/if}
<div
class=
"relativetags"
>
相关标签:
<!--{if $taglist}-->
<!--{loop $taglist $tag}-->
<a
href=
"{url tags/view/$tag['tagalias']}"
title=
"{$tag['tagname']}"
target=
"_blank"
class=
"project-tag-14"
>
<button
type=
"button"
class=
"layui-btn layui-btn-xs layui-btn-warm "
><i
class=
"layui-icon layui-icon-note"
></i>
{$tag['tagname']}
</button>
</a>
<!--{/loop}-->
<!--{/if}-->
</div>
</div>
<div
class=
"fly-panel detail-box"
id=
"flyReply"
>
...
...
application/views/responsive_fly/topicone.php
浏览文件 @
b9b5fa06
...
...
@@ -94,6 +94,19 @@
</div>
</div>
</div>
<div
class=
"relativetags"
>
相关标签:
<!--{if $taglist}-->
<!--{loop $taglist $tag}-->
<a
href=
"{url tags/view/$tag['tagalias']}"
title=
"{$tag['tagname']}"
target=
"_blank"
class=
"project-tag-14"
>
<button
type=
"button"
class=
"layui-btn layui-btn-xs layui-btn-warm "
><i
class=
"layui-icon layui-icon-note"
></i>
{$tag['tagname']}
</button>
</a>
<!--{/loop}-->
<!--{/if}-->
</div>
</div>
<div
class=
"fly-panel detail-box"
id=
"flyReply"
>
...
...
static/responsive_fly/res/css/main.css
浏览文件 @
b9b5fa06
...
...
@@ -688,4 +688,9 @@
}
.detail
ol
,
.detail
ul
{
padding-left
:
20px
;
}
/*相关标签*/
.relativetags
{
margin
:
10px
auto
;
font-size
:
13px
;
}
\ No newline at end of file
system/helpers/public_helper.php
浏览文件 @
b9b5fa06
...
...
@@ -1380,7 +1380,7 @@ function replacewords($content) {
assoc_unique
(
$urlarray
,
$keys
);
//
$keyword
[
$key
]
[
'num'
]
=
$keyword
[
$key
]
[
'find'
]
+
1
;
$keyword
[
$key
]
[
'num'
]
=
intval
(
$keyword
[
$key
]
[
'find'
]
)
+
1
;
$firstcontent
=
substr
(
$articlecontent
,
0
,
$s_start
);
//
$sec
=
substr
(
$articlecontent
,
$s_start
+
$repstrlen
);
...
...
@@ -1641,6 +1641,9 @@ EOT;
return
$state
;
}
function
sendemailtouser
(
$toemail
,
$subject
,
$message
)
{
if
(
empty
(
$toemail
))
{
return
false
;
}
global
$setting
;
$message
=
<<<EOT
...
...
@@ -2073,11 +2076,13 @@ function isimage($extname) {
function
imagecropper
(
$source_path
,
$dst
,
$target_width
,
$target_height
)
{
$httpxieyi
=
strtolower
(
substr
(
$source_path
,
0
,
7
)
);
$httpsxieyi
=
strtolower
(
substr
(
$source_path
,
0
,
8
)
);
$controlleradmin
=
substr
(
ROUTE_A
,
0
,
5
);
$controlleradmin
=
strtolower
(
substr
(
ROUTE_A
,
0
,
5
)
);
$controllerkecheng
=
strtolower
(
substr
(
ROUTE_A
,
0
,
7
)
);
if
(
!
file_exists
(
$source_path
))
{
// 非站内图片,看看外部图片格式
if
(
$httpxieyi
!=
'http://'
&&
$httpsxieyi
!=
'https://'
&&
$controlleradmin
!=
'admin'
)
{
if
(
$httpxieyi
!=
'http://'
&&
$httpsxieyi
!=
'https://'
&&
$controlleradmin
!=
'admin'
&&
$controllerkecheng
!=
'kecheng'
)
{
exit
(
"非正常图片地址"
);
}
else
{
$source_info
=
getimagesize
(
$source_path
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录