Commit graph

13798 commits

Author SHA1 Message Date
Andreas Fischer
dd43af0ab6 [feature/attach-dl] Make sure physical_filename is basenamed everywhere.
PHPBB3-11042
2012-08-10 02:08:04 +02:00
Andreas Fischer
c221294fb2 [feature/attach-dl] Remove commented statement.
PHPBB3-11042
2012-08-10 02:06:27 +02:00
Andreas Fischer
aa6effbb0c [feature/attach-dl] Remove backticks from SQL query.
PHPBB3-11042
2012-08-10 02:04:39 +02:00
Andreas Fischer
8f3c1d8ea1 [feature/attach-dl] Refactor the remaining code into their sections.
Refactor the remaining code into their sections instead of checking things
over and over again.

PHPBB3-11042
2012-08-10 02:00:39 +02:00
Andreas Fischer
a7694dd512 [feature/attach-dl] Get rid of second query. Fetch all required info at once.
PHPBB3-11042
2012-08-10 01:54:41 +02:00
Fyorl
f0804f2db6 [feature/attach-dl] Manually clean the topic title/post subject
PHPBB3-11042
2012-08-07 19:24:13 +01:00
Fyorl
c4655b32f3 [feature/attach-dl] Fixed a bug with single attachments
PHPBB3-11042
2012-08-07 18:21:29 +01:00
Fyorl
10f0fc0713 [feature/attach-dl] Added identifiers to attachment archive name
Attachment archives now include the post/topic id and the subject.
Attachments downloaded from a topic are prefixed with their post
id.

PHPBB3-11042
2012-08-07 18:19:58 +01:00
Fyorl
773c513ac0 [feature/attach-dl] Moved include of compress class inside function
PHPBB3-11042
2012-08-07 16:59:57 +01:00
Fyorl
a0bc902612 [feature/attach-dl] Removed superfluous ternary statement
PHPBB3-11042
2012-08-07 16:56:13 +01:00
Fyorl
32f7338361 [feature/attach-dl] Merge changes from bantu/feature/attach-dl
PHPBB3-11042
2012-08-07 16:10:01 +01:00
Andreas Fischer
8d914e05ae [feature/attach-dl] Get rid of unnecessary if block. Refactor switch block.
PHPBB3-11042
2012-08-07 17:03:46 +02:00
Andreas Fischer
3de4a7e78d [feature/attach-dl] Also initialise $attachments as an array.
PHPBB3-11042
2012-08-07 16:55:31 +02:00
Andreas Fischer
4b06a220af [feature/attach-dl] Use extension_allowed() again.
PHPBB3-11042
2012-08-07 13:51:07 +02:00
Andreas Fischer
d6e8fbf94a [feature/attach-dl] Remove extra loop over attachments to get primary keys.
PHPBB3-11042
2012-08-07 13:43:31 +02:00
Andreas Fischer
8a8f48528a [feature/attach-dl] Correct comment for post_id and topic_id case.
PHPBB3-11042
2012-08-07 13:40:53 +02:00
Fyorl
3d68a6953e [feature/attach-dl] Moved download links to bottom of topic
PHPBB3-11042
2012-08-07 12:03:47 +01:00
Fyorl
058bf77a39 [feature/attach-dl] Moved functions_compress include
PHPBB3-11042
2012-08-07 12:00:10 +01:00
Andreas Fischer
89c102a744 [feature/attach-dl] phpbb_filter_disallowed_extensions: Preserve array keys.
PHPBB3-11042
2012-08-07 02:48:49 +02:00
Andreas Fischer
bba348d68a [feature/attach-dl] phpbb_check_attach_extensions: Get rid of pass-by-reference
PHPBB3-11042
2012-08-07 02:47:18 +02:00
Andreas Fischer
b6d4ee4244 [feature/attach-dl] Move !download_allowed() check up.
PHPBB3-11042
2012-08-07 02:37:08 +02:00
Andreas Fischer
ecab0212f8 [feature/attach-dl] Putting more old code under "else if ($download_id)".
PHPBB3-11042
2012-08-07 02:36:20 +02:00
Andreas Fischer
60d382df4c [feature/attach-dl] Putting some old code under "else if ($download_id)".
PHPBB3-11042
2012-08-07 02:10:15 +02:00
Andreas Fischer
87c822b794 [feature/attach-dl] Also merge topic_id query. a.topic_id can be used.
PHPBB3-11042
2012-08-07 01:59:02 +02:00
Andreas Fischer
940b9e0658 [feature/attach-dl] Combine download_id and post_id queries.
PHPBB3-11042
2012-08-07 01:12:19 +02:00
Andreas Fischer
56cd7e5475 [feature/attach-dl] Store query result always in $attachments first.
PHPBB3-11042
2012-08-07 01:03:32 +02:00
Andreas Fischer
5986676f4d [feature/attach-dl] Exploit the "if ... else if ..." for the error message.
Use an "else" statement instead of checking everything at the top.

