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
+9
View File
@@ -0,0 +1,9 @@
<?php
defined('IN_TS') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
tsNotice('sorry:no index!');
}
+27
View File
@@ -0,0 +1,27 @@
<?php
defined('IN_TS') or die('Access Denied.');
switch($ts){
//基本配置
case "":
$strOption = getAppOptions('friendlinks');
include template("admin/options");
break;
case "do":
$arrOption = $_POST['option'];
#更新app配置选项
upAppOptions('friendlinks',$arrOption);
#更新app导航和我的导航
upAppNav('friendlinks',$arrOption['appname']);
qiMsg('修改成功!');
break;
}
+20
View File
@@ -0,0 +1,20 @@
<?php
defined('IN_TS') or die('Access Denied.');
switch($ts){
case "list":
include template("admin/topic_list");
break;
case "delete":
qiMsg('删除成功');
break;
//帖子审核
case "isaudit":
qiMsg('操作成功!');
break;
}
+10
View File
@@ -0,0 +1,10 @@
<?php
//创建小组
defined('IN_TS') or die('Access Denied.');
switch($ts){
case "":
include template("create");
break;
case "do": $js = intval($_GET['js']); $authcode = strtolower($_POST['authcode']); if ($authcode != $_SESSION['verify']) { getJson('验证码输入有误,请重新输入!', $js); } $path=h($_POST['path']); $email=trim($_POST['email']); $name=trim($_POST['name']); $face=h($_POST['face']); $about=trim($_POST['about']); if($email=='' || $path=='' || $name=='') { getJson('带*是必要的',$js); } if(valid_email($email) == false) { getJson('Email邮箱输入有误',$js); } echo $email.'<br>'.$path.'<br>'.$name.'<br>'.$face.'<br>'.$about.'<br>'.getIp(); /* $ispath = $new['friendlinks']->findCount('friendlinks',array( 'path'=>$path, )); if($ispath > 0){ getJson('你以提交过了',$js); }else */ $id = $new ['friendlinks']->create ( 'friendlinks',array( 'name'=>$name, 'email'=>$email, 'path'=>$path, 'face'=>$face, 'about'=>$about, 'ip'=>getIp(), 'addtime'=>time(), )); getJson('提交成功!!感谢!',$js); break;
}
+3
View File
@@ -0,0 +1,3 @@
<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
include template ( "index" );