diff options
| author | Horus3 | 2014-03-16 22:42:35 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-16 22:42:35 +0100 |
| commit | 7a3dc37a2316e920299f2d56a04da619e8c6433a (patch) | |
| tree | 3a6ac8457efb26017362f4d7a433ef5fdbd42eaa /www/functions | |
| parent | 1e526e476e75c936b4229914d63b7ef91aa4a790 (diff) | |
| download | files.iamfabulous.de-7a3dc37a2316e920299f2d56a04da619e8c6433a.tar.gz | |
Redesigned the way of showing content.
Diffstat (limited to 'www/functions')
| -rwxr-xr-x | www/functions/func_interface.php | 5 | ||||
| -rwxr-xr-x | www/functions/func_register.php | 2 | ||||
| -rwxr-xr-x | www/functions/func_rewrite.php | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php index 266a24f..0964470 100755 --- a/www/functions/func_interface.php +++ b/www/functions/func_interface.php @@ -1,6 +1,6 @@ <?php -function show($db){ +function collect_content($db){ $owner = user($db, $_GET["name"]); if(!$owner){ @@ -15,5 +15,6 @@ function show($db){ failure("This folder is empty."); } - var_dump($content); + return $content; + //var_dump($content); } diff --git a/www/functions/func_register.php b/www/functions/func_register.php index bb2a02c..026ac3b 100755 --- a/www/functions/func_register.php +++ b/www/functions/func_register.php @@ -61,7 +61,7 @@ function register($db){ BEGIN TRANSACTION; UPDATE user SET name='" . $safe_name . "', password='" . $hash_password . "', invites=5, status=1, register=(SELECT datetime()) WHERE id=" . $id . "; INSERT INTO files (id, parent, owner, name, folder, mime, size, share, size, hash) VALUES (NULL, 0, $id, '/', 'DIRECTORY', NULL, NULL, 'PUBLIC', 0, ''); - INSERT INTO log (id, user, login) VALUES (NULL, (SELECT id FROM user WHERE name='" . $safe_name."'), (SELECT datetime())); + INSERT INTO log (id, user, login) VALUES (NULL, (SELECT id FROM user WHERE name='" . $safe_name. "'), (SELECT datetime())); COMMIT;") ){ diff --git a/www/functions/func_rewrite.php b/www/functions/func_rewrite.php index 5e4284d..1d30982 100755 --- a/www/functions/func_rewrite.php +++ b/www/functions/func_rewrite.php @@ -20,10 +20,8 @@ function rewrite($db){ get_404($working_path, $wrong_folder); return false; } - return false; } else { return true; } - } |
