diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-06-19 18:50:25 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-06-19 18:50:25 +0200 |
commit | abac11d8c42fdc3e93bbfc65d8e30474d3bb876a (patch) | |
tree | f46e4891d5fd2a194744668f2c8b49e649cd4838 | |
parent | 86406c6cfe7433f1d96870587196f33d16f7aae8 (diff) | |
download | nextcloud-server-abac11d8c42fdc3e93bbfc65d8e30474d3bb876a.tar.gz nextcloud-server-abac11d8c42fdc3e93bbfc65d8e30474d3bb876a.zip |
tabs, not spaces
-rw-r--r-- | log/index.php | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/log/index.php b/log/index.php index 985ab60b52e..950e1f82d19 100644 --- a/log/index.php +++ b/log/index.php @@ -21,14 +21,13 @@ * */ - //require_once('../../config/config.php'); require_once('../lib/base.php'); require_once( 'template.php' ); if( !OC_USER::isLoggedIn()){ - header( 'Location: '.OC_HELPER::linkTo( 'index.php' )); - exit(); + header( 'Location: '.OC_HELPER::linkTo( 'index.php' )); + exit(); } //load the script @@ -48,15 +47,15 @@ if(isset($_POST['save'])){ OC_PREFERENCES::setValue($_SESSION['user_id'],'log','pagesize',$_POST['size']); } //clear log entries -else if(isset($_POST['clear'])){ - $removeBeforeDate=(isset($_POST['removeBeforeDate']))?$_POST['removeBeforeDate']:0; - if($removeBeforeDate!==0){ - $removeBeforeDate=strtotime($removeBeforeDate); - OC_LOG::deleteBefore($removeBeforeDate); - } +elseif(isset($_POST['clear'])){ + $removeBeforeDate=(isset($_POST['removeBeforeDate']))?$_POST['removeBeforeDate']:0; + if($removeBeforeDate!==0){ + $removeBeforeDate=strtotime($removeBeforeDate); + OC_LOG::deleteBefore($removeBeforeDate); + } } -else if(isset($_POST['clearall'])){ - OC_LOG::deleteAll(); +elseif(isset($_POST['clearall'])){ + OC_LOG::deleteAll(); } OC_APP::setActiveNavigationEntry( 'log' ); @@ -83,7 +82,8 @@ $url=OC_HELPER::linkTo( 'log', 'index.php' ).'?page='; $pager=OC_UTIL::getPageNavi($pageCount,$page,$url); if($pager){ $pagerHTML=$pager->fetchPage(); -}else{ +} +else{ $pagerHTML=''; } @@ -91,7 +91,8 @@ $showActions=array(); foreach($allActions as $action){ if(array_search($action,$selectedActions)!==false){ $showActions[$action]='checked="checked"'; - }else{ + } + else{ $showActions[$action]=''; } } |