Stand/Server Software/keygen/gen_basic.php
2024-10-16 11:20:42 +08:00

14 lines
263 B
PHP

<?php
require "common.php";
echo "--- Basic ---\n\n";
for($i = 0; $i < $argv[2]; $i++)
{
$key = generateKey(30);
$db->query("INSERT INTO `license_keys` (`key`, `privilege`, `note`) VALUES (?, 1, ?)", "ss", $key, $argv[1]);
echo "Stand-$key\n";
}
echo "\n";