@@ -0,0 +1 @@
|
||||
<?php
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
//插件编辑
|
||||
switch($ts){
|
||||
case "set":
|
||||
|
||||
$strAbout = fileRead('plugins/pubs/feedback/about.php');
|
||||
|
||||
$code = fileRead('data/plugins_pubs_feedback.php');
|
||||
|
||||
if($code==''){
|
||||
$code = $tsMySqlCache->get('plugins_pubs_feedback');
|
||||
}
|
||||
|
||||
$code = stripslashes($code);
|
||||
|
||||
include template('edit_set','feedback');
|
||||
break;
|
||||
|
||||
case "do":
|
||||
$code = tsTrim($_POST['code']);
|
||||
|
||||
fileWrite('plugins_pubs_feedback.php','data',$code);
|
||||
$tsMySqlCache->set('plugins_pubs_feedback',$code);
|
||||
|
||||
header('Location: '.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=feedback&in=edit&ts=set');
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include pubTemplate("plugin_menu")}
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=pubs&ac=plugin&plugin=feedback&in=edit&ts=do">
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr><td>反馈代码:</td><td><textarea style="width:400px;height:200px;" name="code">{$code}</textarea></td></tr>
|
||||
|
||||
<tr><td></td><td><input type="submit" value="提交修改" /></td></tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 200 B |
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
//feedback反馈插件
|
||||
function feedback_html(){
|
||||
global $tsMySqlCache;
|
||||
$code = fileRead('data/plugins_pubs_feedback.php');
|
||||
|
||||
if($code==''){
|
||||
$code = $tsMySqlCache->get('plugins_pubs_feedback');
|
||||
}
|
||||
|
||||
echo '<div class="feedback-box">'.stripslashes($code).'<!--<div class="jubao"><a href="'.tsUrl('home','report').'">举报</a></div></div>-->';
|
||||
}
|
||||
|
||||
addAction('pub_footer','feedback_html');
|
||||
|
||||
function feedback_css(){
|
||||
echo '<style>.feedback-box {
|
||||
background-color: #49a5de;
|
||||
bottom: 60%;
|
||||
padding: 1px 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
width: 30px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.feedback-box a {
|
||||
color: #FFFFFF !important;
|
||||
display: block;
|
||||
padding: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.feedback-box .jubao{overflow: hidden;}
|
||||
.feedback-box .jubao a{padding:0px;float: left;width:100%;text-align: center;background: #336699;font-size: 12px;}
|
||||
.feedback-box .jubao a:hover{background:#ff6600;}
|
||||
</style>';
|
||||
}
|
||||
|
||||
addAction('pub_header_top','feedback_css');
|
||||
Reference in New Issue
Block a user