curload is a simple file uploading site allowing users to upload files. https://git.speedie.site/speedie/curload
Go to file
Jacob e67379dd68 Fix a serious security issue. 2024-02-27 17:44:20 +01:00
resources Add placeholder logo to page, will probably redo. 2023-10-08 02:24:08 +02:00
templates Add template, allow users to change username/password 2023-10-07 03:46:42 +02:00
.gitignore Remove temporary_passwords.txt and passwords.txt from .gitignore since 2023-10-01 16:24:27 +02:00
.htaccess Fix last commit 2023-10-15 19:42:54 +02:00
COPYING Initial commit 2023-09-28 21:29:21 +02:00
OFL.txt Add Noto Sans font 2023-10-09 03:46:25 +02:00
README.md Add Noto Sans font 2023-10-09 03:46:25 +02:00
about.php Move over from keys to proper user accounts 2023-10-07 00:25:10 +02:00
about.php.name Cleanup, basic README 2023-10-01 17:27:47 +02:00
account.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
admin.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
all.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
change.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
config.def.ini Add file type blacklist (#9) 2023-10-09 00:38:35 +02:00
config.php Add file type blacklist (#9) 2023-10-09 00:38:35 +02:00
core.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
create.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
file.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
files.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
font.ttf Add Noto Sans font 2023-10-09 03:46:25 +02:00
index.css Some stylesheet changes 2023-10-09 04:05:27 +02:00
index.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
login.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
logo.svg Add placeholder logo to page, will probably redo. 2023-10-08 02:24:08 +02:00
register.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
remove-user.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
remove.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00
setup.php Fix a serious security issue. 2024-02-27 17:44:20 +01:00
upload.php Wrap all $_REQUEST variables in htmlspecialchars() 2023-10-09 16:35:51 +02:00

README.md

img

curload

curload is a simple file uploading site allowing users to upload files.

Features

  • File uploading (with or without an account)
  • Account system, including administrators, temporary accounts and registering
  • Administration tools, useful for creating accounts, moderating files and more.
  • Modern user interface, customizable through CSS, PHP and JavaScript.
  • User pages, useful for terms of service, privacy policy, rules, etc.
  • GPL licensed (no proprietary software here)

Dependencies

  • php

  • sqlite3

  • Web server (optional, sort of)

  • On Gentoo, you'll need to enable USE flag sqlite for package dev-lang/php in case you're testing locally using php -S.

  • On Debian, you'll need to install the appropriate Apache plugin if you want to use Apache.

Installation

  1. Set up a web server with php and sqlite3
  2. Point it to index.php

When no admin key is set up, you'll be prompted to create a primary admin key. The primary admin key is able to do absolutely everything, while normal admin keys are able to do everything except view and modify other administrators.

Hacking

To hack on curload, you can modify config.ini. This is a configuration file that contains all the default options. You can also add pages. You can do this by creating a PHP script (see about.php for an example) as well as a .name file.

You can modify all of the PHP, but I've tried to keep it sort of user friendly. It is possible to style curload by using CSS classes and IDs. It is also possible to include JavaScript.

Examples

See examples/ for some useful PHP example scripts.

License

GNU Affero General Public License version 3.0. See COPYING for details. The font included is called Noto Sans, and is licensed under the SIL Open Font License. See OFL.txt for copyright details.