Hello,
I have userman version 4 but I can edit end time and left time with API (php or other )
please help me to do this job.
$API->write('/tool/user-manager/user/add',false);
$API->write('=subscriber=admin',false);
$API->write('=name='.$username,false);
$API->write('=password='.$password,false);
$API->write('=last-seen=never',false);
$API->write('=credit-count=1',false);
$API->write('=credit-left='.$type,false);
$API->write('=credit-duration='.$type,false);
$API->write('=credit-price=0',false);
$API->write('=credit-time-added='.$type);
$ARRAY = $API->read();
$API->comm("/tool/user-manager/user/add", array(
"subscriber" => "admin",
"name" => $username,
"password" => $password,
"last-seen" => "never",
"credit-count" => "1",
"credit-left" => $type,
"credit-duration" => $type,
"credit-price" => "0",
"credit-time-added" => $type
));
I get "argument error" when I want to add new user to userman!!!Code: Select all$API->write('/tool/user-manager/user/add',false); $API->write('=subscriber=admin',false); $API->write('=name='.$username,false); $API->write('=password='.$password,false); $API->write('=last-seen=never',false); $API->write('=credit-count=1',false); $API->write('=credit-left='.$type,false); $API->write('=credit-duration='.$type,false); $API->write('=credit-price=0',false); $API->write('=credit-time-added='.$type); $ARRAY = $API->read();
Please help me!!
Also I testCode: Select all$API->comm("/tool/user-manager/user/add", array( "subscriber" => "admin", "name" => $username, "password" => $password, "last-seen" => "never", "credit-count" => "1", "credit-left" => $type, "credit-duration" => $type, "credit-price" => "0", "credit-time-added" => $type ));