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.');
class weiboMy extends weibo{
/*
* 我的唠叨
* */
public function index(){
$strUser = aac('user')->getOneUser($GLOBALS['TS_USER']['userid']);
$page = isset($_GET['page']) ? intval($_GET['page']) : '1';
$url = tsUrl('weibo','my',array('my'=>'index','page'=>''));
$lstart = $page*20-20;
$arrWeibo = $this->findAll('weibo',array(
'userid'=>$strUser['userid'],
),'uptime desc',null,$lstart.',20');
foreach($arrWeibo as $key=>$item){
$arrWeibo[$key]['content'] = tsTitle($item['content']);
}
$weiboNum = $this->findCount('weibo',array(
'userid'=>$strUser['userid'],
));
$pageUrl = pagination($weiboNum, 20, $page, $url);
$title = '我的时光';
include template('my/index');
}
}