Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Monday, October 26, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpWebFileManager  »  Forum  »  HTTP Password

phpWebFileManager General     HTTP Password
Post new topic   Reply to topic    
 
ricky     Joined: 08 Mar 2004   Posts: 5  
Post Posted: 2004-03-09 17:05
Back to top  Reply with quote     

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     Joined: 08 Mar 2004   Posts: 5  
Post Posted: 2004-03-11 19:26
Back to top  Reply with quote     

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

 
nepto     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2004-03-16 14:21
Back to top  Reply with quote     

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     Joined: 08 Mar 2004   Posts: 5  
Post Posted: 2004-03-16 14:29
Back to top  Reply with quote     

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     Joined: 08 Mar 2004   Posts: 5  
Post Posted: 2004-03-16 15:29
Back to top  Reply with quote     

So, this is my auth.php

Code:
<?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:

Code:
<?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     Joined: 08 Mar 2004   Posts: 5  
Post Posted: 2004-03-18 12:13
Back to top  Reply with quote     

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

 
nepto     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2004-03-27 21:42
Back to top  Reply with quote     

Your settings are wrong.

This is written in config file.

Code:

/*
* 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     Joined: 26 Sep 2007   Posts: 1  
Post Posted: 2007-09-26 10:39
Back to top  Reply with quote     

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     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2007-09-28 10:04
Back to top  Reply with quote     

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 .
 
denisbeta     Joined: 25 Aug 2023   Posts: 3998  
Post Posted: 2024-07-27 06:21
Back to top  Reply with quote     

https://telegra.ph/Sale-07-26-4
https://graph.org/Sale-07-26-4

Hapanix - ID
http://hapanix.fair-2sale.com/id/1/?track_url=URL-197AB-2ACFB
https://x.com/denisyakovlev68/status/1816875421239246907
http://hapanix.fair-2sale.com/id/2/?track_url=URL-F47E5-7512F
https://x.com/denisyakovlev68/status/1816876097482403862

Eyelab - ID
http://eyelab.fair-2sale.com/id/1/?track_url=URL-0A160-2379F
https://x.com/denisyakovlev68/status/1816876924066791886
http://eyelab.fair-2sale.com/id/2/?track_url=URL-26C09-D3F2B
https://x.com/denisyakovlev68/status/1816877639141109784
http://eyelab.fair-2sale.com/id/3/?track_url=URL-30A4A-B7798
https://x.com/denisyakovlev68/status/1816881187878748271

MuscleArt - PH
http://muscleart.fair-2sale.com/ph/pre/1/?track_url=URL-881F0-C3BD7
http://muscleart.fair-2sale.com/ph/1/?track_url=URL-881F0-C3BD7?track_id=338552314

Hemoroclear - BA
http://hemoroclear.fair-2sale.com/ba/pre/1/?track_url=URL-CBFDE-1677B
https://x.com/denisyakovlev68/status/1816882348094595146
http://hemoroclear.fair-2sale.com/ba/1/?track_url=URL-CBFDE-1677B?track_id=338552330
https://x.com/denisyakovlev68/status/1816882796981551534
http://hemoroclear.fair-2sale.com/ba/2/?track_url=URL-C1477-0E8C2
https://x.com/denisyakovlev68/status/1816883405856055702
http://hemoroclear.fair-2sale.com/ba/3/?track_url=URL-38CAC-DA48D
https://x.com/denisyakovlev68/status/1816884845924270102

Wrinkless - BA
http://wrinkless.fair-2sale.com/ba/pre/1/?track_url=URL-6F2F8-C561C
https://x.com/denisyakovlev68/status/1816886842018660680
http://wrinkless.fair-2sale.com/ba/1/?track_url=URL-6F2F8-C561C?track_id=338552506
https://x.com/denisyakovlev68/status/1816887194822541604
http://wrinkless.fair-2sale.com/ba/pre/2/?track_url=URL-A1EB5-A7A14
https://x.com/denisyakovlev68/status/1816889749568974944
http://wrinkless.fair-2sale.com/ba/2/?track_url=URL-A1EB5-A7A14?track_id=338552602

Hemoroclear - RS
http://hemoroclear.fair-2sale.com/rs/pre/1/?track_url=URL-8991F-2324D
http://hemoroclear.fair-2sale.com/rs/1/?track_url=URL-8991F-2324D?track_id=338552622

Testox - TR
http://testox.fair-2sale.com/tr/pre/1/?track_url=URL-CF786-13A2F
https://x.com/denisyakovlev68/status/1816891014428422312
https://testox.fair-2sale.com/tr/1/?track_url=URL-CF786-13A2F?track_id=338552644
https://x.com/denisyakovlev68/status/1816891370667409423
http://testox.fair-2sale.com/tr/2/?track_url=URL-0EECB-573ED
https://x.com/denisyakovlev68/status/1816891960214585356


Prosofil th
https://market.50discount-sale.com/NttlJ2/
https://x.com/denisyakovlev68/status/1816896072188559561
http://prosofil-new.org/?channel=NttlJ2

Parofin th
https://market.50discount-sale.com/COB2K5/
https://x.com/denisyakovlev68/status/1816897719530815732
http://parofin-new.org/?channel=COB2K5
https://x.com/denisyakovlev68/status/1816898245521764504

Katiofin th
https://market.50discount-sale.com/RyEYlf/
https://x.com/denisyakovlev68/status/1816899374875889894
http://katiofin-new.org/?channel=RyEYlf
https://x.com/denisyakovlev68/status/1816900570428641534

Tansonus th
https://market.50discount-sale.com/HdtaRc/
https://x.com/denisyakovlev68/status/1816902012161982623
http://tansonus-new.org/?channel=HdtaRc
https://x.com/denisyakovlev68/status/1816902501003886993

Hanoxol th
https://market.50discount-sale.com/BLqjJ5/
http://hanoxol-new.org/?channel=BLqjJ5

Optifita th slim
https://market.50discount-sale.com/jnm8WK/
https://x.com/denisyakovlev68/status/1817061087256494354
https://optifita-new.org/?channel=jnm8WK
https://x.com/denisyakovlev68/status/1817061864528052434

Dianix th diabete
https://market.50discount-sale.com/TucZMk/
https://x.com/denisyakovlev68/status/1817062860297765324
https://dianix-new.org/?channel=TucZMk
https://x.com/denisyakovlev68/status/1817063459940704505

Duroxen mens th
https://market.50discount-sale.com/dJnbcU/
https://x.com/denisyakovlev68/status/1817064619296649301
https://duroxen-new.org/?channel=dJnbcU
https://x.com/denisyakovlev68/status/1817065488507372028

Hamerol th
https://market.50discount-sale.com/HYcvq2/
https://x.com/denisyakovlev68/status/1817066305268404517
https://hamerol-new.org/?channel=HYcvq2
https://x.com/denisyakovlev68/status/1817066769754059129

11

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy