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
+52
View File
@@ -0,0 +1,52 @@
<?php
defined('IN_TS') or die('Access Denied.');
//修改单个图片信息
$userid = aac('user')->isLogin();
switch($ts){
case "":
$photoid = tsIntval($_GET['photoid']);
$strPhoto = $new['photo']->find('photo',array(
'photoid'=>$photoid,
));
$strPhoto['title'] = tsTitle($strPhoto['title']);
$strPhoto['photodesc'] = tsTitle($strPhoto['photodesc']);
if($strPhoto['userid']==$userid || $TS_USER['isadmin']==1){
$title = '修改图片信息';
include template('photo_edit');
}else{
tsNotice('非法操作!');
}
break;
case "do":
$photoid = tsIntval($_POST['photoid']);
$title = tsTrim($_POST['title']);
$photodesc = tsTrim($_POST['photodesc']);
$new['photo']->update('photo',array(
'photoid'=>$photoid,
),array(
'title'=>$title,
'photodesc'=>$photodesc,
));
header('Location: '.tsUrl('photo','show',array('id'=>$photoid)));
break;
}