Hi,
Perhaps I missed it but is there some kind of API available since I want to add access to installatron from my remote administration system.
Regards,
Michel
<?php
$d = unserialize(file_get_contents("/home/admin/.installatron/.groups"));
foreach ( array_keys($d) as $i )
{
if ( $d[$i]["label"] === $argv[1] )
{
$d[$i]["for"][$argv[2]] = true;
break;
}
}
$fp = fopen("/home/admin/.installatron/.groups","w");
flock($fp,2);
fwrite($fp,serialize($d));
fclose($fp);
?>/usr/bin/php -c /usr/local/installatron/etc/php.ini -f
/path/to/addtogroup.php 'group1' 'newuser1'Return to Suggestions and Feedback
Users browsing this forum: No registered users and 15 guests