Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 19. apríl 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpWebFileManager  »  Fórum  »  HTTP Password

phpWebFileManager General     HTTP Password
Odoslať novú tému   Odpovedať na tému    
 
ricky     Založený: 08.03.2004   Príspevky: 5  
Príspevok Zaslal: 2004-03-09 17:05
Návrat hore  Odpovedať s citátom     

Hi,

first of all, sorry for my bad english..

This program is fantastic but I've only one problem with the password and username from HTTP

I uncommented in config.inc.php the command require_once 'plugins/auth.php'; , in the file auth.php in plugin directory I choose my parametres, but when I open the index.php the PANNEL for password ask for three times the User e Pass and then it told me that I failure! Somebody can help me to guide me for the correct system that I do that?
Thank you very much
Ricky

 
ricky     Založený: 08.03.2004   Príspevky: 5  
Príspevok Zaslal: 2004-03-11 19:26
Návrat hore  Odpovedať s citátom     

no helpers, please....
ask me if you have a problem to understand my problem.
Thanks

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-03-16 14:21
Návrat hore  Odpovedať s citátom     

Did you edit username/password in the auth.php file?

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
ricky     Založený: 08.03.2004   Príspevky: 5  
Príspevok Zaslal: 2004-03-16 14:29
Návrat hore  Odpovedať s citátom     

yes, I did,
If you want I'll pass my phase job for installing it.
I think that I wrong in a very small point in the config.inc.php

 
ricky     Založený: 08.03.2004   Príspevky: 5  
Príspevok Zaslal: 2004-03-16 15:29
Návrat hore  Odpovedať s citátom     

So, this is my auth.php

Kód:
<?php

/* $Platon: phpWebFileManager/plugins/auth.php,v 1.3 2003/12/15 13:48:25 nepto Exp $ */

if (! isset($PHP_AUTH_USER) || ! isset($PHP_AUTH_PW)
      || $PHP_AUTH_USER != 'ricky' || $PHP_AUTH_PW !='testpass') {

   header('WWW-Authenticate: Basic realm="phpWebFileManager authentication"');
   header('HTTP/1.0 401 Unauthorized');
   echo '<center><h1>Riprova, hai sbagliato User o password</h1></center>';
   exit;

} else {

   // sucessfully authenticated

}

?>


and this is my config.inc.php file:

Kód:
<?php

/*
* phpWebFileManager - simple file management PHP script
*
* config.inc.php - configuration file
* ____________________________________________________________
*
* Developed by Ondrej Jombik <nepto@platon.sk>
* Copyright (c) 2001-2003 Platon SDG, http://platon.sk/
* All rights reserved.
*
* See README file for more information about this software.
* See COPYING file for license information.
*
* Download the latest version from
* http://platon.sk/projects/phpWebFileManager/
*/

/* $Platon: phpWebFileManager/config.inc.php,v 1.26 2003/12/20 18:44:15 nepto Exp $ */


require_once 'plugins/auth.php';



$fm_cfg['origvars'] = '';


$fm_cfg['lang'] = 'ita';


$fm_cfg['dir']['root']  = 'changefile/';
$fm_cfg['dir']['start'] = 'http://www.mysite.com/web/upload/changefile/';


Sorry but I think that if I pass the code is more comprensible, so you can view in one second if I do a stupid error.

Thank you very much,
Ricky

 
ricky     Založený: 08.03.2004   Príspevky: 5  
Príspevok Zaslal: 2004-03-18 12:13
Návrat hore  Odpovedať s citátom     

mmm, it's very hard to resolve this problem eh eh...

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-03-27 21:42
Návrat hore  Odpovedať s citátom     

Your settings are wrong.

This is written in config file.

Kód:

/*
* Directories constants
*
* First constant defines root directory. phpWebFileManager guarantee
* that is impossible to get to the higher level. This parameter could
* be only relative to the phpWebFileManager script on the same web
* server. Support for absolute path will be added nearly in future.
*
* Second constant defines starting directory. It says where to start
* when it is runned first time of session. Remember that starting
* directory is relative to root directory.
*/

$fm_cfg['dir']['root']  = '';
$fm_cfg['dir']['start'] = '';


So set $fm_cfg['dir']['root'] and $fm_cfg['dir']['start'] in correct way.

I will suggest you to leave $fm_cfg['dir']['start'] empty.

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
polytan     Založený: 26.09.2007   Príspevky: 1  
Príspevok Zaslal: 2007-09-26 10:39
Návrat hore  Odpovedať s citátom     

I've the same problem as him.

I've changed nothind into config.inc.php

When I go to the php script, it runs well without any password, but when I put a pass, it fails.

The message displayed explian that I try to put a password at http://localhost instead of http://localhost/~polytan/

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2007-09-28 10:04
Návrat hore  Odpovedať s citátom     

change $PHP_AUTH_USER to $_SERVER['PHP_AUTH_USER']

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov