add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

45
lasuca/inc/adminstuff.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
if(isset($_POST['add']))
{
include 'inc/dbconfig.php';
include 'inc/opendb.php';
$username = $_POST['username'];
$password = $_POST['password'];
$query = "INSERT INTO tbl_auth_user (user_id, user_password) VALUES ('$username', PASSWORD('$password'))";
mysql_query($query) or die('Error, insert query failed');
$query = "FLUSH PRIVILEGES";
mysql_query($query) or die('Error, insert query failed');
include 'inc/closedb.php';
echo "The new grower has been added!";
}
else
{
?>
<form method="post">
<table width="400" border="0" cellspacing="1" cellpadding="2">
<u>Use the form below to add a new grower login.</u>
<tr>
<td width="100">Username</td>
<td><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td width="100">Password</td>
<td><input name="password" type="text" id="password"></td>
</tr>
<tr>
<td width="100">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="100">&nbsp;</td>
<td><input name="add" type="submit" id="add" value="Add New User"></td>
</tr>
</table>
</form>
<?php
}
?>