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
+43
View File
@@ -0,0 +1,43 @@
<?php
defined('IN_TS') or die('Access Denied.');
//插件编辑
switch($ts){
case "set":
$strAbout = fileRead('plugins/pubs/morenav/about.php');
$arrNav = fileRead('data/plugins_pubs_morenav.php');
if($arrNav==''){
$arrNav = $GLOBALS['tsMySqlCache']->get('plugins_pubs_morenav');
}
include template('edit_set','morenav');
break;
case "do":
$arrNavName = $_POST['navname'];
$arrNavUrl = $_POST['navurl'];
$arrNewPage = $_POST['newpage'];
foreach($arrNavName as $key=>$item){
$navname = tsTrim($item);
$navurl = tsTrim($arrNavUrl[$key]);
$newpage = tsTrim($arrNewPage[$key]);
if($navname && $navurl){
$arrNav[] = array(
'navname' => $navname,
'navurl' => $navurl,
'newpage' => $newpage,
);
}
}
fileWrite('plugins_pubs_morenav.php','data',$arrNav);
$tsMySqlCache->set('plugins_pubs_morenav',$arrNav);
header('Location: '.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=morenav&in=edit&ts=set');
break;
}