Page 1 of 2

Turning Authentication On

Posted: Sun Jun 01, 2008 12:12 am
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

Re: Turning Authentication On

Posted: Sun Jun 01, 2008 8:04 am
by support

Re: Turning Authentication On

Posted: Tue Jun 03, 2008 1:02 am
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

Re: Turning Authentication On

Posted: Tue Jun 03, 2008 12:21 pm
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.

Re: Turning Authentication On

Posted: Wed Jun 04, 2008 1:53 am
by aevideoweb
Thank you, I understand now. I will give it a try.
Tom

Re: Turning Authentication On

Posted: Sat Jun 07, 2008 12:10 am
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

Re: Turning Authentication On

Posted: Sun Jun 08, 2008 8:56 am
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";

Re: Turning Authentication On

Posted: Tue Jun 17, 2008 1:06 am
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

Re: Turning Authentication On

Posted: Tue Jun 17, 2008 5:19 pm
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";
?>

Re: Turning Authentication On

Posted: Tue Jun 17, 2008 7:42 pm
by aevideoweb
Off subject, started new thread