a bad hacker news clone made in php
Find a file
2024-02-23 20:48:05 +00:00
account import files 2024-02-23 20:40:00 +00:00
com.php minor fixes 2024-02-23 20:45:08 +00:00
comments.php import files 2024-02-23 20:40:00 +00:00
config.php import files 2024-02-23 20:40:00 +00:00
database.sql america/los_angeles mysql timezone 2024-02-23 20:48:05 +00:00
index.php import files 2024-02-23 20:40:00 +00:00
LICENSE Initial commit 2024-02-23 20:16:00 +00:00
README.md small message on readme 2024-02-23 20:46:39 +00:00
sub.php minor fixes 2024-02-23 20:45:08 +00:00
submit.php import files 2024-02-23 20:40:00 +00:00
users.php import files 2024-02-23 20:40:00 +00:00

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

  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