[ZendTo] lock down recipient

Jules Field Jules at Zend.To
Wed Oct 31 09:36:33 GMT 2018


That page is in /opt/zendto/templates/main_menu.tpl.
If you just comment out this bit (starts at line 33 in my current 
version of the file):

     <td>{call name=button href="req.php" text=$request_t width="100%"}</td>
     <td class="UD_nav_label">{t escape=no}Ask another person to send 
you some files.{/t}</td>
     <td>{call name=button href="pickup.php" text=$pickup_t 
     <td class="UD_nav_label">{t escape=no}Pick-up (<em>download</em>) a 
file dropped-off for you.{/t}</td>

those buttons will disappear.

If you comment it out by putting {* at the start and *} at the end, the 
templating engine will never even send that HTML to the browsers at all, 
which is nicer than using HTML <!-- --> comments.


On 30/10/2018 22:37, Shane via ZendTo wrote:
> Jules
> Since I have i configured the zendto that external users can only drop 
> files for a particular recipient, this is working great. However I 
> noticed when they login to zendto, in main page,
> there are options:  Drop Off, Request a drop off, and pick up.  How 
> can I hide the "Request a drop off" and "Pickup" option so it won't be 
> visible to authorized users who login.
> Thanks.
> Shane
> On Thu, Oct 25, 2018 at 4:07 AM Jules Field via ZendTo <zendto at zend.to 
> <mailto:zendto at zend.to>> wrote:
>     Shane,
>     On 24/10/2018 20:51, Shane via ZendTo wrote:
>>     Hello
>>     I've just finished installing zend.to
>>     <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fzend.to&data=01%7C01%7CJules%40ecs.soton.ac.uk%7Cfd6cebc05dc946b2713108d639ea34bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=mdR4MmVIXUR9XqFoPOpgmtdG%2FpzSkIrY6I0YN%2Bh4F7s%3D&reserved=0>
>>     in my centos 7. is it possible
>>     to lock down the users who login to send files to one particular
>>     recipient, not be able to add any other email address?  I browsed
>>     through
>>     preferences.php and couldn't find any reference to it unless I
>>     missed something.
>     Not currently, no.
>     You could hard-wire into the template
>     /opt/zendto/templates/new_dropoff.tpl like this:
>     * Right near the top, put your fixed recipient info into the
>     variables "presetToName" and "presetToEmail".
>     * Search for 'id="addRecipients"'. Add to that <a> tag an
>     attribute 'style="display:none"'.
>     That would stop it appearing, which may be enough for your needs.
>>     Also is it possible to lock down to allow only Excel files to be
>>     uploaded?
>     No. There's pretty much no way of *reliably* detecting that a file
>     is an Excel file.
>     And don't suggest *.xls or *.xlsx. Then people just rename their
>     p**n/w*r*z before sending it.
>     Sorry!
>     Jules.
>>     thanks i
>>     shane
>>     _______________________________________________
>>     ZendTo mailing list
>>     ZendTo at zend.to  <mailto:ZendTo at zend.to>
>>     https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjul.es%2Fmailman%2Flistinfo%2Fzendto&data=01%7C01%7CJules%40ecs.soton.ac.uk%7Cfd6cebc05dc946b2713108d639ea34bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=i%2FQ4BIYymCnsMKYR%2B71Hvn%2FMYIcvFlcQ4T5sFU1YYuA%3D&reserved=0
>     Jules
>     -- 
>     Julian Field MEng CEng CITP MBCS MIEEE MACM
>     'In Flanders fields the poppies blow
>       Between the crosses, row on row,
>       That mark our place: and in the sky
>       The larks still bravely singing fly
>       Scarce heard amid the guns below.
>       We are the dead: Short days ago,
>       We lived, felt dawn, saw sunset glow,
>       Loved and were loved: and now we lie
>       In Flanders fields!
>       Take up our quarrel with the foe
>       To you, from failing hands, we throw
>       The torch: be yours to hold it high
>       If ye break faith with us who die,
>       We shall not sleep, though poppies grow
>       In Flanders fields.' Lieutenant Colonel John McCrae
>     Composed at the battlefront on May 3, 1915
>     during the second battle of Ypres, Belgium
>     www.Zend.To  <http://www.Zend.To>
>     Twitter: @JulesFM
>     _______________________________________________
>     ZendTo mailing list
>     ZendTo at zend.to <mailto:ZendTo at zend.to>
>     http://jul.es/mailman/listinfo/zendto
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto



'There have been nearly 3000 Gods so far but only yours actually exists.
  The others are silly made up nonsense. But not yours. Yours is real.' - Anon

Twitter: @JulesFM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20181031/3a6e48e4/attachment.html>

More information about the ZendTo mailing list