From 2fc3fbb41dbd81a92dfe27a22b31f36b10ea37ca Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Mon, 23 May 2016 21:02:39 +0000 Subject: Extend and improve PHP code comments (PHPDoc) Add file summaries, @copyright tags and other comments. Covers majority of the PHP code base now. I have avoided being too verbose and omitted some potential tags. Most visibly to the user, this comments every user configurable setting and clarifies what some of the options do. POMF_DB_USER and POMF_DB_PASS are not rendered perfectly in phpDocumentor version 2.8.5. This is a sacrifice I made in attempt for not being too verbose and obvious. Response class gets a @todo for being a god object. --- static/upload.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'static/upload.php') diff --git a/static/upload.php b/static/upload.php index 4bee979..b8fb46a 100644 --- a/static/upload.php +++ b/static/upload.php @@ -1,10 +1,14 @@ - * Copyright (c) 2013, 2014, 2015 Eric Johansson - * Copyright (c) 2015 cenci0 - * Copyright (c) 2015, 2016 the Pantsu.cat developers + * Handles POST uploads, generates filenames, moves files around and commits + * uploaded metadata to database. + * + * @copyright Copyright (c) 2013, 2014 Peter Lejeck + * @copyright Copyright (c) 2013, 2014, 2015 Eric Johansson + * @copyright Copyright (c) 2015 cenci0 + * @copyright Copyright (c) 2015, 2016 the Pantsu.cat developers + * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal -- cgit v1.2.3