forked from zer.ooo/web
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";
|