Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 18. Apr 2024, 11:13

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: password change ?
PostPosted: 20. Nov 2007, 18:03 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
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


Top
 Profile  
 
 Post subject:
PostPosted: 20. Nov 2007, 18:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
see the implementation - it's only a very basic impementation and very easy.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Nov 2007, 20:31 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
hallo
kannst du das bitte etwas genauer sagen gibt es da ein howto zu ?


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 00:15 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 08:13 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
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 ?


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 10:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
stimmt - hab das gerade getestet - das geht wunderbar.

Änderst du irgend ne falsche Datei?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 11:49 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
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


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 12:06 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
$login="auth";

must du halt setzen.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 12:16 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
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.



Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 12:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 14:12 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
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";
   }


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 14:22 
Offline

Joined: 11. Nov 2007, 22:07
Posts: 31
aha jetzt geht es hab di user.php nochmal hochgeladen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy