@@ -0,0 +1 @@
|
||||
<?php
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
|
||||
//插件编辑
|
||||
switch($ts){
|
||||
case "set":
|
||||
|
||||
$strAbout = fileRead('plugins/pubs/gobad/about.php');
|
||||
|
||||
$code = fileRead('data/plugins_pubs_gobad.php');
|
||||
|
||||
if($code==''){
|
||||
|
||||
$code = $tsMySqlCache->get('plugins_pubs_gobad');
|
||||
|
||||
}
|
||||
|
||||
include template('edit_set','gobad');
|
||||
break;
|
||||
|
||||
case "do":
|
||||
$code = $_POST['code'];
|
||||
|
||||
fileWrite('plugins_pubs_gobad.php','data',$code);
|
||||
$tsMySqlCache->set('plugins_pubs_gobad',$code);
|
||||
|
||||
header('Location: '.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=gobad&in=edit&ts=set');
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{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=gobad&in=edit&ts=do">
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<tr><td>全站统一头部调用:<br />此处仅放公共文件,比如针对广告的js、css文件引用等</td><td><textarea style="width:600px;height:100px;" name="code[pub_header]">{php echo stripslashes($code['pub_header'])}</textarea></td></tr>
|
||||
|
||||
|
||||
<tr><td>广告代码:<br />宽度<=300px</td><td><textarea style="width:600px;height:100px;" name="code[300]">{php echo stripslashes($code['300'])}</textarea></td></tr>
|
||||
|
||||
<tr><td>广告代码:<br />宽度<=468px</td><td><textarea style="width:600px;height:100px;" name="code[468]">{php echo stripslashes($code['468'])}</textarea></td></tr>
|
||||
|
||||
<tr><td>广告代码:<br />宽度<=640px</td><td><textarea style="width:600px;height:100px;" name="code[640]">{php echo stripslashes($code['640'])}</textarea></td></tr>
|
||||
|
||||
<tr><td>广告代码:<br />宽度<=960px</td><td><textarea style="width:600px;height:100px;" name="code[960]">{php echo stripslashes($code['960'])}</textarea></td></tr>
|
||||
|
||||
<tr><td>帖子右侧顶部:<br />宽度<=360px</td><td><textarea style="width:600px;height:100px;" name="code[topic_right_top]">{php echo stripslashes($code['topic_right_top'])}</textarea></td></tr>
|
||||
|
||||
<tr><td>首页左侧广告1:<br />宽度<=750px</td><td><textarea style="width:600px;height:100px;" name="code[home_left_1]">{php echo stripslashes($code['home_left_1'])}</textarea></td></tr>
|
||||
|
||||
|
||||
<tr><td>内容正文顶部:<br />宽度<=640px</td><td><textarea style="width:600px;height:100px;" name="code[content_top]">{php echo stripslashes($code['content_top'])}</textarea></td></tr>
|
||||
|
||||
|
||||
<tr><td>首页左侧广告2:<br />宽度<=750px</td><td><textarea style="width:600px;height:100px;" name="code[home_left_2]">{php echo stripslashes($code['home_left_2'])}</textarea></td></tr>
|
||||
|
||||
|
||||
<tr><td>全站底部通栏:<br />宽度<=1140px</td><td><textarea style="width:600px;height:100px;" name="code[pub_footer]">{php echo stripslashes($code['pub_footer'])}</textarea></td></tr>
|
||||
|
||||
|
||||
<tr><td></td><td><input type="submit" value="提交修改" /></td></tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
defined('IN_TS') or die('Access Denied.');
|
||||
//统计代码
|
||||
function gobad($w){
|
||||
global $tsMySqlCache;
|
||||
$code = fileRead('data/plugins_pubs_gobad.php');
|
||||
|
||||
if($code==''){
|
||||
$code = $tsMySqlCache->get('plugins_pubs_gobad');
|
||||
}
|
||||
|
||||
echo stripslashes($code[$w]);
|
||||
|
||||
}
|
||||
|
||||
addAction('gobad','gobad');
|
||||
Reference in New Issue
Block a user