mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
16 lines
351 B
PHP
16 lines
351 B
PHP
![]() |
#!/usr/bin/php
|
||
|
<?php
|
||
|
|
||
|
include("config.php");
|
||
|
include("includes/functions.php");
|
||
|
|
||
|
if($argv[1] && $argv[2] && $argv[3]) {
|
||
|
|
||
|
mysql_query("INSERT INTO `users` (`username`,`password`,`level`) VALUES ('".$argv[1]."',MD5('".$argv[2]."'),'".$argv[3]."')");
|
||
|
|
||
|
} else {
|
||
|
echo("Add User Tool\nUsage: ./adduser.php <username> <password> <level 0-10>\n");
|
||
|
}
|
||
|
|
||
|
?>
|