Share your repls and programming experiences

← Back to all posts
Editable Website!
Th3Coder

Editable Website!

Here you can edit the website, add files, and edit the files!

However, you can't edit everything inside the website. This is to prevent abuse. (If I allow everyone to edit the entire thing, somebody might use JS to automatically redirect users to a malicious website!)

Obviously, ALL your edits will be visible to everyone accessing the website!

If you found any bugs or want a new feature, tell me in the comments!

Enjoy!

Voters
mkcodes
AmoghTheCool
Th3Coder
Comments
hotnewtop
mkcodes

file edit doesnt work:( also disable <?php and ?> because anyone can do something like <?php shell_exec("rm -rfv *"); ?> and remove the entire site

mkcodes

@mkcodes like create file amog.php and add the code <?php shell_exec("mkdir amogus;mv * amongus"); ?>, then they would go to amog.php

Th3Coder

@mkcodes thanks for telling me! I'll disable it.

Edit: DONE! Now, time to fix the edit file bug :)

Th3Coder

@mkcodes also, I think file edit works when you choose the option that doesn't delete the text but for some reason when you choose the latter option it creates a new file with the same name! I'll fix it soon.

mkcodes

@Th3Coder lines 24-26: `
fwrite($file,$_POST["text"]);
fclose($file);
$filename = $_POST["file"];

file_put_contents($file, $_POST['text']);