zer.ooo-web/bin/create-invite.php

14 lines
301 B
PHP
Raw Normal View History

2016-04-03 13:10:16 +00:00
<?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";