<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear jules,<br>
 i've found these ??bugs??:<br>
<br>
lib/NSSDropoff.php: line 1343  $smarty-&gt;assign('fileCount',  
$readFileCount);<br>
readFileCount does not exists anywhere: it's a duplicate of
realFilecount ??? line to be removed<br>
<br>
lib/NSSDropoff.php: line 1343  while ( $i &lt; $fileCount ) {<br>
I believe it's correct use $i strictly &lt; of $fileCount; this
potential error is repeated along the code in 1193/1251<br>
<br>
www/Verify.php: line 55   if ($resp-&gt;is_valid &amp;&amp; (
$theVerify = new Verify($theDropbox) )) {<br>
The logical AND is &amp;&amp; and must be used when almost one of the
ops is not an integer.<br>
<br>
www/Verify.php: line 122  $theDropbox-&gt;writeToLog("Public
key=".$reCaptchaPublicKey);<br>
useless log line: who care of it ?<br>
<br>
And two suggestion: the site policy could be more clear if present in
every page.<br>
I've added in NSSDropoff below line 744 these 3<br>
<blockquote type="cite">     $smarty-&gt;assign('maxBytesForFile',
NSSFormattedMemSize($this-&gt;_maxBytesForFile));<br>
     $smarty-&gt;assign('maxBytesForDropoff',
NSSFormattedMemSize($this-&gt;_maxBytesForDropoff));<br>
     $smarty-&gt;assign('retainDays', $this-&gt;_retainDays);</blockquote>
<br>
and added into header.tpl below line 53 as follow:<br>
<blockquote type="cite">  &lt;tr&gt;<br>
    &lt;td id="prefs" align=right colspan=2&gt;<br>
      &lt;BR&gt;MAX single attachment size: {$maxBytesForFile}
&amp;nbsp; &amp;nbsp; &amp;nbsp;<br>
      &lt;BR&gt;MAX total  attachment size: {$maxBytesForDropoff}
&amp;nbsp; &amp;nbsp; &amp;nbsp;<br>
      &lt;BR&gt;Attachment Retain time: {$retainDays} &amp;nbsp;
&amp;nbsp; &amp;nbsp;<br>
    &lt;/td&gt;<br>
   &lt;/tr&gt;<br>
</blockquote>
So in every page is printed-out the site policy (max bytes .. and
retain time).<br>
<br>
Another change is into the single dropoff view, where is printed-out
the creation date, but i believe it's more important to know when the
dropoff will expire.<br>
So I changed the NSSDropoff.php adding below line 790:<br>
  global $prefs;<br>
<br>
and below line 852:<br>
<br>
  $smarty-&gt;assign('expiration',strftime("%d %b
%Y&amp;nbsp;&amp;nbsp;%r",timeForDate($this-&gt;created())+3600*24*$prefs['numberOfDaysToRetain']));<br>
<br>
<br>
and changed into the show_dropoff.tpl, lines from 72-75 to<br>
<blockquote type="cite">          &lt;tr&gt;<br>
            &lt;td class="UD_form_lined" align="right"&gt;&lt;b&gt;Will
Expire On:&lt;/b&gt;&lt;/td&gt;<br>
            &lt;td&gt;&lt;tt&gt;{$expiration}&lt;/tt&gt;&lt;/td&gt;<br>
          &lt;/tr&gt;<br>
</blockquote>
<br>
Bye.<br>
<div class="moz-signature">-- <br>
<center><span
 style="font-family: Verdana,sans-serif; font-weight: bold;">
Ing. Sergio Rabellino<br>
</span>
<br>
<span style="font-family: Verdana,sans-serif;">
Universitą degli Studi di Torino<br>
Dipartimento di Informatica<br>
ICT Services Director<br>
Tel +39-0116706701 
Fax +39-011751603<br>
C.so Svizzera , 185 - 10149 - Torino<br>
<br>
<a href="http://www.di.unito.it" alt="Dipartimento di Informatica"><img
 src="cid:part1.05060501.00060600@di.unito.it" border="0"></a>
</span></center>
</div>
</body>
</html>