You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
301 B
PHP
14 lines
301 B
PHP
<?php
|
|
|
|
include __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$baseDir = realpath(__DIR__ . '/../');
|
|
|
|
$core = new \Eater\Glim\Core();
|
|
$core->boot($baseDir);
|
|
|
|
$newInvite = new \Eater\Glim\Model\Invite();
|
|
$newInvite->setInvite(md5(rand(0, PHP_INT_MAX)));
|
|
$newInvite->save();
|
|
|
|
echo $newInvite->getInvite() . "\n"; |