rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Flynsarmy

Pages: 1 2 3 ... 7
1
HFS ~ HTTP File Server / Re: Anonymous file deletion, move/copy macro errors
« on: September 26, 2009, 06:05:51 AM »
I'm not trying to block anonymous use, i'm trying to set the 'allow file deletion', 'allow file copying', 'allow file moving' property on a folder by folder basis for all users and anonymous users. I can't currently see a way to do this. Currently it just allows anonymous users to delete files which IMO is bad.

2
HFS ~ HTTP File Server / Anonymous file deletion, move/copy macro errors
« on: September 26, 2009, 05:11:42 AM »
Two more issues with macros. Firstly here http://www.rejetto.com/forum/index.php?topic=7437.0 you said that copy and move macros return space if the operation failed and could therefore be tested with a length macro in an if statement. I have a folder containing another folder called 'Folder B' and a file called 'File B'. If i perform this macro call:
Code: [Select]
{.if|{.length|{.move|{.postvar|src.}|{.postvar|destination.}.}.}|Operation failed|.}where 'src' and 'destination' are correct, nothing is returned even if 'src' doesn't exist. In other words the 'Move'
macro isn't checking that the file exists before trying to move it and is therefore returning no space.

Second problem: Anonymous file deletion. I've added a delete macro like so:
Code: [Select]
[delete]
{.if|{.length|{.delete|{.postvar|src.}.}|Operatoin failed.|.}

however anonymous users are then able to go to domain.com/~delete just like logged in users and delete files. I see no way in HFS to set delete/copy/move permissions for anonymous users... Sure I could do a logged in check on that macro but that would refuse anonymous users from being able to do these things if i DID want them to be able to...
Am i missing something?

3
RAWR-Designs / Re: Flash Uploader
« on: September 02, 2009, 04:29:17 AM »
I've been reading through this thread and have come up with a couple of ideas.

Firstly: How would you get the user/password TO flash without having it visible in the code? When you log in,
you enter your username and password into the form and hit submit - HFS logs you in. But then how would your
flash applet receive these login details without you either entering them again into the flash applet or visibly
sending the info to the applet in the code as it is loaded? That wouldnt' be a MAJOR security risk because you
already know your own user/password but it's still pretty dodgy in my opinion...

Anyway the idea I came up with that's kind of a compromise is to have a flash applet that does nothing more than
pop up a browse box. Our main problem (besides not having some fancy progress bars on upload) is that we can't
select multiple files at once. So i'm wondering if its possible to activate the applet as you click a browse button
which then pops up a browse box. You select your files and hit ok and flash then uses its externalinterface call or
whatever it is to send the file info back to javascript which in turn dynamically creates its file input boxes and
submits them with AJAX or whatever you want to do with them.

This would give the appearance of a complete HTML solution which allows multiple files to be selected instead of
just the one.

4
HFS ~ HTTP File Server / A couple of macro requests
« on: September 01, 2009, 07:40:59 AM »
I'm not sure if there are undocumented macros that already do this, but could you please add
{.exists.} - accepts path/path+filename. returns true if folder/file exists respectively.
{.isfile.} - accepts path/path+filename. returns true if path is a file instead of folder (some files dont have file extensions).
The reason for {.isfile.} is because if you have a file with no file extension it could look like a folder. also {.isfile.} could be combined with {.exists.} to determine if a file exists or a folder exists.

I was using filesize before but this returns 0 for empty files or folders (which would indicate that they dont exist) and md5 is ALOT slower - speed is important.

The reason i ask for these is because I currently use this code:
{.copy|{.postvar|src.}|{.postvar|destination.}.}
{.if|{.filesize|{.postvar|destination.}.}|1|0.}

It performs a copy then returns 1 if the destination file exists on the hard drive (successful copy) or 0 if the destination file doesn't exist (failed copy). This is perfect unless the file size is 0 in which case i have no way of telling if the destination file exists or not...

Another, much preferred solution would be to have both the move and copy macros return true on a successful operation and false on a failed operation. This would allow me to do this:
{.if|{.copy|{.postvar|src.}|{.postvar|destination.}.}|1|0.}

5
HFS ~ HTTP File Server / HFS PHP Support
« on: August 31, 2008, 04:53:46 AM »
A thought just occurred to me as to how to get PHP working with HFS.
Would it be possible to compile the template the way HFS currently does,
but rather than display online it would instead print the output to a text
file of random name in the HFS directory then call php.exe on that file
(outputting to the same file) then HFS simply copies the text file to
output.

eg.
HFS compiles to c:/<hfsdir>/12345.tmp
HFS calls: "c:/php/php.exe" -f "c:/<hfs dir>/12345.tmp" > 12345.tmp
HFS reads 12345.tmp file and prints to output

Of course the user would need to have PHP installed and in some option
somewhere they'd need to specify the location of the php.exe executable.

6
HFS ~ HTTP File Server / Re: Feature Request
« on: March 29, 2008, 12:45:12 PM »
How about adding a 'Locate File' option to the right click of file transfers in the bottom section of HFS
as people are downloading them? I know the option is currently available on the left but that doesn't
really help when you have a real folder that contains heaps of subfolders and hundreds of files.

'Locate File' would open windows explorer with that file selected (rather than just executing the file).

7
RAWR-Designs / Re: His Glory shall not be left to rot...
« on: March 02, 2008, 02:08:48 AM »
Rome is being rebuilt!

8
Beta / Re: Testing build #168
« on: January 07, 2008, 04:08:00 AM »
In this version i've noticed the icon in the taskbar doesn't count up from 0% as the downloads are continuing. It
just sits at 0%. Here's a screenshot.

9
HFS ~ HTTP File Server / Possible improvement - file search
« on: January 02, 2008, 01:14:22 AM »
I tried to search for <name>* and was waiting quite a while for HFS to complete its search. I clicked a
different folder in the breadcrumb trail (ToG) however HFS continued its search and wouldn't let me load
another folder until it was done. Would it be possible to check all new folder requests for the ip of the
person doing the search - if they match cancel the search (because the person would no longer be viewing
the search page when it was done anyway).


10
HFS ~ HTTP File Server / Re: Logging
« on: December 20, 2007, 06:52:18 AM »
Am i missing something?

11
HFS ~ HTTP File Server / Logging
« on: December 20, 2007, 03:25:10 AM »
I have 'don't log' enabled for a real, hidden folder called 'template' (TOG). However when people
view any folder on my HFS i get spammed with /template/images/_.gif lines in the log.

Is this a bug? Running 2.3.164.

12
HFS ~ HTTP File Server / Possible Improvement - Restrictions
« on: December 08, 2007, 04:16:33 AM »
Would it make more sense to have
Restrict Access - No Account
renamed to:
Restrict Access - No Restrictions?
'No Account' implies that you are restricted to not being able to log in with any account.

13
Beta / Re: Testing build #146
« on: November 27, 2007, 02:22:55 AM »
If it were just affecting the ToG, wouldn't it have fixed when i enabled 'Temporarily Reset Options'?
Doesn't that get rid of your current template and use the HFS default?

14
Beta / Re: Testing build #146
« on: November 25, 2007, 03:52:53 AM »
For some reason i can't log in anymore for both this latest version and the version before. I tried to access the root folder
and instead of opening the login page, it opened the login popup instead. Entered my username and password but it just
popped up the login box again. I also tried with 'Temporarily reset settings' checked. Still same thing. I'm using the same
login details i've always used.

I'm unsure if this is a related problem, but When i was setting a folder's 'Restrict Access' settings in the left pane of HFS,
the folder reported no users as having access even though several did. I clicked one of the users' names and when i went
back into the menu a whole bunch were checked (all the correct ones). I haven't been able to replicate this again, however.

One more problem, connections are being cut as soon as the person tries to load the page, and no log of their connection is
saved. That might have something to do with them just hitting the login popup, i don't know.

15
HFS ~ HTTP File Server / New Feature: Auto Update
« on: November 15, 2007, 08:33:28 AM »
I couldn't find the todo list so i'm not sure if you've already got this planned:
+ Automatically update
When an update is found (Only for 'check for updates automatically') HFS will automatically download the update
and wait until there are no current connections before running the update script.

Pages: 1 2 3 ... 7