Turning Authentication On

Explorer-like frontend add-on to upload/download.
aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Turning Authentication On

Post by aevideoweb »

Greetings,
I'm trying to turn on the login engines in both Jfileupload and explorer.
Here are what I have appended to both .js files.

document.writeln('authentication="auto">');
document.writeln('<PARAM NAME="authentication" VALUE="auto">');

Is this correct?

Thanks,
AE Video Web

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Turning Authentication On

Post by support »


aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Re: Turning Authentication On

Post by aevideoweb »

Greetings again,
I would like the customer to login in with a given username and password.

I've read the directions you have sent me to.

I've tried configuring these files with and without references to authentication in different instances. I've left them with logins and passwords. Nothing is working.

applet_http.js
applet_http_explorer.js
i18n.properties
i18_bar

I apologize for my lack of expience.
May I ask you be clear on what files have which lines of code?

Thank you
AE VideoWeb

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Turning Authentication On

Post by support »

Not sure to understand. You want (1) end-user to fill in both username and password ? or (2) have both username/password already setup to avoid end-user to fill in them ?

In http://www.colemantranscriptions.com/ap ... xplorer.js, I see:
document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="username" VALUE="cole"> ');
document.writeln('<PARAM NAME="password" VALUE=""> ');

Which is correct, to display "cole" as username and an empty password. However, you're using HTTP transfer, not FTP so you need to register the login/password somewhere and protect the remote folder where process.jsp and explorer.jsp are installed. You should add a .htaccess file to protect the remote folder.

aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Re: Turning Authentication On

Post by aevideoweb »

Thank you, I understand now. I will give it a try.
Tom

aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Re: Turning Authentication On

Post by aevideoweb »

Greetings once again,
I really appreciate the time you all are taking to help me and all of us out.
I'm continuing to try and get explorer up and going. I've found after many hours of configuring and testing that my server doesn't support the Java Applet like they told me. I'm now using the PHP configuration. The interface does upload files to my specified directory, but the interface doesn't see the directory for download from the server.
My question is: Does the explorer.php work in conjunction with the applet_http_explorer.js and process.php together?

Thanks,
Tom

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Turning Authentication On

Post by support »

Yes, it does.
Did you follow instructions in JDiskExplorer readme.txt (at the end) to declare explorer.php in process.php:

To install HTTP transfer with PHP script available in add-on section:
(See: http://www.jfileupload.com/products/tools/index.html)

1 - Copy explorer.php, available in server-side/php folder, into
the same folder including process.php.

2 - Edit process.php and add the following line just after the end
of emu_getallheaders() function and before ?> :
include "explorer.php";

aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Re: Turning Authentication On

Post by aevideoweb »

Greetings once again,
I have copied the Explorer.php in the root of the website on the server along with the Process.php.
Here's what I've configured in Process.php according to your instructions:
function emu_getallheaders()
{
foreach($_SERVER as $h=>$v)
if(ereg('HTTP_(.+)',$h,$hp))
$headers[$hp[1]]=$v;
return $headers;
include "explorer.php";
}
?>
The server side of Explorer is not seeing the server.
Thanks
AEVideoWeb

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Turning Authentication On

Post by support »

Nope, almost correct but it must be:

function emu_getallheaders()
{
foreach($_SERVER as $h=>$v)
if(ereg('HTTP_(.+)',$h,$hp))
$headers[$hp[1]]=$v;
return $headers;
}
include "explorer.php";
?>

aevideoweb
Posts: 19
Joined: Sat May 31, 2008 1:11 am

Re: Turning Authentication On

Post by aevideoweb »

Off subject, started new thread
Last edited by aevideoweb on Fri Jun 20, 2008 3:01 am, edited 1 time in total.

Post Reply