This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simpledownload.xml
99 lines (90 loc) · 4.42 KB
/
simpledownload.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
<name>SimpleDownload</name>
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>2010-10-20</creationDate>
<author>Joel Rowley</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://joomla.joelrowley.com</authorUrl>
<license>GPL</license>
<!-- The version string is recorded in the components table -->
<version>1.0.1</version>
<!-- The description is optional and defaults to the name -->
<description><![CDATA[<p>Thank you for trying out SimpleDownload. With this extention, you will be able to force the end users' browser to download files that would normally be viewed or played using a browser plugin (eg. MP3s, PDFs, etc). SimpleDownload has the following features:</p>
<ul>
<li>Force the end user's web browser to download file types that it normally has the ability to preview or play.</li>
<li>Encrypt the path to the file so the user cannot download unintended items.</li>
<li>Use the builtin encryption scheme or create/specify your own to be used.</li>
<li>Set a "base path" that all files must be located in to be downloaded.</li>
<li>Configure the error message to display when a file cannot be found. </li>
<li>Log each downloaded file to the database.</li>
</ul>
<p>The format of the URL for downloading would look like the following (without cipher enabled):</p>
<p><strong>[joomla url]/index.php?option=com_simpledownload&task=download&fileid=/path/to/file.ext</strong><br />
or (with cipher enabled):<br />
<strong>[joomla url]/index.php?option=com_simpledownload&task=download&fileid=L3BhdGgvdG8vZmlsZS5leHQ=</strong></p>
<p>I hope you enjoy this extension and does exactly what you were looking for. I will update this extension as needed. Please give me feedback and let me know of any security holes if you find any.</p>
<p>Thanks!<br />
Joel Rowley (<a href="mailto:[email protected]">[email protected]</a>)</p>]]></description>
<!-- Site Main File Copy Section -->
<files folder="site">
<filename>controller.php</filename>
<filename>simpledownload.php</filename>
<filename>index.html</filename>
<folder>helpers</folder>
<folder>languages</folder>
<folder>models</folder>
<folder>views</folder>
</files>
<languages folder="site/languages">
<language tag="en-GB">en-GB.com_simpledownload.ini</language>
</languages>
<install>
<params>
<param name="basedownloadpath" default="images" />
<param name="cipherenabled" default="1" />
<param name="cipherfile" default="components/com_simpledownload/helpers/encryption.php" />
<param name="cipherfunction" default="jcrypt64" />
<param name="decipherfunction" default="jdecrypt64" />
<param name="log_downloads" default="0" />
<param name="title_filenotfound" default="File Not Found" />
<param name="msg_filenotfound" default="<h1>File Not Found</h1><p>The file you were requesting could not be found. We're sorry for the inconvenience.</p>" />
</params>
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<!--<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>-->
<administration>
<!-- Administration Menu Section -->
<menu img="../administrator/components/com_simpledownload/assets/images/icon-16-logo.png">SimpleDownload</menu>
<submenu>
<menu link="option=com_simpledownload&view=downloadhits">Download Hits</menu>
<!-- <menu link="option=com_simpledownload&view=tophits">Top Hits</menu> -->
</submenu>
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<!-- Site Main File Copy Section -->
<filename>index.html</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>
<filename>simpledownload.php</filename>
<folder>assets</folder>
<folder>languages</folder>
<folder>models</folder>
<folder>sql</folder>
<folder>tables</folder>
<folder>views</folder>
</files>
<languages folder="admin/languages">
<language tag="en-GB">en-GB.com_simpledownload.ini</language>
</languages>
</administration>
</install>