begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
defined('IN_TS') or die('Access Denied.');
return array(
'name' => '社区公告插件',
'version' => '1.0',
'desc' => '社区公告插件',
'url' => 'http://www.thinksaas.cn',
'email' => 'thinksaas@qq.com',
'author' => '邱君',
'author_url' => 'http://www.thinksaas.cn',
'isedit' => '1',
);
+30
View File
@@ -0,0 +1,30 @@
<?php
defined('IN_TS') or die('Access Denied.');
//插件编辑
switch($ts){
case "set":
$strGonggao = fileRead('data/plugins_pubs_gonggao.php');
if($strGonggao==''){
$strGonggao = $tsMySqlCache->get('plugins_pubs_gonggao');
}
include template('edit_set','gonggao');
break;
case "do":
$title = trim($_POST['title']);
$url = trim($_POST['url']);
$arrData = array(
'title'=>$title,
'url'=>$url,
);
fileWrite('plugins_pubs_gonggao.php','data',$arrData);
$tsMySqlCache->set('plugins_pubs_gonggao',$arrData);
header('Location: '.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=gonggao&in=edit&ts=set');
break;
}
+1
View File
@@ -0,0 +1 @@
{php include pubTemplate("header_admin")}<div class="midder"><h6>社区公告设置</h6>{php include pubTemplate("plugin_menu")}<form method="POST" action="{SITE_URL}index.php?app=pubs&ac=plugin&plugin=gonggao&in=edit&ts=do"><table class="table table-hover"><tr><td>公告标题</td><td><input style="width:350px;" name="title" value="{$strGonggao['title']}" /></td></tr><tr><td>公告链接</td><td><input name="url" style="width:350px;" value="{$strGonggao['url']}" /></td></tr><tr><td></td><td><input type="submit" value="提交修改" /></td></tr></table></form></div>{php include pubTemplate("footer_admin")}
+16
View File
@@ -0,0 +1,16 @@
<?php
defined('IN_TS') or die('Access Denied.');
//头部导航插件
function gonggao(){
global $tsMySqlCache;
$strGonggao = fileRead('data/plugins_pubs_gogngao.php');
if($strGonggao==''){
$strGonggao = $tsMySqlCache->get('plugins_pubs_gonggao');
}
echo '<div class="gonggao">公告:<a target="_blank" href="'.$strGonggao['url'].'">'.$strGonggao['title'].'</a></div>';
}
addAction('my_right_top','gonggao');