View Single Post
Old 11-01-2005, 02:58 PM  
Jog
Member
 
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