Initial Commit

This commit is contained in:
Netkas 2023-06-04 14:23:51 -04:00
parent 93a0b9be02
commit 6e599b2c0c
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
99 changed files with 10836 additions and 4 deletions

View file

@ -0,0 +1,18 @@
<?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\Client();
$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);
}