tabs, not spaces
This commit is contained in:
parent
86406c6cfe
commit
abac11d8c4
|
@ -21,14 +21,13 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//require_once('../../config/config.php');
|
//require_once('../../config/config.php');
|
||||||
require_once('../lib/base.php');
|
require_once('../lib/base.php');
|
||||||
require_once( 'template.php' );
|
require_once( 'template.php' );
|
||||||
|
|
||||||
if( !OC_USER::isLoggedIn()){
|
if( !OC_USER::isLoggedIn()){
|
||||||
header( 'Location: '.OC_HELPER::linkTo( 'index.php' ));
|
header( 'Location: '.OC_HELPER::linkTo( 'index.php' ));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//load the script
|
//load the script
|
||||||
|
@ -48,15 +47,15 @@ if(isset($_POST['save'])){
|
||||||
OC_PREFERENCES::setValue($_SESSION['user_id'],'log','pagesize',$_POST['size']);
|
OC_PREFERENCES::setValue($_SESSION['user_id'],'log','pagesize',$_POST['size']);
|
||||||
}
|
}
|
||||||
//clear log entries
|
//clear log entries
|
||||||
else if(isset($_POST['clear'])){
|
elseif(isset($_POST['clear'])){
|
||||||
$removeBeforeDate=(isset($_POST['removeBeforeDate']))?$_POST['removeBeforeDate']:0;
|
$removeBeforeDate=(isset($_POST['removeBeforeDate']))?$_POST['removeBeforeDate']:0;
|
||||||
if($removeBeforeDate!==0){
|
if($removeBeforeDate!==0){
|
||||||
$removeBeforeDate=strtotime($removeBeforeDate);
|
$removeBeforeDate=strtotime($removeBeforeDate);
|
||||||
OC_LOG::deleteBefore($removeBeforeDate);
|
OC_LOG::deleteBefore($removeBeforeDate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(isset($_POST['clearall'])){
|
elseif(isset($_POST['clearall'])){
|
||||||
OC_LOG::deleteAll();
|
OC_LOG::deleteAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
OC_APP::setActiveNavigationEntry( 'log' );
|
OC_APP::setActiveNavigationEntry( 'log' );
|
||||||
|
@ -83,7 +82,8 @@ $url=OC_HELPER::linkTo( 'log', 'index.php' ).'?page=';
|
||||||
$pager=OC_UTIL::getPageNavi($pageCount,$page,$url);
|
$pager=OC_UTIL::getPageNavi($pageCount,$page,$url);
|
||||||
if($pager){
|
if($pager){
|
||||||
$pagerHTML=$pager->fetchPage();
|
$pagerHTML=$pager->fetchPage();
|
||||||
}else{
|
}
|
||||||
|
else{
|
||||||
$pagerHTML='';
|
$pagerHTML='';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ $showActions=array();
|
||||||
foreach($allActions as $action){
|
foreach($allActions as $action){
|
||||||
if(array_search($action,$selectedActions)!==false){
|
if(array_search($action,$selectedActions)!==false){
|
||||||
$showActions[$action]='checked="checked"';
|
$showActions[$action]='checked="checked"';
|
||||||
}else{
|
}
|
||||||
|
else{
|
||||||
$showActions[$action]='';
|
$showActions[$action]='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue