Skip to content
Snippets Groups Projects
Commit 45e1aa42 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

hide logs for unauthenticated users; fix warning for $sPhpout variable

parent a7e2b9bc
No related branches found
No related tags found
No related merge requests found
......@@ -74,14 +74,18 @@ if ($oUser->hasPermission('page_'.$sAction)){
$oCLog->add("adding actionlog.class");
if ($oUser->getUsername()){
require_once("./classes/actionlog.class.php");
$oLog=new Actionlog($sPrj);
$aFilter=array('limit'=>'0, 10');
if ($sPrj && $sPrj!="all")$aFilter['project']=$sPrj;
if ($sPrj && $sPrj!="all"){
$aFilter['project']=$sPrj;
}
$oLog=new Actionlog($sPrj);
$sPhpOut.='<div class="logs">' . $oLog->renderLogs($aFilter).'</div>';
}
$oCLog->add("adding actionlog.class done");
} else {
$sPhpOut.=$oUser->showDenied();
$sPhpOut=$oUser->showDenied();
// return false;
}
......
......@@ -121,7 +121,7 @@ if ($oUser->getUsername()) {
$sOut.= $oForm->renderHtml("login")
. '</div>';
}
$sOut.= '<div id="navbuttom">' . aPrjHome() . '</div>';
// $sOut.= '<div id="navbuttom">' . aPrjHome() . '</div>';
// -- Ausgabe
echo $sOut;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment