18 lines
537 B
PHP
18 lines
537 B
PHP
<?php
|
|
|
|
require 'ncc';
|
|
|
|
import('net.nosial.federationlib');
|
|
$federationlib = new \FederationLib\FederationLib();
|
|
|
|
// loop 50 times to create 50 clients
|
|
for($i = 0; $i < 50; $i++)
|
|
{
|
|
$client = new \FederationLib\Objects\ClientRecord();
|
|
$client->setDescription('This is a test client generated by a test script.');
|
|
$client->enableAuthentication();
|
|
|
|
$uuid = $federationlib->getClientManager()->registerClient($client);
|
|
|
|
print(sprintf('Client UUID: %s', $uuid) . PHP_EOL);
|
|
}
|