Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit fa5e9a3

Browse files
authored
Update README.md
Updated
1 parent 4ef652a commit fa5e9a3

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,24 @@
22
This is a very sucky admin panel that is in pre-pre-pre-pre-pre-pre-pre-pre-alpha stages. So far it can run shell commands, and basic MySQL queries. It has a simple UI, and the passwords in the database are now hashed, as opposed to the plaintext they used to be.
33

44
## Set-Up
5-
To set it up, create a MySQL database, with the fields `name` and `password`. Put your desired username in the `name` field, and the password in the `password` field. The password must be PHP hashed, to do so, run:
5+
6+
First create a MySQL database by running:
7+
8+
```MySQL
9+
CREATE DATABASE database_name_goes_here;
10+
```
11+
12+
To set it up, create a MySQL table, with the fields `name` and `password`, to do so run:
13+
14+
```shell
15+
CREATE TABLE users(name VARCHAR(30) NOT NULL, password VARCHAR(50) NOT NULL);
16+
```
17+
Then put your desired username in the `name` field, and the password in the `password` field.
18+
The password must be PHP hashed, to do so, run:
619

720
```shell
821
php -r 'echo password_hash("password", PASSWORD_DEFAULT);'; echo ""
922
```
10-
on a LAMP install,and that's the password you put in to the database.
23+
on a LAMP install, make sure to put this password back in the MySQL table...
24+
25+
Finally, change the values in the <b>user.php</b> file to match your own.

0 commit comments

Comments
 (0)