35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# hacker news clone
|
|
|
|
![](https://img.photouploads.com/file/PhotoUploads-com/SRE3.png)
|
|
|
|
a bad hacker news clone made in php
|
|
|
|
this was created on garbage free hosting so it probably works anywhere you can get php 7.3 and some new version of mysql
|
|
|
|
(yes it breaks after php 8.0 i dont care to figure out why)
|
|
|
|
# setup
|
|
|
|
1. copy the files over to your server
|
|
2. modify `config.php` to use your database login, base url, and email
|
|
3. import `database.sql` into your database
|
|
4. go to whatever your base url is set as
|
|
5. profit i think idk
|
|
|
|
# why you shouldn't use this
|
|
|
|
- the account system is from some tutorial
|
|
- there's probably some vulnerability that allows code execution
|
|
- comments SUCK!!! they look so awful
|
|
- it uses mysqli instead of something more secure like pdo
|
|
- the logout button is always visible even when you log out
|
|
- the navbar buttons are inconsistent
|
|
- the colors are ugly!!!
|
|
|
|
|
|
anyways this was just a project for fun lolol
|
|
|
|
|
|
i had a slightly improved version with a discord webhook or something but i can't find it right now
|
|
|
|
if i find it, i'll probably add it later |