Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 11-01-2005, 02:58 PM   #1
Jog
Member
ioFTPD Foundation User
 
Join Date: Jul 2003
Posts: 83
Default Need help with php function : io_user_save

i try to update a user with php function io_user_update but i don't successful update ips field, for example this script for write the userfile content of the user with id 102 on the userfile of user with id 101 with a fresh installation of ioftpd :

$io_userHandle = io_user_open(102);

$io_userData = io_user_print($io_userHandle);

io_user_close($io_userData);

print($io_userData);

$io_userHandle = io_user_open(101);

print(io_user_print($io_userHandle));

io_user_lock($io_userHandle);

io_user_save($io_userHandle,$iouserdata);

io_user_unlock($io_userHandle);

print(io_user_print($io_userHandle));

io_user_close($io_userData);


update all fields but no 'ips' and 'home', this is the output:

wkup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 wkdn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 tagline Vote ioFTPD for president ratio 0 3 3 3 3 3 3 3 3 3 password 71f8e7976e4cbc4561c9d62fb283e7f788202acb monthup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 monthdn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 limits 0 0 1 1 5 ips *@* groups 1 flags 3A dayup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 daydn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 credits 0 0 0 0 0 0 0 0 0 0 allup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 alldn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 admingroups

wkup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 wkdn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 tagline baz00ka ratio 0 3 3 3 3 3 3 3 3 3 password 89bd21f83054d45f030018f148021306cdcbdb68 monthup 0 0 0 10 19437 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 monthdn 13 600128 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 limits 0 0 4 2 4 ips darkone@127.0.0.1 darkone@192.168.1.10 *@debian *@spawn home /home/darkone groups 100 flags 3HG dayup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 daydn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 credits 0 0 0 0 0 0 0 0 0 0 allup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 alldn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 admingroups 100

wkup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 wkdn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 tagline Vote ioFTPD for president ratio 0 3 3 3 3 3 3 3 3 3 password 71f8e7976e4cbc4561c9d62fb283e7f788202acb monthup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 monthdn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 limits 0 0 1 1 5 ips *@* darkone@192.168.1.10 *@debian *@spawn home /home/darkone groups 1 flags 3A dayup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 daydn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 credits 0 0 0 0 0 0 0 0 0 0 allup 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 alldn 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 admingroups 100


what the problem ??? Very thanks for support.
Jog is offline  
Old 11-02-2005, 06:04 AM   #2
Jog
Member
ioFTPD Foundation User
 
Join Date: Jul 2003
Posts: 83
Default

The problem is visible when new 'ips' field have less ips , for example if i try to update the user file with 3 ip , with a new userfile with 2 'ips' , the old user file remain unchanged; for example try to replace a userfile :

..... ips *@80.181.* *@80.182.* *@80.183.* ........

with a userfile :

..... ips *@80.181.* *@80.183.* ........

not return the correct result. The 'io_user_save' update only other fields ....

Then no possibilities to use io_user_save php function to delete a ip number from a userfile if this not replaced with another.
Jog is offline  
Closed Thread

Tags
allup, groups, home, monthup, password

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:26 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)