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
+37
View File
@@ -0,0 +1,37 @@
<?php
defined('IN_TS') or die('Access Denied.');
//插件编辑
switch($ts){
//编辑
case "set":
$strAbout = fileRead('plugins/pubs/wordad/about.php');
$arrData = fileRead('data/plugins_pubs_wordad.php');
if($arrData==''){
$arrData = $tsMySqlCache->get('plugins_pubs_wordad');
}
include template('edit','wordad');
break;
//执行编辑
case "do":
$arrTitle = $_POST['title'];
$arrUrl = $_POST['url'];
foreach($arrTitle as $key=>$item){
$title = tsTrim($item);
$url = tsTrim($arrUrl[$key]);
if($title && $url){
$arrData[] = array(
'title' => $title,
'url' => $url,
);
}
}
fileWrite('plugins_pubs_wordad.php','data',$arrData);
$tsMySqlCache->set('plugins_pubs_wordad',$arrData);
header('Location: '.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=wordad&in=edit&ts=set');
break;
}