zer.ooo-web/bin/create-invite.php
2016-04-03 15:10:16 +02:00

14 lines
No EOL
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";