Not logged in. · Lost password · Register
Forum: Features request RSS
Global path dir command
skeet #1
Member since Oct 2003 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hi,

I'm using BrowseAMP with php/mysql/apache so I can put all requests in a data base to make stats and add some feature like limiting the number of request per user ...
But unfortunatly when there is two user browsing the mp3 directories if user1 click on dir "foo1" when user2 (who was in dir "foo2" for example) do a refresh then he reachs to dir "foo1"
So I'm wondering if there is a way to do global path dir command, something like this :
?dir=<#CurrentBrowserDirectory>\<#browser_enc_directoryname>

If there is no workaround, is it possible to add this feature to a next version ?
Thanks


Skeet
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I've just tried it. Can't say this happens to me.

What BrowseAmp version?

How did you wrap php/mysql/apache around BrowseAmp?
skeet #3
Member since Oct 2003 · 2 posts
Group memberships: Members
Show profile · Link to this post
I'm using BrowseAMP 2.04

It's not really a wrap, but a hook.
My apache server use port 8002.
I've modified the skin htmls, for example, in  row_browser_file.html :
<td class="tableBody" valign="top" width="98%"><a href="http://myserver:8002/jukebox/addSong.php?add=<#browser_enc_filename>"><#browser_filename></a></td>

the addSong.php add stats using filename and ip and redirect to playlist : header("Location: http://myserver/playlist.html");
Avatar
Henry (Administrator) #4
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is a very elegant way to pipe the requests through php. Maybe you can post your modified skin and give a short installation guide for anyone who is interested (we had a thread about that).

Give 2.05 a try. This version works for me.

Wait! There is something else I remember...
Does the header(); command use the HTTP header information from the original request or his own?
The authentication information is sent in the HTTP headers that come with every request. Maybe they get lost with the header(); call.
Try http://user:[email protected]/playlist.html in the client Browser. Not very safe but could point out the problem.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 166.5 ms (81.4 ms) · 53 database queries in 71.3 ms
Current time: 2018-12-18, 13:24:19 (UTC +00:00)