Re: [weps-devel] Re: [weps-users] Uploaded files don't exist
Status: Beta
Brought to you by:
aleix
From: Aleix C. F. <aco...@ac...> - 2002-11-21 22:09:17
|
Anders Bruun Olsen <an...@br...> writes: > Moved from weps-users to weps-devel > > My idea would probably be to create the tarball to a tmp dir and then > use php's filepointer feature together with a correct header to send > that file to the user .. then just do a check for tarballs in the tmp > location that are more than say 2 hours old and remove them .. that > check could be triggered when a random number is higher than X in a > common header so that the check isn't done everytime a page is loaded.. > i thought the same thing but i did not added it... may be someone can try it? any volunteers? ;) > > > another reason for this "all file checking" feature not being > > implemented is that WePS is right now 100% javascript free, that means > > it works in all browsers (even lynx). > > That is a nice thing, but as browsers without javascript capabilities > ignore <script> tags (where a function check all boxes would be > defined) and the box/button that calls the javascript function is partly > ignored, then it won't hurt those browsers, they will still be able to > use WePS.. > yeah. you're right. what i wanted to say is that all weps features must run in any browser, that's why: JavaScript free! :) > > That seems to be doing unnecessary work.. the javascript can be "hidden" > in the pages so that non-javascript browsers will just ignore it. As > long as no core features depend upon javascript it should be alright. [snip] yeah. right > Come to think of it, what would you say to a PHP way of doing an invert > selection button?.. i would add links saying "Check all | Uncheck all" and simply call the same page with a variable like $checkall=true or $uncheckall=true. and then check these variables in the same place where i check if the checkbox are activated (that is in inc/filelisttable.php) >if I make it, will you include it? > of course!!! i don't have many time for weps. i'll be glad if someone add more futures, or even fix some. > > Hereby done (isn't doing things the right way neat? ;) > doing things the right way is the way ;). eventhough, weps first version (not 0.1) was coded in really few days, that means not very good code. i've tried to cleanup... but there are always things to clean. best regards, aleix |