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
+31
View File
@@ -0,0 +1,31 @@
<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
$userid = aac('user')->isLogin();
$attachid = intval ( $_POST ['attachid'] );
$stredit = $new ['attach']->find ( 'attach', array ('attachid' => $attachid ) );
if($stredit=='')
{
tsNotice('NO!');
}
if($userid!=$stredit['userid'])
{
tsNotice('NO');
}
$attachname = trim($_POST['attachname']);
$pay=intval($_POST['pay']);
$new['attach'] -> update('attach', array('attachid' => $attachid), array(
'attachname' => $attachname,
'pay' => $pay,
));
header("Location: " . tsUrl('attach', 'show', array('id' => $attachid)));
?>