PHPBB3-11042
2012-08-07 00:33:23 +02:00
Andreas Fischer
862502aacd [feature/attach-dl] Use table aliases in all three cases.
PHPBB3-11042
2012-08-07 00:31:18 +02:00
Andreas Fischer
2d32164fb0 [feature/attach-dl] Remove unnecessary LIMIT from primary key query.
PHPBB3-11042
2012-08-07 00:10:24 +02:00
Andreas Fischer
3fe8344104 [feature/attach-dl] Use "else if" for precedence in case of multiple arguments.
PHPBB3-11042
2012-08-07 00:07:22 +02:00
Fyorl
155b584a68 [feature/attach-dl] Only include compress class when needed
PHPBB3-11042
2012-08-04 15:58:58 +01:00
Fyorl
aa87258cc6 [feature/attach-dl] Used sql_fetchrowset
PHPBB3-11042
2012-08-04 15:47:22 +01:00
Fyorl
16ec660e76 [feature/attach-dl] Added a function for checking allowed extensions
PHPBB3-11042
2012-08-04 15:29:26 +01:00
Fyorl
50af76da7d [feature/attach-dl] Ensure only one operation is performed
PHPBB3-11042
2012-08-04 14:51:11 +01:00
Fyorl
ed1435d040 [feature/attach-dl] Added function for incrementing download counter
PHPBB3-11042
2012-08-04 14:48:07 +01:00
Fyorl
20a2ceccbd [feature/attach-dl] Initialised arrays if they're used
PHPBB3-11042
2012-08-04 14:10:26 +01:00
Fyorl
0cad61efbf [feature/attach-dl] Added table prefix to columns
PHPBB3-11042
2012-08-04 14:08:49 +01:00
Fyorl
18d7210a11 [feature/attach-dl] Prefixed gen_download_links with phpbb_
PHPBB3-11042
2012-08-04 13:58:50 +01:00
Fyorl
bbdbff1ab3 [feature/attach-dl] Modified SQL query format and used sql_in_set
PHPBB3-11042
2012-08-04 13:57:26 +01:00
Fyorl
ee7d9614c0 [feature/attach-dl] Downloading all attachments fully implemented
Added a function to list all available archiving methods and integrated
it with the prosilver style.

Heavy modifications to download/file.php to support archiving and
downloading of multiple files at once.

PHPBB3-11042
2012-08-04 13:18:20 +01:00
Fyorl
5bffd9883d [feature/attach-dl] Added links to the templates
PHPBB3-11042
2012-08-02 20:47:09 +01:00
Andreas Fischer
fa06b779ad Merge remote-tracking branch 'nickvergessen/ticket/11004' into develop
* nickvergessen/ticket/11004:
  [ticket/11004] Always update suggestion button in timezone_preselect_select
  [ticket/11003] Ability to show full list of timezones with JavaScript enabled
  [ticket/11004] Make suggestion button a real button and fix it's value
2012-08-02 12:10:26 +02:00
Andreas Fischer
fbd75775ef Merge remote-tracking branch 'EXreaction/ticket/10875' into develop
* EXreaction/ticket/10875:
  [ticket/10875] method_exists check is not required, interface declares them
  [ticket/10875] Changes to Cache Driver caused method_exists checks to fail
2012-07-30 23:06:16 +02:00
Nathan Guse
edcac438df [ticket/10875] method_exists check is not required, interface declares them
The changes to the cache drivers added an interface, which requires many
cache functions exist. For these, we can remove the method_exists() check

PHPBB3-10875
2012-07-30 15:57:51 -05:00
Nathan Guse
828eaecf6a [ticket/10875] Changes to Cache Driver caused method_exists checks to fail
SQL Cache and other functions using the check
method_exists($cache,
failed because of the changes to the cache system.

method_exists($cache has been changed to
method_exists($cache->get_driver()

PHPBB3-10875
2012-07-30 15:31:27 -05:00
Andreas Fischer
17681c0770 Merge branch 'develop-olympus' into develop
* develop-olympus:
  [ticket/11034] Re-arranged install order to emulate real install
2012-07-30 19:03:20 +02:00
Andreas Fischer
cb007acc76 Merge remote-tracking branch 'Fyorl/ticket/11034' into develop-olympus
* Fyorl/ticket/11034:
  [ticket/11034] Re-arranged install order to emulate real install
2012-07-30 19:00:17 +02:00
Fyorl
647d395908 [ticket/11034] Re-arranged install order to emulate real install
PHPBB3-11034
2012-07-30 14:13:28 +01:00
Oleg Pudeyev
7fd1a166da Merge PR #865 branch 'dhruvgoel92/feature/sphinx-fulltext-search' into develop
* dhruvgoel92/feature/sphinx-fulltext-search: (57 commits)
  [feature/sphinx-fulltext-search] add sphinx to Authors file
  [feature/sphinx-fulltext-search] add sphinxapi.php file
  [feature/sphinx-fulltext-search] fix auth bug
  [feature/sphinx-fulltext-search] remove unused property
  [feature/sphinx-fulltext-search] use 9312 as default port
  [feature/sphinx-fulltext-search] fix language of host config
  [feature/sphinx-fulltext-search] fix sphinx for arbitary host
  [feature/sphinx-fulltext-search] coding changes acc to phbb conventions
  [feature/sphinx-fulltext-search] fixing comments
  [feature/sphinx-fulltext-search] add trailing slash in language
  [feature/sphinx-fulltext-search] improve port option
  [feature/sphinx-fulltext-search] remove stopwords and config path
  [feature/sphinx-fulltext-search] makes sql host configurable
  [feature/sphinx-fulltext-search] use readonly instead of disabled
  [feature/sphinx-fulltext-search] fix language keys' typo
  [feature/sphinx-fulltext-search] remove note from db_tools
  [feature/sphinx-fulltext-search] add support for postgres
  [feature/sphinx-fulltext-search] add pgsql functionality
  [feature/sphinx-fulltext-search] use Update in sphinx query
  [feature/sphinx-fulltext-search] use CASE instead of IF
  ...
2012-07-27 22:27:26 -04:00
Dhruv
f1729281e6 [feature/sphinx-fulltext-search] add sphinx to Authors file
PHPBB3-10946
2012-07-27 11:28:14 +05:30