No longer salting login user name
[squasher.git] / templates / logs.tpl
1 {literal}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Squasher</title><style>body{background-color:#E2EBD8;text-align:center;min-width:1000px;}.wrapper{width: 1000px;margin: 10px auto;}.container{border:5px solid;border-color:#FFFFFF;color:#003300;left:50%;background: #FFFFFF;}.control{float:right;text-align:right;}.menucontainer{background-color:#FFFFFF;}.menu{text-align:center;}.menuhead{float:left;background-color:#66CC00;color:#003300;margin:1px;border:1px solid;border-color:#66CC00;}.menuitem{float:left;background-color:#C7F09E;color:#003300;margin:1px;border:1px solid;border-color:#E2EBD8;}.menuitem_selected{float:left;background-color:#339900;color:#FFFFFF;margin:1px;border:1px solid;border-color:#E2EBD8;}.menuitem:hover{background-color:#339900;color:#FFFFFF;}tr.logentry_download{background-color:#C7F09E;color:#003300;margin:1px;border:1px solid;border-color:#C7F09E;}tr.logentry_download:hover{background-color:#339900;color:#FFFFFF;}tr.logentry_delete{background-color:#C7F09E;color:#003300;margin:1px;border:1px solid;border-color:#C7F09E;}tr.logentry_delete:hover{background-color:#339900;color:#FFFFFF;}tr.logentry_login{background-color:#C7F09E;color:#003300;margin:1px;border:1px solid;border-color:#C7F09E;}tr.logentry_login:hover{background-color:#339900;color:#FFFFFF;}tr.logentry_header{background-color:#339900;color:#FFFFFF;border:1px solid;border-color:#C7F09E;}.content{float:left;padding-right:5px;width:600px;}.item, .status1, .status2, .status3{position:relative;color:#003300;width:400px;height:36px;border:2px solid;border-color:#FFFFFF;font-size:12px;}.item{background-color:#E2EBD8;}.status1{background-color:#FFCCCC;}.status2{background-color:#FFFFCC;}.status3{background-color:#CCFFCC;}.name{position:absolute;left:1px;top:1px;padding-left:1px;}.center{float:left;height:inherit;padding-left:1px;}.chunks{position:absolute;left:1px;bottom:1px;padding-left:1px;}.size{position:absolute;left:100px;bottom:1px;padding-left:1px;}.status{position:absolute;right:2px;top:1px;padding-left:1px;}.stream{position:absolute;float:right;bottom:1px;padding-left:1px;}.download{position:absolute;right:2px;bottom:1px;padding-left:1px;}.clear{clear:both;height:1px;}.spacer{clear:both;height:10px;}.videoframe{float:left;width:500px;height:400px;padding-left:25px;}.banner{background-color:#66CC00;text-align:center;width:100%;height:45px;background:#66CC00 url(img/squash.gif) no-repeat 30px 50%;}.titel{background-color:#66CC00;text-align:center;}.footer{background-color:#66CC00;text-align:center;background:#66CC00 url(img/gplogobottomright.gif) no-repeat 100%;}.bottomimage{background: #FFFFFF url(img/gp1.gif) no-repeat 95% 95%;float:right;width:300px;height:146px;}a{color:#003300;}a:hover{color:#FF6600;}.white_border{float:left;border-top:0px solid #FFFFFF;border-bottom:0px solid #FFFFFF;}.check_all, .check_allow, .check_deny{float:right;height:20px;}.sample_all, .sample_allow, .sample_deny{float:left;height:20px;}.check_all, .sample_all{background-color:#AAEEAA;}.check_allow, .sample_allow{background-color:#EEEEAA;}.check_deny, .sample_deny{background-color:#EEAAAA;}{/literal}{foreach item=style_row from=$style}{$style_row}{/foreach}</style></head><body align="center" style="min-width:1000px;"><div class="wrapper"><div class="container">    <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>  <div class="spacer"></div>      <div class="menucontainer">     <div class="menu">      <div class="menuhead">&nbsp;logs&nbsp;</div>    <div {if $logtype eq "all"     }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=all'"      style="cursor:pointer" >&nbsp;all&nbsp;</div>       <div {if $logtype eq "delete"  }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=delete'"   style="cursor:pointer" >&nbsp;delete&nbsp;</div>    <div {if $logtype eq "download"}class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=download'" style="cursor:pointer" >&nbsp;download&nbsp;</div>  <div {if $logtype eq "login"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=login'"    style="cursor:pointer" >&nbsp;login&nbsp;</div>     <div {if $logtype eq "debug"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=debug'"    style="cursor:pointer" >&nbsp;squasher&nbsp;</div>  </div>  <div class="clear"></div>       <div class="menu">      </div>  <div class="clear"></div>       </div>  <div class="spacer"></div>      <div class="content">  <table style="border-spacing:0;spacing:0;padding:0;width:990px;background-color:#C7F09E;">   <tr class="logentry_header" align="center">    <td width='*' colspan="5">Today</td>   </tr>{foreach item=entry from=$logs.today key=id}   <tr class="logentry_{$entry.action}" align="left">    <td width='160px'>&nbsp;{$entry.date}</td>    <td width='40px' >&nbsp;{$entry.user_name}</td>    <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>    <td width='80px' >&nbsp;{$entry.action}</td>    <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>   </tr>{foreachelse}   <tr style="background-color:#C7F09E;" align="center">    <td width='*' colspan="3"><hr></td>    <td width='120px'>Log is empty</td>    <td width='*'><hr></td>   </tr>{/foreach}   <tr class="logentry_header" align="center">    <td width='*' colspan="5">Yesterday</td>   </tr>{foreach item=entry from=$logs.yesterday key=id}   <tr class="logentry_{$entry.action}" align="left">    <td width='160px'>&nbsp;{$entry.date}</td>    <td width='40px' >&nbsp;{$entry.user_name}</td>    <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>    <td width='80px'>&nbsp;{$entry.action}</td>    <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>   </tr>{foreachelse}   <tr style="background-color:#C7F09E;" align="center">    <td width='*' colspan="3"><hr></td>    <td width='120px'>Log is empty</td>    <td width='*'><hr></td>   </tr>{/foreach}   <tr class="logentry_header" align="center">    <td width='*' colspan="5">Last week</td>   </tr>{foreach item=entry from=$logs.lastweek key=id}   <tr class="logentry_{$entry.action}" align="left">    <td width='160px'>&nbsp;{$entry.date}</td>    <td width='40px' >&nbsp;{$entry.user_name}</td>    <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>    <td width='80px'>&nbsp;{$entry.action}</td>    <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>   </tr>{foreachelse}   <tr style="background-color:#C7F09E;" align="center">    <td width='*' colspan="3"><hr></td>    <td width='120px'>Log is empty</td>    <td width='*'><hr></td>   </tr>{/foreach}   <tr class="logentry_header" align="center">    <td width='*' colspan="5">Older</td>   </tr>{foreach item=entry from=$logs.older key=id}   <tr class="logentry_{$entry.action}" align="left">    <td width='160px'>&nbsp;{$entry.date}</td>    <td width='40px' >&nbsp;{$entry.user_name}</td>    <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>    <td width='80px'>&nbsp;{$entry.action}</td>    <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>   </tr>{foreachelse}   <tr style="background-color:#C7F09E;" align="center">    <td width='*' colspan="3"><hr></td>    <td width='120px'>Log is empty</td>    <td width='*'><hr></td>   </tr>{/foreach}       </table>        </div>  <div class="spacer"></div>      <div class="bottomimage"></div> <div class="clear"></div>       <div class="spacer"></div>      <div class="footer">&nbsp;</div></div></div>{if $debug}{debug}{/if}</body></html>