Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

password change ?
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1301
Page 1 of 1

Author:  hups [ 20. Nov 2007, 18:03 ]
Post subject:  password change ?

hello i have a look in .htusers.php and change the passwort from test to another but the login is only with pw= test ?? why

how can i change the pw only for the uploader ???


i mean only the twg flash uploader .

mfg

Author:  TinyWebGallery [ 20. Nov 2007, 18:24 ]
Post subject: 

see the implementation - it's only a very basic impementation and very easy.

/Michael

Author:  hups [ 20. Nov 2007, 20:31 ]
Post subject: 

hallo
kannst du das bitte etwas genauer sagen gibt es da ein howto zu ?

Author:  TinyWebGallery [ 21. Nov 2007, 00:15 ]
Post subject: 

warum ein howto?

in der .htusers ist oben eine komplette Beschreibung
und in der tfu_config.php ist es genau eine Zeile, die das überprüft.

Ich weiss nicht, wo das Problem ist.

/Michael

Author:  hups [ 21. Nov 2007, 08:13 ]
Post subject: 

jo soweit ist das klar

nur hab ich folgendes prob und zwar hab ich das passwort und den benutzername von test,test geändert aber ich kann mich trotzdem nur mit test,test einloggen.

ich dachte man braucht es nur da ändern ?

Author:  TinyWebGallery [ 21. Nov 2007, 10:24 ]
Post subject: 

stimmt - hab das gerade getestet - das geht wunderbar.

Änderst du irgend ne falsche Datei?

/Michael

Author:  hups [ 21. Nov 2007, 11:49 ]
Post subject: 

hab die .htuser.php geändert

Code:
<?php
  /**
    * TWG Flash uploader 2.5
    *
    * Copyright (c) 2004-2007 TinyWebGallery
    * written by Michael Dempfle
   *
   *  Basic password file for TFU. Used for the easy login implemented
   *  in tfu_config.php
   */

   /** ensure this file is being included by a parent file */
   defined( "_VALID_TWG" ) or die( "Direct Access to this location is not allowed." );
   
   /* You can define users, passwords and their upload directories here! The directory has to exist!
      Create one internal array for one user.
   
      The array has the following structure
      1. Loginname
      2. Password (NOT encrypted - please change this if you want to have a more secure system!)
      3. Upload folder - The folder has to be created manually with the read/write permissions!
      4. Show the delete button. "", "true","false" are valid values! "" keeps the setting from the config!
      5. Enable folder handling. "", "true","false" are valid values! "" keeps the setting from the config!
         this does set $enable_folder_browsing $enable_folder_creation, $enable_folder_deletion,
         $enable_folder_rename   
   */
   $GLOBALS["users"]=array(
   array("test","test","../../","",""),
); ?>


da hab ich das geändert


Code:
$GLOBALS["users"]=array(
   array("admin","2307","../../","",""),
); ?>



die ../../ soll so sein .
damit der admin alle dateien auf der website sieht und darauf zugriff hat.

der admin soll der einzige benutzer sein.


muss das aktiv in der config sein ?

Code:
"$login_text=Please login
$relogin_text=Wrong Username/Password. Please retry

Author:  TinyWebGallery [ 21. Nov 2007, 12:06 ]
Post subject: 

$login="auth";

must du halt setzen.

/Michael

Author:  hups [ 21. Nov 2007, 12:16 ]
Post subject: 

hab ich gemacht trotzdem geht es nur mit test test

Code:
   CONFIGURATION
*/
$login = "auth"; // The login flag - has to set by yourself below "true" is logged in, "auth" shows the login form, "reauth" should be set if the authentification has failed. "false" if the flash should be disabled. 
$folder = "../../"; // this is the root upload folder.


Author:  TinyWebGallery [ 21. Nov 2007, 12:29 ]
Post subject: 

in der config wird die .htusers weiter unten eingelesen und ein Vergleich gemacht.

Das ist super simpel - meiner Meinung ist die .htusers.php nicht korrekt geändert. Hast du evtl eine Datei die ohne punkt ist, und die änderst du ?

/Michael

Author:  hups [ 21. Nov 2007, 14:12 ]
Post subject: 

hallo,

ne da ist nur die .htusers.php und eine gepackte htaccess.zip

sonst ist da keine andere.


in der config steht das

Code:
if (($login == "auth" || $login == "reauth") && $user != "") {
    include ($install_path . ".htusers.php");
    foreach ($GLOBALS["users"] as $userarray){
       if ($user == $userarray[0] && $pass == $userarray[1]){
            $login = "true";
            $folder = $userarray[2];
            if ($userarray[3] != "") {
              $show_delete = $userarray[3]; 
            }
            if ($userarray[4] != "") {
              $enable_folder_browsing = $userarray[4];   
              $enable_folder_creation = $userarray[4];
              $enable_folder_deletion = $userarray[4];   
              $enable_folder_rename = $userarray[4];
            }
            break;
         } else {
            $login = "reauth";
         }
     }
   }
   
   if ($login == "true"){
      $_SESSION["TFU_LOGIN"] = "true";
   }

Author:  hups [ 21. Nov 2007, 14:22 ]
Post subject: 

aha jetzt geht es hab di user.php nochmal hochgeladen

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/