diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-10 12:36:32 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-10 14:03:54 +0200 |
commit | 1f1498ceca51c5b30130b80a59c00c1b37dc7009 (patch) | |
tree | 49a82acb3e48197ff43b915293b6c89acf82bd3e /lib/ocs.php | |
parent | cdf91b6b3e0f6d9fc435497b9dcc051ff24d6c7e (diff) | |
download | nextcloud-server-1f1498ceca51c5b30130b80a59c00c1b37dc7009.tar.gz nextcloud-server-1f1498ceca51c5b30130b80a59c00c1b37dc7009.zip |
remove Log completely
Diffstat (limited to 'lib/ocs.php')
-rw-r--r-- | lib/ocs.php | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/ocs.php b/lib/ocs.php index bcacfe704c0..536ee754e84 100644 --- a/lib/ocs.php +++ b/lib/ocs.php @@ -402,33 +402,7 @@ class OC_OCS { private static function activityGet($format,$page,$pagesize) { $user=OC_OCS::checkpassword(); - $query = OC_DB::prepare('select count(*) as co from *PREFIX*log'); - $result = $query->execute(); - $entry=$result->fetchRow(); - $totalcount=$entry['co']; - - $query=OC_DB::prepare('select id,timestamp,`user`,type,message from *PREFIX*log order by timestamp desc limit ?,?'); - $result = $query->execute(array(($page*$pagesize),$pagesize))->fetchAll(); - - $itemscount=count($result); - - $url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'],0,-11).''; - $xml=array(); - foreach($result as $i=>$log) { - $xml[$i]['id']=$log['id']; - $xml[$i]['personid']=$log['user']; - $xml[$i]['firstname']=$log['user']; - $xml[$i]['lastname']=''; - $xml[$i]['profilepage']=$url; - - $pic=$url.'/img/owncloud-icon.png'; - $xml[$i]['avatarpic']=$pic; - - $xml[$i]['timestamp']=date('c',$log['timestamp']); - $xml[$i]['type']=1; - $xml[$i]['message']=OC_Log::$TYPE[$log['type']].' '.strip_tags($log['message']); - $xml[$i]['link']=$url; - } + //TODO $txt=OC_OCS::generatexml($format,'ok',100,'',$xml,'activity','full',2,$totalcount,$pagesize); echo($txt); |