cybergrungewebsite
just the most basic functions of the website.
upload handling
the artists folder contains custom upload.php
which handles uploads. the process of uploading is kind of shitty, as there are no SQL database entries for individual tracks, or for artists, just for albums. tracks are simply titled the name of the file. currently, a file called userdata.txt is created upon upload that stores data about who uploaded the album. if they are not logged in, it stores nothing. this could be done better with SQL but i havent done it yet. some people might have a problem with this because it technically means any logged in person can edit any album or upload under any artist name and so on. but i havent gotten that far
albums have various style options stored in SQL database. also, i am pretty sure that i use very inconsistent form sanitization methods which leads to a lot of fuckups with uploads that have any kind of special characters in the name :/
router.php
as of now, global rewrite rule leads to router. it handles dynamically generating album pages (including album editing features) and some other stuff, handles redirects to certain pages.
indexAR.php
main homepage, various content on it is changed almost daily but the general format stays the same ish
artists dir
this directory has custom upload.php as well as the php scripts for creating and editing album page styles, and "content management" for album "authors" including re-uploading album art, "nuking" the album. technically, anyone could greif other peoples albums because there is no authentication implemented for who is trying to edit an album, it just checks if they are logged in or not and if not denies editing.