How I made the upload thingie

not uploady thingie but the account thingie hahjahaha

Accounts page exists here. It was originally a joke about me rolling my own auth(lol), but it now works somewhat.

In the homepage, there are two forms. One is for creating(spamming) accounts and one is for testing them.

Creating an account

When you fill out the form, a php script is called to do stuff. First, it makes sure you aren't tryna leak creds(tho there is not anything more than a username to leak hahaha). Then, it hashes your password. Takes those two and shoves it in a table. Simple

Testing an account

But does it work???!?!?! Yeah, just use the test form.

Literally all it does is sanitize input and checks the db for the info, and if you are you, it gives you the data in it.

"i ain't putting my password in yo awfull website!"

Okay meanie, heres all I keep about your account. So safe I don't put my real passwords in it either.

uplaod tihnei

After accounts, we go to uploading files. The form part of the uploads page has two parts: Account and File.

Account

Back to accounts, huh? The script for handling accounts is basically the same as the testing script, only it is embeded inside of the main upload script.

Upload

Now to the meat and potatoes and other food related items that aren't actually related to the thing I'm talking about but I should stop writ

All it do is check filesize and filetype. If it gud then it gets shoved into uploads.

Gallery thignie

This part breaks my brain, but it take picture in uploads/, make thumbnail, and put it in the html table.

It do it with Imagick. If something is not a picture, an ominous video icon (or sound icon) is put in it's place.


Back

Home