a bad hacker news clone made in php
account | ||
com.php | ||
comments.php | ||
config.php | ||
database.sql | ||
index.php | ||
LICENSE | ||
README.md | ||
sub.php | ||
submit.php | ||
users.php |
hacker news clone
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
- copy the files over to your server
- modify
config.php
to use your database login, base url, and email - import
database.sql
into your database - go to whatever your base url is set as
- 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