PDA

View Full Version : Help in Importing text file (type 2)


mshebi
04-05-2006, 04:33 PM
Hi

I have read bigstar thread which is here (http://www.inicom.net/forum/showthread.php?s=&threadid=1889) but did find any information related to folder.

I want to organize different type of sites in different folders to make it convenient by using type 2. Please guide me how can I do it?

Desperately needed your help

Regards

mshebi

bigstar
04-06-2006, 01:47 AM
The group must be manually set during import. The text format doesn't provide folder support.

mshebi
04-06-2006, 02:37 AM
Ohhh! is there a way to replace username/password in sites.dat by using any text editor. Actually I have a forum in which we share 99FTPs and every user has his own username password for all FTPs, so how can we do it easily?

bigstar
04-06-2006, 03:27 PM
I'm afraid not. Although the next release of FlashFXP will include a new XML site import/export format that we've designed with websites in mind.

mshebi
04-07-2006, 12:51 AM
can you provide a simple utility which can change username/passwords at once?

Harm
04-07-2006, 04:49 AM
If you have perl installed, you can use something like
perl -e "while (<>) {$_ =~ s/^User Name: .*$/User Name: yourusername/; $_ =~ s/^Password: .*$/Password: yourpass/; print $_}" importfile.txt >exportfile.txt
This will edit all the "User Name:" and "Password:" lines to write "yourusername" and "yourpass" (don't forget to edit the latest two).

Whatever language your forum is using (most probably PHP or perl), you can use similar regexps to generate the file dynamically from a single template. You only need to use variables instead of fixed usernames and passwords. Note that this means you have to store usernames/passwords somewhere on your forum/website/database.

mshebi
04-07-2006, 06:31 AM
great! I got it
but it will be very helpful if you make a simple utility for windows to change username/password in sites.dat ... we can replace username easily by opening sites.dat in any text editor and using search and replace function, but password cannot replaced due to encryption.
Please help