hackernewsclone/README.md

35 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2024-02-23 21:17:11 +01:00
# hacker news clone
2024-02-23 21:16:00 +01:00
2024-02-23 21:40:00 +01:00
![](https://img.photouploads.com/file/PhotoUploads-com/SRE3.png)
2024-02-23 21:17:11 +01:00
a bad hacker news clone made in php
2024-02-23 21:40:00 +01:00
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)
2024-02-23 21:17:11 +01:00
# setup
2024-02-23 21:40:00 +01:00
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!!!
2024-02-23 21:46:39 +01:00
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